<?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>255640</bug_id>
          
          <creation_ts>2023-04-18 21:06:18 -0700</creation_ts>
          <short_desc>Declarative shadow DOM does not block rendering on &lt;link&gt; (browser inconsistency)</short_desc>
          <delta_ts>2023-05-01 18:37:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>WebKit Nightly Build</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>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>148695</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>mic.gallego</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>karlcow</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1949651</commentid>
    <comment_count>0</comment_count>
    <who name="">mic.gallego</who>
    <bug_when>2023-04-18 21:06:18 -0700</bug_when>
    <thetext>Hi,

While trying the declarative shadow DOM, I found that Safari does not block rendering if it encounters a &lt;link&gt; external stylesheet, causing FOUC. Chrome, on the other hand, seems to block the rendering until the stylesheet is loaded.

I could not find on the spec which behavior is expected, but having inconsistent behavior makes it hard to properly implement a workaround. From a developer point of view, blocking is more desirable (the only way to avoid blocking is to load the stylesheet in the head in the global scope, which leak all the styles).

I&apos;ve raised this concern as well in the W3C repo: https://github.com/whatwg/dom/issues/1187

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951243</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-25 21:07:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/108539923&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952279</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-05-01 18:36:51 -0700</bug_when>
    <thetext>Discussion is started on https://github.com/whatwg/dom/issues/1187

Anne mentioned 
&gt; Looking at https://html.spec.whatwg.org/#contributes-a-script-blocking-style-sheet and #5465 this would constitute a bug in Chromium, though it does seem somewhat logical to update the</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>