[wpt-sync] Sync PR 65042 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329679
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65042 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65042
Details from upstream follow.
Alan Baradlay <zalan@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329679
WebKit export from bug: [<!---->Tables]<!----> A table with aspect-<!---->ratio is as tall as its aspect ratio makes it plus its rows
<pre>
[Tables] A table with aspect-ratio is as tall as its aspect ratio makes it plus its rows<table style="width: 200px; aspect-ratio: 2; border-spacing: 0"><tr><td style="padding: 0"><div style="height: 10px"></div></td></tr></table>The table should be 100px tall. Instead it is 110px tall.
RenderTable::layout() applies a table's height and min/max-height itself, but RenderBox::computeLogicalHeight() gives the table the
height from its aspect ratio. RenderTable::layout() calls updateLogicalHeight() before laying out its sections, so the sections are
stacked below that height instead of below the table's top border and padding.Let's apply the aspect ratio in RenderTable::layout() instead: like the height, the overriding height and min/max-height, it now
feeds computedLogicalHeight, which distributeExtraLogicalHeight() distributes to the sections.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=329679">https://bugs.webkit.org/show_bug.cgi?id=329679</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/325774@main">https://commits.webkit.org/325774@main</a>
</pre>
| Assignee | ||
Updated•16 days ago
|
| Assignee | ||
Comment 1•16 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=122488
| Assignee | ||
Comment 2•16 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 5 subtests
Status Summary
Firefox
OK : 1
PASS: 5
Chrome
OK : 1
PASS: 4
FAIL: 1
Safari
OK : 1
FAIL: 5
Links
Comment 4•13 days ago
|
||
| bugherder | ||
Description
•