<?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>202849</bug_id>
          
          <creation_ts>2019-10-11 07:21:53 -0700</creation_ts>
          <short_desc>[css-lists] No support for mixed-bidi in markers</short_desc>
          <delta_ts>2022-10-01 16:44:13 -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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.chromium.org/p/chromium/issues/detail?id=1012289</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>167729</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oriol Brufau">obrufau</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1579092</commentid>
    <comment_count>0</comment_count>
      <attachid>380752</attachid>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2019-10-11 07:21:53 -0700</bug_when>
    <thetext>Created attachment 380752
testcase

**What steps will reproduce the problem?**

This doesn&apos;t seem noticeable right now because markers can only be numbers or symbols.
However, in bug 167729 I plan to add list-style-type:&lt;string&gt;, which will make it possible to use arbitrary strings in markers.

The problem is when that string has mixed-bidi:

    &lt;ol&gt;
      &lt;li style=&quot;list-style-type: &apos;\31\627\644\32&apos;&quot;&gt;list-item&lt;/li&gt;
    &lt;/ol&gt;

**What is the expected result?**

The marker should be rendered with U+0031 (1), U+0032 (2), U+0644 (ل), U+0627 (ا).


**What happens instead?**

The marker is rendered with U+0031 (1), U+FEFB (ﻻ), U+0032 (2).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902667</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-01 16:44:02 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 16 and Safari Technology Preview 154 using attached test case and it shows incorrect results while both Chrome Canary 108 and Firefox Nightly 107 renders this perfectly while showing &quot;expected result&quot;. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>380752</attachid>
            <date>2019-10-11 07:21:53 -0700</date>
            <delta_ts>2019-10-11 07:21:53 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>list-style-type-bidi.htm</filename>
            <type>text/html</type>
            <size>151</size>
            <attacher name="Oriol Brufau">obrufau</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8bWV0YSBjaGFyc2V0PSJ1dGYtOCI+CjxzdHlsZT4KbGkg
ewogIGxpc3Qtc3R5bGUtdHlwZTogIlwzMSBcNjI3IFw2NDQgXDMyICI7Cn0KPC9zdHlsZT4KPG9s
PgogIDxsaT5saXN0LWl0ZW08L2xpPgo8L29sPgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>