Closed Bug 1827564 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 39488 - Handle min/max sizes in non-replaced positioned boxes

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 39488 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/39488
Details from upstream follow.

Delan Azabani <dazabani@igalia.com> wrote:

Handle min/max sizes in non-replaced positioned boxes

This patch makes HoistedAbsolutelyPositionedBox handle min/max sizes in the non-replaced case, per CSS2 #min-max-widths and #min-max-heights. No changes are made to the replaced case.

3 new tests:

  • /css/CSS2/positioning/absolute-non-replaced-max-001.html (fails under layout 2013)
  • /css/CSS2/positioning/absolute-non-replaced-min-001.html (fails under layout 2013)
  • /css/CSS2/positioning/absolute-non-replaced-min-max-001.html (passes under layout 2013)

13 tests now pass:

11 tests would now pass if <br> was inserted between the two <img> tags in the reference (#29591):

1 test continues to fail, but the expectation was out of date:

Reviewed in servo/servo#29594

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 3 tests

Status Summary

Firefox

PASS: 3

Chrome

PASS: 3

Safari

PASS: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50e4407471d3 [wpt PR 39488] - Handle min/max sizes in non-replaced positioned boxes, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.