[wpt-sync] Sync PR 46162 - Make room for @page borders and padding in layout.
Categories
(Core :: Layout, task, P4)
Tracking
()
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
Assignee | ||
Updated•9 months ago
|
Assignee | ||
Comment 1•9 months ago
|
||
Assignee | ||
Comment 2•9 months ago
|
||
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
- /css/css-page/page-box-004-print.html [wpt.fyi]:
FAIL
(Chrome:FAIL
)
https://hg.mozilla.org/mozilla-central/rev/55ed9fdf529a
https://hg.mozilla.org/mozilla-central/rev/76c05d30ee34
Description
•