Open
Bug 1231656
Opened 9 years ago
Updated 2 years ago
text-align and vertical-align don't work as expected on table cells that are orthogonal to row (writing-mode)
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
NEW
People
(Reporter: heycam, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
See the attachment. I think the <td> should have its text aligned at the top of the cell, just like the <div>.
The same issue applies with vertical-align.
Reporter | ||
Updated•9 years ago
|
Blocks: writing-mode
Comment 1•9 years ago
|
||
Note that vertical-align is getting applied in the inline direction (i.e., vertical-align: top/middle/bottom changes what text-align should be changing).
Comment 2•9 years ago
|
||
I think the problem is that the writing mode we use in nsTableCellFrame::BlockDirAlignChild is the row's writing-mode instead of the cell's.
Comment 3•9 years ago
|
||
That said, there may also be some interesting assumptions here about what work needs to be redone when certain sizes change -- assumptions that might be invalid when the writing-modes between row and cell don't match. (Or similar assumptions between other table parts.)
Blocks: 1173307
Updated•9 years ago
|
Summary: text-align doesn't work as expected with writing-mode:sideways-{lr,rl} on table cells → text-align and vertical-align don't work as expected on table cells that are orthogonal to row (writing-mode)
Comment 4•8 years ago
|
||
Also note that currently nsTableCellFrame sets its mWritingMode based on the table's writing mode; we may want to change this.
Comment 5•8 years ago
|
||
... though that's probably bug 1244601.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•