<?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>293548</bug_id>
          
          <creation_ts>2025-05-25 09:02:45 -0700</creation_ts>
          <short_desc>REGRESSION(?): :hover and :active states inside &amp;::-webkit-scrollbar-thumb apply to the entire element</short_desc>
          <delta_ts>2025-06-13 14:35:41 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>293230</dup_id>
          
          <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>emile</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>karlcow</cc>
    
    <cc>koivisto</cc>
    
    <cc>m_dubet</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2119581</commentid>
    <comment_count>0</comment_count>
    <who name="">emile</who>
    <bug_when>2025-05-25 09:02:45 -0700</bug_when>
    <thetext>This piece of code doesn&apos;t work anymore since sometime around Safari 18.4.

.foo {
  &amp;::-webkit-scrollbar-thumb {
    &amp;:hover{
      background: red;
    }
  }
}

Hovering .foo will make the entire background red, instead of only the scrollbar. This used to work.

Creating separate lines, e.g. &amp;::-webkit-scrollbar-thumb:hover { ... } solves it for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120040</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-05-27 19:33:01 -0700</bug_when>
    <thetext>&lt;rdar://problem/152126908&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120801</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-05-30 15:03:46 -0700</bug_when>
    <thetext>@Emile - by any chance, you have demo or reduction or reproduction of test case, which we can use to reproduce the bug on how you are experiencing on particular website or in your scenario?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120900</commentid>
    <comment_count>3</comment_count>
    <who name="">emile</who>
    <bug_when>2025-05-31 03:54:53 -0700</bug_when>
    <thetext>Sure! Here&apos;s a demo: https://codepen.io/Emile-Nijssen/pen/myJVjad</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120917</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-05-31 09:41:51 -0700</bug_when>
    <thetext>*** Chrome Canary 139.0.7208.0 (Official Build) canary (arm64) ***
First div container does not show anything on hover.

*** Safari 18.5 ***
First div container show `blue` whole background as blue

*** Firefox Nightly 141 ***
N/A - due to `-webkit-` prefix case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2121132</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-06-02 09:22:49 -0700</bug_when>
    <thetext>Issue with nesting and pseudoelements?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2123602</commentid>
    <comment_count>6</comment_count>
    <who name="Matthieu Dubet">m_dubet</who>
    <bug_when>2025-06-13 14:35:41 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 293230 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>