NEW 270664
@font-face rules in shadow trees should not leak outside to document
https://bugs.webkit.org/show_bug.cgi?id=270664
Summary @font-face rules in shadow trees should not leak outside to document
Alan Stearns
Reported 2024-03-07 15:00:26 PST
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
Radar WebKit Bug Importer
Comment 1 2024-03-14 16:01:23 PDT
Matthieu Dubet
Comment 2 2024-03-20 10:48:11 PDT
Hi Alan, Thank you very much for the detailed bug report, we will look into it.
Note You need to log in before you can comment on or make changes to this bug.