<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>270664</bug_id>
          
          <creation_ts>2024-03-07 15:00:26 -0800</creation_ts>
          <short_desc>@font-face rules in shadow trees should not leak outside to document</short_desc>
          <delta_ts>2026-01-28 17:02:14 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>Safari 17</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>148695</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alan Stearns">stearns</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>koivisto</cc>
    
    <cc>m_dubet</cc>
    
    <cc>rniwa</cc>
    
    <cc>vitor.roriz</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>woodlxf00</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2019472</commentid>
    <comment_count>0</comment_count>
    <who name="Alan Stearns">stearns</who>
    <bug_when>2024-03-07 15:00:26 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021165</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-03-14 16:01:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/124643482&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022490</commentid>
    <comment_count>2</comment_count>
    <who name="Matthieu Dubet">m_dubet</who>
    <bug_when>2024-03-20 10:48:11 -0700</bug_when>
    <thetext>Hi Alan,

Thank you very much for the detailed bug report, we will look into it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2176018</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-01-28 17:02:14 -0800</bug_when>
    <thetext>I tried to look for tests in css-scoping but couldn&apos;t find, are they changed to this? https://wpt.fyi/results/css/css-shadow?label=master&amp;label=experimental&amp;aligned&amp;q=font-face%20safari%3Afail

Haven&apos;t done git blame etc on WPT yet but just thought to check.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>