-
Notifications
You must be signed in to change notification settings - Fork 116
Description
@ameshkov commented on Wed Mar 21 2018
Here is the release:
https://github.com/AdguardTeam/ExtendedCss/releases/tag/1.0.10
What needs to be done:
-
Add support for the new pseudo-classes added in this version. Check the full list of extended pseudo-classes here: https://github.com/AdguardTeam/ExtendedCss/blob/master/lib/extended-css-selector.js#L28
-
Start recognizing
#?#and#@?#(and also#$?#and#@$?#for style injections) as a marker for an extended rule. Any#?#rule needs to be passed to the ExtendedCss engine. Even if the rule does not contain any special pseudo-class, it must be marked as "extended" anyway. Don't forget to add unit-tests for these rules. -
IMPORTANT:
ExtendedCssconstructor now has two arguments. The new one ispropertyFilterIgnoreStyleNodes- a list of stylesheet nodes that should be ignored by the StyleObserver (an object that implements the:propertiespseudo-class ). It is crucial to pass a list of custom stylesheets to the constructor.