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)

defect

Tracking

()

People

(Reporter: heycam, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file test (deleted) —
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.
Blocks: writing-mode
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).
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.
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
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)
Also note that currently nsTableCellFrame sets its mWritingMode based on the table's writing mode; we may want to change this.
... though that's probably bug 1244601.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: