You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What should be the standard way of adding bidi support to lists? As per my understanding, we need to add dir="auto" to ul or ol but also each li should also have some way to support bidi. What should be done specially when different items are in different languages; some start with RTL and some with LTR.
The text was updated successfully, but these errors were encountered:
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.
I have checked Inline markup and bidirectional text in HTML and Structural markup and right-to-left text in HTML for bidi support but couldn't find anything related to list items (ul, ol, li).
What should be the standard way of adding bidi support to lists? As per my understanding, we need to add
dir="auto"
toul
orol
but also eachli
should also have some way to support bidi. What should be done specially when different items are in different languages; some start with RTL and some with LTR.The text was updated successfully, but these errors were encountered: