<?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>245929</bug_id>
          
          <creation_ts>2022-10-01 06:49:20 -0700</creation_ts>
          <short_desc>Fix incorrectly positioned block element inside list-style-position:inside item</short_desc>
          <delta_ts>2025-06-20 15:03:56 -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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>227000</dup_id>
          
          <bug_file_loc>https://jsfiddle.net/745chzpy/show</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="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>1902610</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-01 06:49:20 -0700</bug_when>
    <thetext>Hi Team,

It might be duplicate of other bugs but I want to try this bug by merging below and see how it goes.

Commit - https://chromium.googlesource.com/chromium/src/+/36d85fd5ae96048efcef076a209655ddf2bd02fe

Webkit GitHub Source - https://github.com/WebKit/WebKit/blob/835b3f86b66bb2f7c66045c353a458a60d43800f/Source/WebCore/rendering/updating/RenderTreeBuilderList.cpp#L111

_____

In case if I am not able to fix this, I will document my rationale etc. here.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904250</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-08 06:50:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/100933527&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907800</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-24 07:45:12 -0700</bug_when>
    <thetext>I tried but I am not able to resolve build errors and not able to find &quot;isInside&quot; equivalent in Webkit (I might be wrong and trying it right):

https://github.com/WebKit/WebKit/pull/4900

Closing my PR for someone else to try.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942428</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-03-19 11:08:31 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #2)
&gt; I tried but I am not able to resolve build errors and not able to find
&gt; &quot;isInside&quot; equivalent in Webkit (I might be wrong and trying it right):
I think it maps to RenderListMarker::isInside</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2041566</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-06-15 22:24:05 -0700</bug_when>
    <thetext>Latest PR attempt - https://github.com/WebKit/WebKit/pull/29373

It compiles and fixes last two failing CSS2 tests on WPT as well but it also lead to failing some legit WPT test:

Rebaseline - fast/repaint/list-marker.html
Legit failure - imported/w3c/web-platform-tests/css/css-lists/change-list-style-position-002.html

Closing PR for time being.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124927</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-06-20 15:03:56 -0700</bug_when>
    <thetext>fixed with 296451@main.

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

    </bug>

</bugzilla>