Closed Bug 1895701 Opened 9 months ago Closed 9 months ago

[wpt-sync] Sync PR 46162 - Make room for @page borders and padding in layout.

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Morten Stenshorne <mstensho@chromium.org> wrote:

Make room for @page borders and padding in layout.

Page borders and padding shouldn't be affected by layout scaling. Since
the page border box lives in the coordinate system of layout, the values
need to be scaled down when computing style.

The insets caused by @page borders and padding will naturally shrink the
size available to the page content area. As such
CalculateChildAvailableSize() needs an update now. The page container
and border boxes are anonymous blocks, but their block-size should be
allowed to be adjusted nevertheless. Only prevent block-size adjustment
if it's indefinite (which is never the case for page containers or page
border boxes).

Bug: 40286153
Change-Id: Ie701aa65cd5f23820d3a8de3e40958342a106174
Reviewed-on: https://chromium-review.googlesource.com/5526033
WPT-Export-Revision: f1080a5de6abb9de8ba876cb0bf6a38e2e802692

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

CI Results

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

Total 1 tests

Status Summary

Firefox

FAIL: 1

Chrome

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/55ed9fdf529a [wpt PR 46162] - Make room for @page borders and padding in layout., a=testonly https://hg.mozilla.org/integration/autoland/rev/76c05d30ee34 [wpt PR 46162] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.