<?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>179402</bug_id>
          
          <creation_ts>2017-11-07 17:11:09 -0800</creation_ts>
          <short_desc>::slotted() styles should be applied only after flattening</short_desc>
          <delta_ts>2022-07-02 22:55:37 -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>CSS</component>
          <version>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=178237</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>148695</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Keanu Lee">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1369276</commentid>
    <comment_count>0</comment_count>
    <who name="Keanu Lee">webkit</who>
    <bug_when>2017-11-07 17:11:09 -0800</bug_when>
    <thetext>Per the spec https://drafts.csswg.org/css-scoping/#slotted-pseudo, the ::slotted() selector should only be applied to elements after flattening.

Example: https://jsbin.com/ruwesaj/edit?html,output

The following style:

::slotted(.hide) {
  display: none;
}

should not apply to the intermediate:

&lt;slot class=&quot;hide&quot;&gt;&lt;/slot&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1691133</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-09-23 09:19:55 -0700</bug_when>
    <thetext>Is this related to bug 169948?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1691788</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-09-24 23:15:43 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #1)
&gt; Is this related to bug 169948?

Yup. That bug is now not to be fixed given the latest discussion at CSS WG: https://github.com/w3c/csswg-drafts/issues/5482</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880401</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-07-02 22:55:37 -0700</bug_when>
    <thetext>This is working now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>