<?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>262907</bug_id>
          
          <creation_ts>2023-10-09 11:35:23 -0700</creation_ts>
          <short_desc>Do not prepend implicit type selectors to :host rules</short_desc>
          <delta_ts>2023-10-10 02:14:14 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=214462</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1983753</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-09 11:35:23 -0700</bug_when>
    <thetext>HI Team,

While going through WPT Failures, another came up, which if we merge below Blink commit, we progress one WPT and slightly another one.

Blink Commit: https://chromium-review.googlesource.com/c/chromium/src/+/518019

WebKit Source: https://searchfox.org/wubkat/source/Source/WebCore/css/parser/CSSSelectorParser.cpp#1175

Change to this:

bool isHostPseudo = compoundSelector.isHostPseudoSelector();
    if (isHostPseudo &amp;&amp; elementName.isNull() &amp;&amp; namespacePrefix.isNull())
        return;
    if (tag != anyQName() || isHostPseudo || isShadowDOM)
        compoundSelector.prependTagSelector(tag, determinedPrefix == nullAtom() &amp;&amp; determinedElementName == starAtom() &amp;&amp; !isHostPseudo);


____

Progress following WPT: http://wpt.live/css/css-scoping/host-with-default-namespace-001.html

and slightly progress this (matching Firefox but still failing): http://wpt.live/css/css-scoping/css-scoping-shadow-host-namespace.html

___

@Tim - any suggestion or we should merge since it progresses at least one WPT Test case.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983947</commentid>
    <comment_count>1</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-10 02:13:09 -0700</bug_when>
    <thetext>Committed 269134@main (f92a593eb387): &lt;https://commits.webkit.org/269134@main&gt;

Reviewed commits have been landed. Closing PR #18857 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983948</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-10-10 02:14:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/116727323&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>