<?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>202176</bug_id>
          
          <creation_ts>2019-09-24 15:51:49 -0700</creation_ts>
          <short_desc>::first-letter in shadow tree does not apply to the slotted content</short_desc>
          <delta_ts>2022-04-26 02:04:50 -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 12</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>220650</dup_id>
          
          <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="Dale Sande">dale.sande</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>vb</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1573875</commentid>
    <comment_count>0</comment_count>
    <who name="Dale Sande">dale.sande</who>
    <bug_when>2019-09-24 15:51:49 -0700</bug_when>
    <thetext>When styling HTML Custom Elements, I noticed when using the `:first-child` CSS pseudo-class, the rendered concent in Safari (macOS or iOS) does not reflect the style. 

After exhausting all troubleshooting opportunities there doesn&apos;t appear to be an issue with :first-child in general with Safari, but only when used inside a custom element. The code and variations thereof have been reviewed on all browsers with the failure only happening in Safari.

This can be validated at http://orion-design.surge.sh/#buttons
The code can be seen at https://github.com/AlaskaAirlines/OrionStatelessComponents__ods-button/blob/master/src/style.scss#L59
The custom element can be installed from https://www.npmjs.com/package/@alaskaairux/ods-button


When using :first-child in an HTML custom element using the shadow DOM ...

I&apos;d expect the first letter to be altered per the style specified in the selector. 

What I see is no effect at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574240</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-25 15:22:33 -0700</bug_when>
    <thetext>&lt;rdar://problem/55721155&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1575390</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-09-30 17:35:21 -0700</bug_when>
    <thetext>Could you elaborate on what&apos;s expected and what&apos;s the problem in Safari? I can&apos;t really tell which one of the buttons on http://orion-design.surge.sh/#buttons has unexpected result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1576654</commentid>
    <comment_count>3</comment_count>
    <who name="Dale Sande">dale.sande</who>
    <bug_when>2019-10-03 17:20:30 -0700</bug_when>
    <thetext>Going to the URL provided (http://orion-design.surge.sh/#buttons) in Safari, you will see that the `d` in `default` is not capitalized. 

If you look at the same URL in Chrome, Firefox or Edge Dev you will see inside the button the string is `Default`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1577668</commentid>
    <comment_count>4</comment_count>
      <attachid>380404</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-10-07 23:21:38 -0700</bug_when>
    <thetext>Created attachment 380404
Reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864392</commentid>
    <comment_count>5</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2022-04-26 02:04:50 -0700</bug_when>
    <thetext>Sorry for forward-dupe but looks like 220650 (along with some earlier fixes) makes this work too.

*** This bug has been marked as a duplicate of bug 220650 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>380404</attachid>
            <date>2019-10-07 23:21:38 -0700</date>
            <delta_ts>2019-10-07 23:21:38 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>first-letter.html</filename>
            <type>text/html</type>
            <size>270</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8Ym9keT4KPGRpdiBpZD0iaG9zdCI+ZGVmYXVsdDwvZGl2
Pgo8c2NyaXB0PgoKY29uc3Qgc2hhZG93Um9vdCA9IGhvc3QuYXR0YWNoU2hhZG93KHttb2RlOiAn
Y2xvc2VkJ30pOwpzaGFkb3dSb290LmlubmVySFRNTCA9IGA8c3R5bGU+IGRpdjo6Zmlyc3QtbGV0
dGVyIHsgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTsgfSA8L3N0eWxlPgo8ZGl2PjxzbG90Pjwv
c2xvdD48L2Rpdj4KYDsKCjwvc2NyaXB0Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>