Closed Bug 2094976 Opened 16 days ago Closed 13 days ago

[wpt-sync] Sync PR 65042 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329679

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
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

 &lt;table style=&quot;width: 200px; aspect-ratio: 2; border-spacing: 0&quot;&gt;&lt;tr&gt;&lt;td style=&quot;padding: 0&quot;&gt;&lt;div style=&quot;height: 10px&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

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>

Component: web-platform-tests → Layout
Product: Testing → Core

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

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Status: NEW → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.