Bug 202849

Summary: [css-lists] No support for mixed-bidi in markers
Product: WebKit Reporter: Oriol Brufau <obrufau>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, bfulgham, simon.fraser, zalan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.chromium.org/p/chromium/issues/detail?id=1012289
Bug Depends on: 167729    
Bug Blocks:    
Attachments:
Description Flags
testcase none

Description Oriol Brufau 2019-10-11 07:21:53 PDT
Created attachment 380752 [details]
testcase

**What steps will reproduce the problem?**

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

The problem is when that string has mixed-bidi:

    <ol>
      <li style="list-style-type: '\31\627\644\32'">list-item</li>
    </ol>

**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).
Comment 1 Ahmad Saleem 2022-10-01 16:44:02 PDT
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 "expected result". Thanks!