<?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>249918</bug_id>
          
          <creation_ts>2022-12-27 20:49:59 -0800</creation_ts>
          <short_desc>[WPT] css/css-lists/list-marker-symbol-bidi.html with &quot;unicode-bidi: plaintext&quot; may have incorrect expected rendering</short_desc>
          <delta_ts>2023-11-30 15:52:43 -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>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=249899</see_also>
          <bug_file_loc>http://wpt.live/css/css-lists/list-marker-symbol-bidi.html</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="alan">zalan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>obrufau</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>1922056</commentid>
    <comment_count>0</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2022-12-27 20:49:59 -0800</bug_when>
    <thetext>&lt;style&gt;
ul {
  direction: rtl;
}
li {
  outline: 1px solid;
}
img {
  width: 10px;
  height: 10px;
  background-color: blue;
}
&lt;/style&gt;
&lt;div style=&quot;width: 200px; border: 1px solid;&quot;&gt;
  &lt;ul dir=&quot;rtl&quot;&gt;
    &lt;li style=&quot;unicode-bidi: plaintext&quot;&gt;&lt;img&gt;&lt;/li&gt;
  &lt;/ul&gt;

  &lt;ul dir=&quot;rtl&quot;&gt;
    &lt;li style=&quot;direction: ltr; text-align: right&quot;&gt;&lt;img&gt;&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;

shouldn&apos;t both lines produce the list marker at the same (horizontal) position?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922791</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-03 20:50:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/103859351&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922833</commentid>
    <comment_count>2</comment_count>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2023-01-04 03:35:47 -0800</bug_when>
    <thetext>https://drafts.csswg.org/css-lists/#marker-side

marker-side defaults to match-self, i.e.

&gt; The marker box is positioned using the directionality of the ::marker’s originating element.

So since the 1st &lt;li&gt; has direction:rtl, then its ::marker appears at the right. And since the 2nd &lt;li&gt; has direction:ltr, its ::marker appears on the left.

It sounds like you expect marker-side:match-parent

&gt; The marker box is positioned using the directionality of the ::marker’s originating element’s parent element.

Then since the &lt;ul&gt; have direction:rtl, both markers would appear at the right.

I don&apos;t see why unicode-bidi:plaintext would make it different, given that the markers have outside position. https://drafts.csswg.org/css-lists/#list-style-position-outside

&gt; CSS does not specify the precise location of the marker box or its position in the painting order, but does require that it be placed on the inline-start side of the box, using the writing mode of the box indicated by marker-side.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996036</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-30 15:52:43 -0800</bug_when>
    <thetext>It is failing only in Safari / WebKit. Adding &apos;BrowserCompat&apos; tag and also adding &apos;WPTImpact&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>