github web-platform-tests/wpt merge_pr_46162

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
8 months ago

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/c/chromium/src/+/5526033
Commit-Queue: Morten Stenshorne mstensho@chromium.org
Reviewed-by: Ian Kilpatrick ikilpatrick@chromium.org
Cr-Commit-Position: refs/heads/main@{#1299923}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.