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).
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!