<?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>241847</bug_id>
          
          <creation_ts>2022-06-22 02:06:49 -0700</creation_ts>
          <short_desc>[css-conditional] @supports selector fails for ::placeholder &amp; ::file-selector-button</short_desc>
          <delta_ts>2023-05-15 16:49:06 -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 Technology Preview</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Nicklas">j.nicklas</reporter>
          <assigned_to name="Joonghun Park">jh718.park</assigned_to>
          <cc>cdumez</cc>
    
    <cc>jensimmons</cc>
    
    <cc>jh718.park</cc>
    
    <cc>koivisto</cc>
    
    <cc>ntim</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>1877256</commentid>
    <comment_count>0</comment_count>
      <attachid>460411</attachid>
    <who name="Jan Nicklas">j.nicklas</who>
    <bug_when>2022-06-22 02:06:49 -0700</bug_when>
    <thetext>Created attachment 460411
Reproduction Example

The `@supports selector ()` fails for shadow DOM pseudo element tests.

An example for supported shadow DOM pseudo element styling is `input::placeholder { color: orchid }`.

Therefore the expected behaviour would be that `@supports selector(input::placeholder) {` matches.
Furthermore the expected behaviour would also be that `@supports not selector(input::placeholder) {` does NOT match.

Instead the current behaviour is that `@supports selector(input::placeholder) {` does NOT match.
In addition the current behaviour is also that `@supports not selector(input::placeholder) {` does match.

This behaviour can be reproduced on different Safari versions:

- iOS 15.5 Safari
- MacOS Safari Version 15.5 (17613.2.7.1.8) 
- MacOS Safari Technology Preview Release 146 (Safari 15.4, WebKit 17614.1.14.10.6)

Current Firefox and Chrome versions behave correctly.

Please see the attached reproduction example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877280</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-22 05:33:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/95683424&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877556</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-06-22 22:16:50 -0700</bug_when>
    <thetext>Oh, this is nothing to do with Shadow DOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905212</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-10-12 17:22:56 -0700</bug_when>
    <thetext>WPT PR is at: https://github.com/web-platform-tests/wpt/pull/36410</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945228</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-03-29 19:31:46 -0700</bug_when>
    <thetext>*** Bug 254682 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950834</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-04-24 12:02:09 -0700</bug_when>
    <thetext>Joonghun, any update on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955438</commentid>
    <comment_count>6</comment_count>
    <who name="Joonghun Park">jh718.park</who>
    <bug_when>2023-05-15 09:18:26 -0700</bug_when>
    <thetext>(In reply to Tim Nguyen (:ntim) from comment #5)
&gt; Joonghun, any update on this?

I&apos;m sorry for the delay. I made a patch and uploaded it to https://github.com/WebKit/WebKit/pull/13879. Please refer to it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955535</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-15 16:49:03 -0700</bug_when>
    <thetext>Committed 264090@main (61a3212d56ea): &lt;https://commits.webkit.org/264090@main&gt;

Reviewed commits have been landed. Closing PR #13879 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>460411</attachid>
            <date>2022-06-22 02:06:49 -0700</date>
            <delta_ts>2022-06-22 02:06:49 -0700</delta_ts>
            <desc>Reproduction Example</desc>
            <filename>supports-issue.html</filename>
            <type>text/html</type>
            <size>471</size>
            <attacher name="Jan Nicklas">j.nicklas</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGJvZHk+CiAgICA8c3R5bGU+CiAgICAgIEBzdXBwb3J0cyBzZWxlY3RvcihpbnB1
dDo6cGxhY2Vob2xkZXIpIHsKICAgICAgICBib2R5OjpiZWZvcmUgewogICAgICAgICAgY29udGVu
dDogIkBzdXBwb3J0cyBzZWxlY3RvcihpbnB1dDo6cGxhY2Vob2xkZXIpIGRvZXMgbWF0Y2giCiAg
ICAgICAgfQogICAgICB9CiAgICAgIEBzdXBwb3J0cyBub3Qgc2VsZWN0b3IoaW5wdXQ6OnBsYWNl
aG9sZGVyKSB7CiAgICAgICAgYm9keTo6YmVmb3JlIHsKICAgICAgICAgIGNvbnRlbnQ6ICJAc3Vw
cG9ydHMgc2VsZWN0b3IoaW5wdXQ6OnBsYWNlaG9sZGVyKSBkb2VzIE5PVCBtYXRjaCIKICAgICAg
ICB9CiAgICAgIH0KICAgICAgaW5wdXQ6OnBsYWNlaG9sZGVyIHsKICAgICAgICBjb2xvcjogb3Jj
aGlkCiAgICAgIH0KICAgIDwvc3R5bGU+CiAgICA8aW5wdXQgcGxhY2Vob2xkZXI9IkRlbW8iPgog
IDwvYm9keT4KPGh0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>