[Layout] `<td>` with `style="writing-mode: vertical-rl;"` results in wrong height and text wrapping at wrong height when `style="overflow-wrap: anywhere;"` and `rowspan="2"` are both used
Categories
(Core :: Layout: Tables, defect)
Tracking
()
People
(Reporter: jhcarl0814, Unassigned)
References
(Regression)
Details
(Keywords: nightly-community, regression)
Attachments
(4 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Steps to reproduce:
(This issue happens on 146.0.1 (64 bit) and 147.0 (64 bit).)
minimal reproducing HTML:
<!doctype html>
<html lang="en-US">
<head>
<style>
* { border: solid 1px black; }
</style>
</head>
<body>
overflow-wrap: anywhere; rowspan="2" (width is correct, height is wrong, wrap is performed in the height of 1st row)
<table style="margin-left: 200px;">
<tbody>
<tr>
<td style="writing-mode: vertical-rl; overflow-wrap: anywhere;" rowspan="2">texttext texttext<br>texttext texttext<br>texttext texttext</td>
<td>texttext texttext</td>
</tr>
<tr><td>texttext texttext</td></tr>
</tbody>
</table>
overflow-wrap: anywhere;
<table style="margin-left: 200px;">
<tbody>
<tr>
<td style="writing-mode: vertical-rl; overflow-wrap: anywhere;">texttext texttext<br>texttext texttext<br>texttext texttext</td>
<td>texttext texttext</td>
</tr>
</tbody>
</table>
rowspan="2"
<table style="margin-left: 200px;">
<tbody>
<tr>
<td style="writing-mode: vertical-rl; overflow-wrap: normal;" rowspan="2">texttext texttext<br>texttext texttext<br>texttext texttext</td>
<td>texttext texttext</td>
</tr>
<tr><td>texttext texttext</td></tr>
</tbody>
</table>
<hr>
rowspan="2" (width is correct, height is wrong, wrap is performed inside the wrong height)
<table style="margin-left: 200px;">
<tbody>
<tr>
<td style="writing-mode: vertical-rl;" rowspan="2">texttext texttext<br>texttext texttext<br>texttext texttext</td>
<td>texttext texttext</td>
</tr>
<tr><td>texttext texttext</td></tr>
</tbody>
</table>
(rowspan="1")
<table style="margin-left: 200px;">
<tbody>
<tr>
<td style="writing-mode: vertical-rl;">texttext texttext<br>texttext texttext<br>texttext texttext</td>
<td>texttext texttext</td>
</tr>
</tbody>
</table>
</body>
</html>
Actual results:
(Screenshot from Firefox is attached.)
When <td> uses style="writing-mode: vertical-rl;", it has wrong height and the text therein wraps at wrong height (height of the first row) if style="overflow-wrap: anywhere;" and rowspan="2" (any number greater than 1) are both present.
Expected results:
(Screenshot from a browser other than Firefox is attached.)
<td> should have correct height (a larger height) and text in it wrapped at correct height.
Comment 3•10 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::CSS Parsing and Computation' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 4•10 months ago
|
||
Updated•10 months ago
|
Updated•10 months ago
|
Comment 5•10 months ago
|
||
Set release status flags based on info from the regressing bug 1961753
:jfkthame, since you are the author of the regressor, bug 1961753, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Comment 6•10 months ago
|
||
Updated•10 months ago
|
Comment 7•9 months ago
|
||
Yes, this is clearly a regression, though hopefully it's not a very widespread scenario.
(FTR, prior to bug 1954762 this example was broken in other ways, so there was only a brief window of a few weeks on Nightly (and one Release version) where this actually rendered correctly.)
Comment 8•9 months ago
|
||
Assuming/marking this as wontfix for current release and likely for current beta (though we could fix it on Nightly if/when someone has cycles to work on it).
Updated•8 months ago
|
Comment 9•20 days ago
|
||
Dup'ing forward to bug 2060385, where there's a patch that should resolve this.
Description
•