<?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>298631</bug_id>
          
          <creation_ts>2025-09-09 17:48:19 -0700</creation_ts>
          <short_desc>[css-list] Render marker text closer to list items</short_desc>
          <delta_ts>2025-09-16 17:55:51 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=298349</see_also>
          <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="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</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>2142014</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-09-09 17:48:19 -0700</bug_when>
    <thetext>Hi Team,

While looking into list-items, I came across two tests failing in Safari / WebKit only.

Test Case (LTR): https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=14056

Test Case (RTL): https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=14057

^ The numbers are half clipped, while other browsers show them properly. Fails on WebKit ToT (299783@main). Passes on Firefox Nightly 144 and Chrome Canary 142.

Blink Commit: https://chromium.googlesource.com/chromium/src.git/+/ae74f84464416b7d9fc63e808c4161eb08ffc1c3

WebKit Source: https://searchfox.org/wubkat/rev/379f807d0ee26713ff73973eea9a42e90f274bd7/Source/WebCore/rendering/RenderListMarker.cpp#414

Just raising, so we can fix it.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2142015</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-09-09 17:50:21 -0700</bug_when>
    <thetext>I think this might get fixed by bug 298349.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2142022</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-09-09 18:26:50 -0700</bug_when>
    <thetext>Changing:

return { -minPreferredLogicalWidth() - offset / 2, offset / 2 };

to:

return { -minPreferredLogicalWidth(), 0 };

___

Fixes those two tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2143488</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-09-16 17:55:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/160736173&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>