I just updated Google Chrome on my PC and Mac to version 62, and the CSS property user-select: all stopped working correctly.
If you have a parent with the user-select parameter set to none, and a child with user-select set to all, the parent property will not be overwritten correctly.
-webkit-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;
Has anyone else experienced this and found out if this is a bug in the new version of Google Chrome or if there is a right way to implement this?
Here is the code demonstrating the problem (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>
source share