Skip to content

Update ExtendedCss to version 1.10 #1787

@ameshkov

Description

@ameshkov

@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:

  1. 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

  2. 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.

  3. IMPORTANT: ExtendedCss constructor now has two arguments. The new one is propertyFilterIgnoreStyleNodes - a list of stylesheet nodes that should be ignored by the StyleObserver (an object that implements the :properties pseudo-class ). It is crucial to pass a list of custom stylesheets to the constructor.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions