Bug 266399
| Summary: | [css-scoping] Implement implicit scoping root when no <scope-start> | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matthieu Dubet <m_dubet> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://github.com/web-platform-tests/wpt/pull/43770 | ||
| Bug Depends on: | |||
| Bug Blocks: | 229520 | ||
Matthieu Dubet
When the @scope rule doesn't have a <scope-start> prelude, the declaration node is the scoping root.
We should implement this.
"For each element matched by <scope-start>, create a scope using that element as the scoping root. If no <scope-start> is specified, the scoping root is the parent element of the owner node of the stylesheet where the @scope rule is defined. (If no such element exists, then the scoping root is the root of the containing node tree.)"
https://drafts.csswg.org/css-cascade-6/#scope-limits
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/119659940>
Matthieu Dubet
Pull request: https://github.com/WebKit/WebKit/pull/21868
EWS
Committed 272390@main (cee867893141): <https://commits.webkit.org/272390@main>
Reviewed commits have been landed. Closing PR #21868 and removing active labels.