Re: [i18n-drafts] Bidi support of lists (#309)

This is an interesting comment. 

The `dir` for a list (e.g. `ol` or `ul`) provides the paragraph direction for each of the list items. Setting `dir` on an individual `li` element overrides that direction for that specific list item.

The challenge here is that the *content* of a list item and the handling/alignment/decoration of the list item probably ought to be separate. Consider this list:

```
<ul dir=ltr>
   <li>This is left to right
   <li dir=rtl>هذا من اليمين إلى اليسار 
</ul>
```

The bullet decoration on the second (arabic) item displays on the *right* side. To get consistent presentation and still get proper bidi one needs to have a `span` or `bdi` for the content:

```
<ul dir=ltr>
   <li>This is left to right
   <li><span dir=rtl>هذا من اليمين إلى اليسار </span>
</ul>
```

@r12a This is similar to our discussions of the handling of quote marks on the `q` element.

-- 
GitHub Notification of comment by aphillips
Please view or discuss this issue at https://github.com/w3c/i18n-drafts/issues/309#issuecomment-888487215 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 28 July 2021 17:26:53 UTC