I just upgraded Google Chrome on my PC and Mac to version 62, and the CSS property user-select: all
has stopped working, correctly.
If you have a parent with the user-select
set to none, and a child with user-select
set to all, the parent property is not overwritten correctly.
-webkit-user-select: all;
-moz-user-select: all;
-ms-user-select: all;
user-select: all;
Has anyone else experienced this and know if this is a bug in the new version of Google Chrome or if there is a correct way to implement this?
Here is the code demonstrating the issue (use Chrome 62 to see the problem) - JSFiddle:
div {
margin: 5px;
}
.parent {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.child {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
<div class="parent">
<div class="child">
Parent has user-select set to none, Try to select this text
</div>
</div>
<div class="child">
No parent, Try to select this text
</div>