One Invalid Pseudo Selector Equals an Entire Ignored Selector

added by JavaScript Kicks
10/8/2018 7:10:13 AM

361 Views

Perhaps you know this one: if any part of a selector is invalid, it invalidates the whole selector. For example: div, span::butt { background: red; } Even though div is a perfectly valid selector, span:butt is not, thus the entire selector is invalidated - neither divs nor span::butt elements on the page will have a red background.


0 comments