Bug 1463607 [wpt PR 11107] - [css-layout-api] Adds ability to set available sizes...
commit3b25322235b29b673d4fc05ab88e8c3c7f7f2479
authorIan Kilpatrick <ikilpatrick@chromium.org>
Wed, 6 Jun 2018 14:45:31 +0000 (6 14:45 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Sun, 10 Jun 2018 08:27:00 +0000 (10 09:27 +0100)
tree80f513eca34076933a4b568d6969a9d939a3cea4
parent0f1080b66a75d6ebae2f74545e89594f186074ed
Bug 1463607 [wpt PR 11107] - [css-layout-api] Adds ability to set available sizes on children., a=testonly

Automatic update from web-platform-tests[css-layout-api] Adds ability to set available sizes on children.

This adds the availableInlineSize, availableBlockSize, to the layout
constriants options dictionary.

This also makes the children "shrink-to-fit" if they are inside a
custom layout pass. Additional logic was needed to *not* "shrink-to-fit"
children during the layout fallback if any occurred, so
LayoutCustomPhaseScope was added to handle this.

The tests that were added test a new BFC with inline children to
see if shrink to fitting works as expected.

Bug: 726125
Change-Id: Ic86d51579b680d871c66040f54e532bc47d79979
Reviewed-on: https://chromium-review.googlesource.com/1069252
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561602}

--

wpt-commits: 127a32efa15d361e0eb4d0db1cbf5a99d26d72d9
wpt-pr: 11107
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-layout-api/perform-child-layout-available-inline-size-htb-htb.https.html [new file with mode: 0644]
testing/web-platform/tests/css/css-layout-api/perform-child-layout-available-inline-size-htb-vrl.https.html [new file with mode: 0644]
testing/web-platform/tests/css/css-layout-api/perform-child-layout-available-inline-size-vrl-htb.https.html [new file with mode: 0644]
testing/web-platform/tests/css/css-layout-api/perform-child-layout-available-inline-size-vrl-vrl.https.html [new file with mode: 0644]
testing/web-platform/tests/css/css-layout-api/perform-child-layout-fixed-block-size-vrl.https.html
testing/web-platform/tests/css/css-layout-api/perform-child-layout-fixed-block-size.https.html
testing/web-platform/tests/css/css-layout-api/perform-child-layout-fixed-inline-size-vrl.https.html
testing/web-platform/tests/css/css-layout-api/perform-child-layout-fixed-inline-size.https.html
testing/web-platform/tests/css/css-layout-api/support/layout-child-sizes-worklet.js [moved from testing/web-platform/tests/css/css-layout-api/support/layout-child-fixed-sizes-worklet.js with 78% similarity]