Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// .foo::before {}
// .baz::after {}
Could you just add an example with nested pseudo element as well, please?
// The originating compound didn't match; reset the flags and keep
// on going in case this is nested pseudo-element.
Suggestion:
```
// The originating compound didn't match; reset the flags and keep
// on going in case this is nested pseudo-element, e.g., when
// matching 'div::before::marker' against a <div>, the check for
// '::marker' fails because its originating part ('div::before')
// does not match the <div>. We reset flags and continue, eventually
// checking '::before', which will succeed.
```
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +2 |
Could you just add an example with nested pseudo element as well, please?
Done
// The originating compound didn't match; reset the flags and keep
// on going in case this is nested pseudo-element.
Suggestion:
```
// The originating compound didn't match; reset the flags and keep
// on going in case this is nested pseudo-element, e.g., when
// matching 'div::before::marker' against a <div>, the check for
// '::marker' fails because its originating part ('div::before')
// does not match the <div>. We reset flags and continue, eventually
// checking '::before', which will succeed.
```
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
2 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: third_party/blink/renderer/core/css/dynamic_pseudo_extractor.h
Insertions: 6, Deletions: 2.
The diff is too large to show. Please review the diff.
```
```
The name of the file: third_party/blink/renderer/core/css/dynamic_pseudo_extractor.cc
Insertions: 6, Deletions: 1.
The diff is too large to show. Please review the diff.
```
[pseudo&] Implement DynamicPseudoExtractor
With selector evaluation order changed to start with the pseudo-element
compounds (CL:6940215), our old approach for creating dynamic
pseudo flags no longer works; it's completely dependent on evaluating
the originating element compound of the selector first, and then
"descending" into the pseudo element parts.
The new plan is as follows:
1. Mark selectors that can possibly trigger dynamic pseudo flags
as "pseudo-tainted" during parse-time. (Not done in this CL.)
2. In ElementRuleCollector, a pseudo-tainted rule is considered twice:
a) By the SelectorMatcher (as normal).
b) By the DynamicPseudoExtractor, to look for dynamic pseudo flags.
This CL implements the DynamicPseudoExtractor itself (needed for 2b),
but does not actually integrate it with ElementRuleCollector; it is only
by unit tests for now.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |