<?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>305886</bug_id>
          
          <creation_ts>2026-01-20 17:05:12 -0800</creation_ts>
          <short_desc>::part(range)::-webkit-slider-thumb can not be an anchor element</short_desc>
          <delta_ts>2026-01-28 17:53:30 -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>Layout and Rendering</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 26</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="James Stuckey Weber">jamesnw</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>karlcow</cc>
    
    <cc>kiet.ho</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2173513</commentid>
    <comment_count>0</comment_count>
    <who name="James Stuckey Weber">jamesnw</who>
    <bug_when>2026-01-20 17:05:12 -0800</bug_when>
    <thetext>::-webkit-slider-thumb can be used as an anchor element, but it appears not possible when the range input is in a shadow DOM.

Minimal reproduction-

&lt;styles-outside&gt;
  &lt;template shadowrootmode=&quot;open&quot;&gt;
    &lt;input type=&quot;range&quot; part=&quot;slider&quot;&gt;&lt;/input&gt;
    &lt;div part=&quot;label&quot;&gt;shadow, styles outside&lt;/div&gt;
  &lt;/template&gt;
&lt;/styles-outside&gt;


&lt;style&gt;
styles-outside::part(slider)::-webkit-slider-thumb {
  anchor-name: --in;
}
styles-outside::part(label) {
  position: absolute;
  position-area: end;
  position-anchor: --in;
}
&lt;/style&gt;

I&apos;ve tested that you can select the thumb with `inline-demo::part(slider)::-webkit-slider-thumb` for other styles. Styles inside the shadow DOM can make the thumb a valid anchor. 

Codepen- https://codepen.io/jamessw/pen/qENmzNq/fdfcc35d41d206e88091af42ee2e8f90. 

This works in Chrome, but can&apos;t be expected to work in Firefox given the non-standard ::-webkit-slider-thumb.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175609</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-01-27 17:06:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/169049096&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>