AdguardTeam / ExtendedCss

A TypeScript library for non-standard element selecting — :contains(), :matches-css(), etc., and applying CSS styles with extended properties.
GNU General Public License v3.0
65 stars 9 forks source link

':contains()' rule with the dot breaks the sites #107

Closed Alex-302 closed 4 years ago

Alex-302 commented 4 years ago

#$#*:contains(/text./) { display: block; }

Screenshot: ![image](https://user-images.githubusercontent.com/8361299/80525772-6b83f380-899a-11ea-97ea-b319cdc10d4b.png)
ameshkov commented 4 years ago

Please check what is responsible - CoreLibs or ExtCSS

slavaleleka commented 4 years ago

ExtCSS is responsible for this, and this is not a bug

because :contains() pseudo-class uses textContent element property for matching. and as long as textContent property of head element contains text, the rule will match it and make it visible