Closed Bug 2010144 Opened 10 months ago Closed 20 days ago

[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)

Firefox 147
defect

Tracking

()

RESOLVED DUPLICATE of bug 2060385
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- affected
firefox147 --- wontfix
firefox148 --- wontfix
firefox149 --- wontfix
firefox150 --- wontfix

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.

Attached image actual.png —
Attached image expected.png —

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.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Component: CSS Parsing and Computation → Layout: Tables
Status: UNCONFIRMED → NEW
Ever confirmed: true

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.

Flags: needinfo?(jfkthame)

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.)

Severity: -- → S3
Flags: needinfo?(jfkthame)

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).

Dup'ing forward to bug 2060385, where there's a patch that should resolve this.

Status: NEW → RESOLVED
Closed: 20 days ago
Duplicate of bug: 2060385
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: