<?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>199170</bug_id>
          
          <creation_ts>2019-06-24 11:40:03 -0700</creation_ts>
          <short_desc>2nd selector in the compound selector list in :host pseudo-class like &quot;:host(.class1, .class2) .class3&quot; is not supported</short_desc>
          <delta_ts>2021-03-04 05:32:03 -0800</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>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>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Guan-tin Chien [:timdream]">timdream</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andruud</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1547440</commentid>
    <comment_count>0</comment_count>
      <attachid>372778</attachid>
    <who name="Tim Guan-tin Chien [:timdream]">timdream</who>
    <bug_when>2019-06-24 11:40:03 -0700</bug_when>
    <thetext>Created attachment 372778
test.html

Summary:
2nd selector in the compond selector list in :host pseudo-class like &quot;:host(.class1, .class2) .class3&quot; is not supported

Steps To Reproduce:
1. Open up test.html
2. Inspect the test.

Results:
The text should be red.

Tested on STP Release 85 (Safari 13.0, WebKit 14608.1.28.1) macOS 10.14.4 (18E226)

Notes:
If I change the selector to |:host(.class2, .class1) .class3| then the text is red, indicating that the selector is supported but not implemented correctly.

===

Firefox doesn’t seem to support this yet (https://bugzilla.mozilla.org/show_bug.cgi?id=1561010) and Chrome can parse this test correctly.

===

Was filed as rdar://52060837</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1735780</commentid>
    <comment_count>1</comment_count>
    <who name="Anders Hartvoll Ruud">andruud</who>
    <bug_when>2021-03-04 04:59:03 -0800</bug_when>
    <thetext>At some point :host() was indeed supposed to accept a &lt;compound-selector-list&gt;, but this is no longer the case. Only a single &lt;compound-selector&gt; should be supported now.

https://drafts.csswg.org/css-scoping/#selectordef-host</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>372778</attachid>
            <date>2019-06-24 11:40:03 -0700</date>
            <delta_ts>2019-06-24 11:40:03 -0700</delta_ts>
            <desc>test.html</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>288</size>
            <attacher name="Tim Guan-tin Chien [:timdream]">timdream</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KCndpbmRvdy5vbmxvYWQgPSAoKSA9PiB7CiAgdmFyIHNyID0gZG9jdW1lbnQuYm9k
eS5hdHRhY2hTaGFkb3coeyBtb2RlOiAiY2xvc2VkIiB9KTsKICBzci5pbm5lckhUTUwgPSBgPHN0
eWxlPgoKOmhvc3QoLmNsYXNzMSwgLmNsYXNzMikgLmNsYXNzMyB7CiAgY29sb3I6IHJlZDsKfQoK
ICA8L3N0eWxlPjxkaXYgY2xhc3M9ImNsYXNzMyI+VGhpcyB0ZXh0IHNob3VsZCBiZSByZWQ8L2Rp
dj5gOwoKICBkb2N1bWVudC5ib2R5LmNsYXNzTGlzdC5hZGQoJ2NsYXNzMicpOwp9Cgo8L3Njcmlw
dD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>