Opera drives me crazy. Dealing with select(ion) is really challenge. I am unable to disable selection with Opera. Selection by mouse or Ctrl+A is still on. Is Opera really so bad, or is there some solution or workaround available?
My CSS:
::selection {
background: transparent;
}
::-moz-selection {
background: transparent;
}
* {
user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none; // for future? compatibility
-webkit-user-select: none;
}
My JavaScript:
var elements = document.getElementsByTagName('*');
for (var i = 0; i < elements.length; i++) {
elements[i].setAttribute('unselectable', 'on');
}
Nothing helps. Please advice.
Example: (if you have Opera available) go to this fiddle, click to "Result" section and press Ctrl+A.