Commit d53277a
committed
Do not collect declared values in shadow subtrees
Follow up to a57cee4.
The algorithm to match a selector against a tree requires considering elements
in subtrees when no scope is defined, but only a few pseudo-elements can match
them at the moment, and they cannot match elements in the selector tree. The
subtree elements do not need to be included in the candidate elements.
The root of the element owning the style sheet cannot be defined as a scoping
root to fix this, because its selectors would be interpreted as scoped: `html`
would be interpreted as `:scope html` and match nothing.
This commit explicitly set a flag to skip shadow subtrees for the moment, until
the reason for this default behavior is clarified.1 parent 747f88b commit d53277a
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
1099 | | - | |
| 1099 | + | |
1100 | 1100 | | |
1101 | 1101 | | |
1102 | 1102 | | |
| |||
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | | - | |
| 1115 | + | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
0 commit comments