<?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>169948</bug_id>
          
          <creation_ts>2017-03-21 23:54:57 -0700</creation_ts>
          <short_desc>::slotted should apply for fallback contents</short_desc>
          <delta_ts>2020-09-24 23:16:33 -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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gwhitworth</cc>
    
    <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1289993</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2017-03-21 23:54:57 -0700</bug_when>
    <thetext>See https://github.com/w3c/webcomponents/issues/631

::slotted(X) rules should apply on any X which is a fallback content of a slot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1447178</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-08-01 22:29:07 -0700</bug_when>
    <thetext>&lt;rdar://problem/42842779&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1682850</commentid>
    <comment_count>2</comment_count>
    <who name="Greg Whitworth">gwhitworth</who>
    <bug_when>2020-08-25 16:48:36 -0700</bug_when>
    <thetext>We have hit this at Salesforce which is blocking us from leveraging this on our site(s) unfortunately. I have filed bugs on Gecko and Chromium regarding this issue. Here is content from those bugs:


What steps will reproduce the problem?
(1) Open the following JSFiddle: https://jsfiddle.net/z3278s5k/4/
- Here&apos;s a simplified repro (https://jsfiddle.net/yoashcrL/)
(2) Review the results in Chromium vs Safari

Actual results:

The span is colored blue per its ::slotted psuedo styles

Expected results:

It maintains the default text color

Here are some additional details:

Some addition context from the CSS psuedo spec, it states that the slotted psuedo element should apply to elements in the flattened tree that are slotted. (https://drafts.csswg.org/css-scoping/#slotted-pseudo)

There is a testcase in WPT that tests nested slots and while the test runner shows a pass for Chromium browser you&apos;ll notice that the rendering does not match the test itself. It says that the text should be green and it receives the default styles as well. http://wpt.live/css/css-scoping/slotted-nested.html

This is negatively impacting us at Salesforce and we&apos;re having to have our teams work around this issue and we&apos;d like to leverage the native support for this capability but can&apos;t currently due to this issue.

We have filed a bug on Chromium as well here where we discussed the spec:
https://bugs.chromium.org/p/chromium/issues/detail?id=1119248

which was merged into this one:
https://bugs.chromium.org/p/chromium/issues/detail?id=703984#c19

Futhark has opened a CL for the change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1684355</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-08-31 19:14:37 -0700</bug_when>
    <thetext>Now tracked by https://github.com/w3c/csswg-drafts/issues/5482</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1691789</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-09-24 23:16:33 -0700</bug_when>
    <thetext>Given the latest discussion in CSS WG at https://github.com/w3c/csswg-drafts/issues/5482, this bug is not to be fixed. The current behavior of WebKit is correct except https://bugs.webkit.org/show_bug.cgi?id=179402 needs to be fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>