LeaVerou / css3test

How does your browser score for its CSS3 support?
http://css3test.com
MIT License
214 stars 83 forks source link

Fixed checks of pseudo-element selectors #254

Closed SebastianZ closed 1 month ago

SebastianZ commented 1 month ago

Pseudo-elements containing -webkit- as prefix have to be considered valid as parse time for web compatibililty. So support is now tested using CSS.supports() with the selector() function instead of document.querySelector().

Note that support for the selector() function is at 95% at caniuse.com, so this change causes some (older) browser versions to generally fail selector tests. Though I believe the advantage of getting it right for current browsers outweighs this.

This fixes #253.

Sebastian