Bug 210321 - Auto-direction is always LTR if element starts with an Emoji
Summary: Auto-direction is always LTR if element starts with an Emoji
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari 13
Hardware: Unspecified macOS 10.14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-09 21:49 PDT by Samy Alzhrani
Modified: 2020-04-10 10:06 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samy Alzhrani 2020-04-09 21:49:07 PDT
When an html element starts with an Emoji, it is treated as having a strong LTR direction regardless of what follows.

for example the following p tag should have a base direction of RTL since all the text other than the emoji is RTL
<p dir="auto">😁عربي</p>
Comment 1 Radar WebKit Bug Importer 2020-04-10 10:06:18 PDT
<rdar://problem/61589574>