Bug 270664
Summary: | @font-face rules in shadow trees should not leak outside to document | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alan Stearns <stearns> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | fantasai.bugs, koivisto, m_dubet, rniwa, vitor.roriz, webkit-bug-importer, woodlxf00 |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 17 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 148695 |
Alan Stearns
I have a PR up at WPT with a bunch of tests around @font-face and shadow trees:
https://github.com/web-platform-tests/wpt/pull/44993
These are based on the spec (https://drafts.csswg.org/css-scoping/#shadow-names) which WebKit gets right much more than the other engines (all but two of the tests pass) but @font-face names are meant to be tree-scoped, which WebKit does not do. So the two tests (001 and 005) that check that a @font-face rule defined in a shadow tree does not get used when referred to by the outside document fail in WebKit.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/124643482>
Matthieu Dubet
Hi Alan,
Thank you very much for the detailed bug report, we will look into it.