-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table cells don't handle vertical direction properly #171
Comments
The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the document. Proposals for changes or discussion of the content can be made in comments below this point. Relevant gap analysis documents include: |
There's a question from #155:
|
I updated the initial comment to be clearer and take into account tests discussed in #155. (Select 'edited' to see the changes.) |
Thanks @r12a! |
|
Thanks @xfq ! I have added this information to the top comment (so it now appears in the gap-analysis doc), and i'll do the same for all the other items for which you provided links. Thanks for your help. |
Rewrote the gap text to:
|
Clarified that this is only a problem if the height of the td element isn't specified and the td appears in a table with overall different direction. Changed the priority to advanced, since that's a less common combination. (If the table is vertical overall, this is not an issue.) |
I updated the tests and the text of this issue, and applied the latest template. |
Added a test for |
This issue is applicable to Japanese, Chinese, Korean, and Mongolian.
If you place the
writing-mode
property with a value ofvertical-rl/lr
on an individual table cell in a table that overall has a horizontal direction, you would expect the text in that cell to be displayed vertically, but in some browsers it isn't, unless the height of thetd
element is specified.This appears to be because the text is wrapped character-by-character (cf. Mongolian, where words are wrapped rather than characters).
Tests & results:
Interactive test, Adding writing-mode:vertical-rl to a td element produces vertical text, with lines stacking RTL.
Interactive test, Adding writing-mode:vertical-lr to a td element produces vertical text, with lines stacking LTR.
This works as expected in Gecko and Blink browsers, as well as in legacy Edge and Internet Explorer. However, Webkit browsers, leave the text horizontal but rotate the Japanese characters to the left.
Interactive test, Adding writing-mode to a
span
inside atd
produces the expected directionalityWrapping the text to be made vertical in a
span
inside the cell, and applyingwriting-mode:vertical-rl
to that gives the expected result in Blink, but in Safari it's necessary to also apply a height setting for the text to display properly.Browser bug reports:
Blink • Webkit
Priority:
Correct behaviour here is a pretty basic expectation for handling directionality in tables, but since it only occurs when the direction of the
td
element is different from that of the overall table, this can probably be marked as advanced.Updates:
June 2021: This gap was fixed for Blink.
The text was updated successfully, but these errors were encountered: