Commit Graph
26 Commits
Author SHA1 Message Date
Ian Kilpatrick 6ecdfff1f1 Bug 1575353 [wpt PR 18570] - [css-layout-api] Re-add LayoutEdges., a=testonly
Automatic update from web-platform-tests
[css-layout-api] Re-add LayoutEdges.

This patch was created by reverting:
https://chromium-review.googlesource.com/c/chromium/src/+/1282724

And converting the tests to use promises, and switching the API to NG.

I run the patch against the mac-bots a few times to determine if I
could reproduced the flakiness which occurred initially to no avail.

Bug: 726125
Change-Id: I5f6197699977c03d3efbd4ca0926815faabee19d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761372
Reviewed-by: Morten Stenshorne <[email protected]>
Commit-Queue: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#689023}

--

wpt-commits: 443459a640bf144ec0ea6c7ab4b5e8bc6432f362
wpt-pr: 18570
2019-08-27 04:12:16 +00:00
Ian Kilpatrick af617cdb4b Bug 1574537 [wpt PR 18503] - [css-layout-api] Move tests into various sub-directories., a=testonly
Automatic update from web-platform-tests
[css-layout-api] Move tests into various sub-directories.

Tests-only. Moves tests into logically grouped sub-directories.
This speeds up (local) test runs as parallelization happens on a per
directory basis.

Bug: 726125
Change-Id: I963184ea74675a4c662ec4779afafa085c33ea0e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1757890
Commit-Queue: Ian Kilpatrick <[email protected]>
Auto-Submit: Ian Kilpatrick <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/master@{#687807}

--

wpt-commits: f10378fa073caba1a793c28801a5231aeab95279
wpt-pr: 18503
2019-08-27 04:11:28 +00:00
Ian Kilpatrick e8ecac8f5e Bug 1571788 [wpt PR 18297] - [css-layout-api] Convert to promise based API., a=testonly
Automatic update from web-platform-tests
[css-layout-api] Convert to promise based API.

As above! This switches the API from being generator based, to promise
based.

This introduces the specification's work queue, which is run until
exhaustion. After the work queue has been run the given promise should
be resolved, (if not we fallback to block layout).

This also introduces the CustomLayoutScope, and CustomLayoutToken
which are used together.

The CustomLayoutToken is a heap allocated class held onto objects which
should only be used within a certain layout pass. E.g. you cannot
hold onto a fragment from a previous layout pass, and use it within
the current layout pass.

This is managed by a stack allocated CustomLayoutScope, which once
destroyed marks the CustomLayoutToken as "detached". Any object which
has a "detached" token shouldn't be used.

The CustomLayoutScope is also used to hold onto the work queue.

Bug: 726125
Change-Id: Ic435c8c50fe3d3779f068b41eada815253d0b78b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1716035
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/master@{#684927}

--

wpt-commits: dd38623d0edc9005cf87397feb2e011eb0679c52
wpt-pr: 18297
2019-08-09 20:31:41 +00:00
Anne van Kesteren 135b95a039 Bug 1564381 [wpt PR 17689] - CSS and SharedArrayBuffer: don't make support conditional, a=testonly
Automatic update from web-platform-tests
CSS and SharedArrayBuffer: don't make support conditional

--

wpt-commits: 738b3a2ea603945395f35e6cba4dbd849deab118
wpt-pr: 17689
2019-08-09 20:31:35 +00:00
Oriol Brufau 639bdbc0c0 Bug 1564653 [wpt PR 17536] - Recalculate descendant styles when display changes to custom layout, a=testonly
Automatic update from web-platform-tests
Recalculate descendant styles when display changes to custom layout

Previously this only happened if the old display was custom layout,
but not when changing from a standard display to a custom one.
This was a typo, the same condition was checked twice for old_style,
but the second occurrence should check new_style instead.
The change matters when there are inline children that should be
blockified by the custom layout, without the patch they would remain
inline.

BUG=978990
TEST=external/wpt/css/css-layout-api/layout-child-inlines-dynamic.https.html

Change-Id: I73bcf679209dd4bc4a0d7a49f4345ee699bbf37e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1678484
Reviewed-by: Rune Lillesveen <[email protected]>
Commit-Queue: Oriol Brufau <[email protected]>
Cr-Commit-Position: refs/heads/master@{#672718}

--

wpt-commits: b26fcfbbc09d2fb3bfa1b9bbc643f7d4ffb971b0
wpt-pr: 17536
2019-07-24 13:31:39 +01:00
Ian Kilpatrick 06196f7c15 Bug 1493039 [wpt PR 13130] - [css-layout-api] Move perform-child-layout tests to child-constraints, a=testonly
Automatic update from web-platform-tests[css-layout-api] Move perform-child-layout tests to child-constraints

As above, move similar tests into subdirectory, and apply minor
documentation cleanups.

Adds two new tests checking that setting an invalid (negative) available
size, clamps it to zero.

Bug: 726125
Change-Id: Id5bdfa25970a4e4bfe359377b88176043ab1f6c3
Reviewed-on: https://chromium-review.googlesource.com/1236266
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Aleks Totic <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#593236}

--

wpt-commits: 80fa83f6ca3dc7039088afae9a908222b31f6aa4
wpt-pr: 13130
2018-09-27 09:56:01 +00:00
Ian Kilpatrick d46c300e55 Bug 1493019 [wpt PR 13124] - [css-layout-api] Adds ability to specify percentage{Inline,Block}Size., a=testonly
Automatic update from web-platform-tests[css-layout-api] Adds ability to specify percentage{Inline,Block}Size.

This allows developers to specify the size which percentages in the
block (wrt child writing mode) direction should be resolved against.
Currently inline percentages still resolve against the available
inline-size.

This adds a "OverrideContainingBlockPercentageResolutionLogicalHeight"
field on layout box, which both the logic for
LayoutBox::ComputePercenatgeLogicalHeight and
LayoutBox::ComputeReplacedLogicalHeight use.

They follow similar logic to LayoutGrid, in that in quirks mode,
percentages are treated as indefinite (doesn't "walk-up" the tree).

Change-Id: I256381687d2eed7693a908074f7f5032d5963e2b
Reviewed-on: https://chromium-review.googlesource.com/1232206
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Aleks Totic <[email protected]>
Cr-Commit-Position: refs/heads/master@{#593208}

--

wpt-commits: 159da2f8ef7c8259c7fc013cbfea2314e2dfdeeb
wpt-pr: 13124
2018-09-27 09:56:00 +00:00
Ian Kilpatrick e98a1ee038 Bug 1492229 [wpt PR 13055] - [css-layout-api] Add test for percentage height in quirks mode., a=testonly
Automatic update from web-platform-tests[css-layout-api] Add test for percentage height in quirks mode.

Adds a test to verify that constraints.fixedBlockSize is set to the
correct value, in quirks mode, with a percentage block-size.

Bug: 	726125
Change-Id: I97a1e946cdbb4443d70803bfd4ace7f8d3df2ce1
Reviewed-on: https://chromium-review.googlesource.com/1231385
Reviewed-by: Aleks Totic <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Commit-Queue: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#592181}

--

wpt-commits: f1feab0fce77d29d1c7eb5a043d2345e6ba3123f
wpt-pr: 13055
2018-09-24 19:42:36 +00:00
Philip Jägenstedt faab950fe0 Bug 1476293 [wpt PR 12024] - Add spec links to META.yml, a=testonly
Automatic update from web-platform-testsMerge pull request #12024 from web-platform-tests/meta-specs

Add spec links to META.yml
--

wpt-commits: eeded53153beba20a9c2c8bf35a02ae1d48103cd
wpt-pr: 12024
2018-07-29 18:49:42 +01:00
Morten Stenshorne d67ec3c03f Bug 1474653 [wpt PR 11887] - [css-layout-api] Don't use LayoutNG for custom layout children., a=testonly
Automatic update from web-platform-tests[css-layout-api] Don't use LayoutNG for custom layout children.

Custom layout children may not establish new formatting contexts, and
since the custom container itself is laid out by the legacy engine, we
need to force its children to be laid out by legacy as well.

Added a margin collapsing test that used to fail in NG because of this.

Change-Id: Id320f60fb76b0ed6563fb2b88f6936ac37efc1fd
Reviewed-on: https://chromium-review.googlesource.com/1131179
Reviewed-by: Ian Kilpatrick <[email protected]>
Commit-Queue: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#573864}

--

wpt-commits: b47e2cd91cfe1b2246655b6612c407898939588c
wpt-pr: 11887
2018-07-20 13:04:43 +00:00
Jonathon Kereliuk b19084d093 Bug 1464894 [wpt PR 11201] - Rename of OWNER files to META.yml, a=testonly
Automatic update from web-platform-testsRename of OWNER files to META.yml

--

wpt-commits: e600ea2e919641566238cef57ff59f1ee21e50d3
wpt-pr: 11201
2018-07-11 07:49:41 +01:00
Ian Kilpatrick dc92a78d6e Bug 1465661 [wpt PR 11260] - [css-layout-api] Adds passing of LayoutConstraints#fixedBlockSize., a=testonly
Automatic update from web-platform-tests[css-layout-api] Adds passing of LayoutConstraints#fixedBlockSize.

This passes a fixed block size constraint into the layout function if:
 - It has a fixed/percentage/calc block-size.
 - The abs-pos constraints will make a fixed block size.
 - It is a quirky body/document (which stretches to fit the viewport).
 - It has a fixed block-size constraint from a parent layout.

The tests all behave the same way. The layout which we are interested
in testing looks at the received fixedBlockSize, and if correct performs
layout on the only child with a 100x100 fixed size.

Bug: 726125
Change-Id: I4eec86a843d58a791c9df071e16b71bf2f5d80ee
Reviewed-on: https://chromium-review.googlesource.com/1073636
Reviewed-by: Morten Stenshorne <[email protected]>
Commit-Queue: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#563668}

--

wpt-commits: ff4d0553835102b2f68c7bf8dafb205bd3cacb89
wpt-pr: 11260
2018-06-17 15:18:33 +00:00
Andreea Pavel a7659f9fe1 Backed out 92 changesets (bug 1467661, bug 1466064, bug 1466075, bug 1437740, bug 1459354, bug 1467079, bug 1466970, bug 1461365, bug 1466507, bug 1467310, bug 1466522, bug 1466158, bug 1466173, bug 1466116, bug 1466812, bug 1466108, bug 1466119, bug 1465045, bug 1466057, bug 1460771, bug 1467512, bug 1466557, bug 1466366, bug 1466206, bug 1464861, bug 1464182, bug 1466289, bug 1467579, bug 1466731, bug 1465917, bug 1466752, bug 1466273, bug 1466506, bug 1467571, bug 1467711, bug 1466710, bug 1467554, bug 1465746, bug 1467618, bug 1468799, bug 1466823, bug 1466796, bug 1466602, bug 1465661, bug 1450172, bug 1466798, bug 1438330, bug 1466770, bug 1467060, bug 1466968, bug 1465780, bug 1466079, bug 1466300, bug 1452945, bug 1467708, bug 1467516, bug 1466195, bug 1466260, bug 1464976, bug 1465437, bug 1466741, bug 1464957, bug 1466460, bug 1466463, bug 1466442, bug 1467168, bug 1466566, bug 1467351, bug 1464931) for wpt mass failures on a CLOSED TREE
Backed out changeset 5d5fed1922dd (bug 1467554)
Backed out changeset 1806b9822582 (bug 1466507)
Backed out changeset 2336cc4ca2d2 (bug 1466507)
Backed out changeset a3bd6fdccdc8 (bug 1438330)
Backed out changeset 2f6df5e484b2 (bug 1438330)
Backed out changeset 6880a2a5cfe0 (bug 1467512)
Backed out changeset 2802de5b96e6 (bug 1467711)
Backed out changeset 16f14f7b237e (bug 1467708)
Backed out changeset 9db2d675cd94 (bug 1467708)
Backed out changeset cadbab26c4c0 (bug 1467579)
Backed out changeset 324874fd667e (bug 1467661)
Backed out changeset 42bbb9d89d1e (bug 1467618)
Backed out changeset cb6955c6bc5d (bug 1464976)
Backed out changeset 2f41b56a6b12 (bug 1464976)
Backed out changeset 835950053cc7 (bug 1467571)
Backed out changeset a1072c199fd4 (bug 1467516)
Backed out changeset a1ec2c9c44fc (bug 1467060)
Backed out changeset 90138b0a5a8c (bug 1467079)
Backed out changeset ebeb8816f771 (bug 1468799)
Backed out changeset 9db7a55ae594 (bug 1467351)
Backed out changeset 42907423c6cd (bug 1467351)
Backed out changeset b7d6284c6d32 (bug 1467310)
Backed out changeset b8f10e83eab2 (bug 1467310)
Backed out changeset bd318d9b9a2b (bug 1466116)
Backed out changeset f4c5360b3ab4 (bug 1466798)
Backed out changeset c16f9f13a1af (bug 1467168)
Backed out changeset 666d92f992fb (bug 1466075)
Backed out changeset febbc42c7d8f (bug 1466075)
Backed out changeset 97f58661d408 (bug 1466970)
Backed out changeset 28bcacafede4 (bug 1466970)
Backed out changeset 7e0584c3ccea (bug 1466968)
Backed out changeset 68f23429cb70 (bug 1466731)
Backed out changeset 2faa240b4fe5 (bug 1466079)
Backed out changeset ea9f58856bd0 (bug 1466522)
Backed out changeset a9e12a05dcfa (bug 1466300)
Backed out changeset 3ac4a4226f2f (bug 1466300)
Backed out changeset d2b20e8139f3 (bug 1466506)
Backed out changeset 654939f9e9cd (bug 1437740)
Backed out changeset d64d94aa6f35 (bug 1464861)
Backed out changeset ebc64065cf0c (bug 1461365)
Backed out changeset e52adc51ab6f (bug 1466796)
Backed out changeset 704e07e5800a (bug 1466823)
Backed out changeset 68f3ab3a285e (bug 1450172)
Backed out changeset 4f49d0d72ea5 (bug 1466812)
Backed out changeset f9c722a7d875 (bug 1452945)
Backed out changeset 4ff137e10c3f (bug 1466602)
Backed out changeset 2e94891d59b8 (bug 1466602)
Backed out changeset 11108df0fae4 (bug 1466770)
Backed out changeset efd28be672f5 (bug 1466770)
Backed out changeset e957fe1981f2 (bug 1465437)
Backed out changeset 8119ee3bcb26 (bug 1465437)
Backed out changeset 8c83448ff830 (bug 1466366)
Backed out changeset fae61b46d4b5 (bug 1466366)
Backed out changeset 74a21375a7d9 (bug 1466752)
Backed out changeset 148cd8a91dee (bug 1466710)
Backed out changeset 8a788ec47a1e (bug 1466741)
Backed out changeset 6d6bfe66dde6 (bug 1466289)
Backed out changeset 402bbf78b4cc (bug 1460771)
Backed out changeset a401456c4b11 (bug 1465045)
Backed out changeset 0db160d046d1 (bug 1465045)
Backed out changeset 9c49cfec2e80 (bug 1459354)
Backed out changeset 168b53cc7982 (bug 1459354)
Backed out changeset 07c67995b90c (bug 1466442)
Backed out changeset 17296e74b59b (bug 1466566)
Backed out changeset 0c3f14124989 (bug 1466557)
Backed out changeset 21f3acd343a6 (bug 1466463)
Backed out changeset 59a115ed102f (bug 1466273)
Backed out changeset cacbb6915d45 (bug 1466108)
Backed out changeset 3399b738459f (bug 1464931)
Backed out changeset e0b51c8761de (bug 1464931)
Backed out changeset 8cf3834a3f25 (bug 1465780)
Backed out changeset d1299e9f1453 (bug 1465780)
Backed out changeset ec64816767c4 (bug 1466064)
Backed out changeset d878df1adb73 (bug 1466460)
Backed out changeset 0d5cf1167448 (bug 1466206)
Backed out changeset 6991c57a7529 (bug 1464182)
Backed out changeset 48c118bfefb4 (bug 1464182)
Backed out changeset dcebab7e152c (bug 1466260)
Backed out changeset a17b8dec2abf (bug 1466173)
Backed out changeset 56548c714c64 (bug 1466173)
Backed out changeset 652f080b84cd (bug 1466158)
Backed out changeset d164f36fd775 (bug 1466057)
Backed out changeset 3c3508173782 (bug 1466057)
Backed out changeset bbd01af27702 (bug 1465917)
Backed out changeset 57a276ab02e0 (bug 1464957)
Backed out changeset 4a09efedca60 (bug 1465661)
Backed out changeset 3ae673157cb4 (bug 1465661)
Backed out changeset cfdc0066db98 (bug 1466195)
Backed out changeset 16fd85bc9879 (bug 1466119)
Backed out changeset 4dd3fe55ab44 (bug 1466119)
Backed out changeset a178a380ac06 (bug 1465746)
Backed out changeset 4adf72720fbb (bug 1465746)
2018-06-28 06:31:48 +03:00
Ian Kilpatrick 27e23239da Bug 1465661 [wpt PR 11260] - [css-layout-api] Adds passing of LayoutConstraints#fixedBlockSize., a=testonly
Automatic update from web-platform-tests[css-layout-api] Adds passing of LayoutConstraints#fixedBlockSize.

This passes a fixed block size constraint into the layout function if:
 - It has a fixed/percentage/calc block-size.
 - The abs-pos constraints will make a fixed block size.
 - It is a quirky body/document (which stretches to fit the viewport).
 - It has a fixed block-size constraint from a parent layout.

The tests all behave the same way. The layout which we are interested
in testing looks at the received fixedBlockSize, and if correct performs
layout on the only child with a 100x100 fixed size.

Bug: 726125
Change-Id: I4eec86a843d58a791c9df071e16b71bf2f5d80ee
Reviewed-on: https://chromium-review.googlesource.com/1073636
Reviewed-by: Morten Stenshorne <[email protected]>
Commit-Queue: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#563668}

--

wpt-commits: ff4d0553835102b2f68c7bf8dafb205bd3cacb89
wpt-pr: 11260
2018-06-27 16:16:27 -07:00
Ian Kilpatrick b074d7b4f4 Bug 1464483 [wpt PR 11166] - [css-layout-api] Allow passing of serialized data between parent<->child., a=testonly
Automatic update from web-platform-tests[css-layout-api] Allow passing of serialized data between parent<->child.

This allow arbitary parent<->child communation during layout. A parent
can send data to a child via:

// parent
const fragment = yield child.layoutNextFragment({data});

// child
*layout(children, edges, constraints, style) {
  const data = constraints.data; // receive data.
}

And child to parent via:

// child
*layout() {
  return {data};
}

// parent
const fragment = yield child.layoutNextFragment();
const data = fragment.data; // receive data.

As the parent and child layouts may be invoked in different worklet
global scopes, and don't allow data shared, the serialization of data
uses "kForStorage" which means that SharedArrayBuffers aren't allowed
in the serialization.

Serialization also occurs so that we are able to cache results.

Bug: 726125
Change-Id: Ib7e81b5778cef3af2c2f8a1ccef749f1d2ba4dfa
Reviewed-on: https://chromium-review.googlesource.com/1072150
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Commit-Queue: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#563235}

--

wpt-commits: 8c8238ca96f913c1b90f838def7f9cf0253c0113
wpt-pr: 11166
2018-06-10 09:31:44 +01:00
Ian Kilpatrick ff37cf69ab 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 <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#561602}

--

wpt-commits: 127a32efa15d361e0eb4d0db1cbf5a99d26d72d9
wpt-pr: 11107
2018-06-10 09:27:00 +01:00
Ian Kilpatrick f8c7eb8c21 Bug 1452882 [wpt PR 10287] - [css-layout-api] Fix DCHECK with the custom layout and multicol., a=testonly
Automatic update from web-platform-tests[css-layout-api] Fix DCHECK with the custom layout and multicol.

There are probably larger changes that need to happen to ensure that
the custom-layout and multicol play nicely together, but this removes
a DCHECK crash for now.

Bug: 823074
Change-Id: I98f4a34bd0c35e8cd3d23501ca64f38b96be9e7d
Reviewed-on: https://chromium-review.googlesource.com/990780
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#550148}

--

wpt-commits: 976e2c1f4b37821272f303aee639b62e1fd085f9
wpt-pr: 10287
2018-04-24 12:22:25 +00:00
Ian Kilpatrick 5464c31f2d Bug 1449286 [wpt PR 10199] - [css-layout-api] Implementation of LayoutConstraints#fixedInlineSize., a=testonly
Automatic update from web-platform-tests[css-layout-api] Implementation of LayoutConstraints#fixedInlineSize.

This adds the bare bones for the LayoutConstraints object. It just
handles the fixedInlineSize parameter. I expect the information in
this object after the next F2F.

The layout for the test will simply output an autoBlockSize of 100, if
the fixedInlineSize is 100. The tests impose various conditions in
how this can occur, but is certainly not exhaustive.

Change-Id: I6be4a7b77d7b737c778dc2de8b235035b8d3fa22
Bug: 726125
Reviewed-on: https://chromium-review.googlesource.com/981517
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Reviewed-by: Emil A Eklund <[email protected]>
Cr-Commit-Position: refs/heads/master@{#546393}

wpt-commits: c2cd7575a454498f5758b8179506b3b49ad9f074
wpt-pr: 10199
wpt-commits: c2cd7575a454498f5758b8179506b3b49ad9f074
wpt-pr: 10199
2018-04-15 08:36:55 +01:00
Ian Kilpatrick 68627ef291 Bug 1448441 [wpt PR 10161] - [css-layout-api] Allow developers to position fragments., a=testonly
Automatic update from web-platform-tests[css-layout-api] Allow developers to position fragments.

This implements the LayoutFragment.inlineOffset and
LayoutFragment.blockOffset attributes.

The tests added simply re-create the reference by setting these two
attributes in different text directions and writing modes.

Change-Id: I1865403ca12e3b174738ee93320eae5ba16ac292
Bug: 726125
Reviewed-on: https://chromium-review.googlesource.com/971832
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Emil A Eklund <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#546018}

wpt-commits: 8ec345bcd24282ce94960fc0b11ca057bec393be
wpt-pr: 10161
wpt-commits: 8ec345bcd24282ce94960fc0b11ca057bec393be
wpt-pr: 10161
2018-04-15 08:36:10 +01:00
Ian Kilpatrick 1e9bcb81ed Bug 1446130 [wpt PR 10054] - [css-layout-api] Allow LayoutChild(ren) to be laid out., a=testonly
Automatic update from web-platform-tests[css-layout-api] Allow LayoutChild(ren) to be laid out.

This allows a LayoutChild to have layout performed on it, which will
return a Fragment - with the correct inline and block sizes.

These Fragments cannot be positioned yet, (next patch).

The LayoutChild will be laid out with an available inline/block size of
zero by default, and optionally can accept a fixed-inline/block size,
which it must respect.

Bug: 726125
Change-Id: Ie4386b8f6cd6ccec3f9e52ff332322101058836d
Reviewed-on: https://chromium-review.googlesource.com/962870
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Emil A Eklund <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#545845}

wpt-commits: 7988e1756539bcdf39ec2102b99e0671c44d503c
wpt-pr: 10054
wpt-commits: 7988e1756539bcdf39ec2102b99e0671c44d503c
wpt-pr: 10054
2018-04-15 08:36:01 +01:00
Darren Shen c30b166114 Bug 1442473 [wpt PR 9738] - [css-typed-om] Whitelist supported properties., a=testonly
Automatic update from web-platform-tests[css-typed-om] Whitelist supported properties.

This patch whitelists all our supported properties. Any property that
is not supported will return a base CSSStyleValue. This ensures that
we don't accidentally produce unexpected results for properties that
we haven't tested it.

We also add a few new properties to support, bringing the total number
of property tests to 50. We also remove support for 'z-index' because
it uses <integers> which we don't support yet.

transition-duration is failing tests because we currently convert
ms to seconds when we compute, which is incorrect.

Some paint/layout tests depend on properties that are not whitelisted,
so we've changed them:
- border-radius -> margin-left
- align-items -> empty-cell

Bug: 816402
Change-Id: I84d2fd8a15df92624122f0c1ecf4f7c42f928928
Reviewed-on: https://chromium-review.googlesource.com/942651
Reviewed-by: nainar <[email protected]>
Commit-Queue: Darren Shen <[email protected]>
Cr-Commit-Position: refs/heads/master@{#540397}

wpt-commits: 12e0354d971ce3f705991a4f68837d24947865df
wpt-pr: 9738
wpt-commits: 12e0354d971ce3f705991a4f68837d24947865df
wpt-pr: 9738
2018-03-31 22:29:38 +01:00
Ian Kilpatrick c2db98cc35 Bug 1441412 [wpt PR 9680] - [css-layout-api] Populate children, and pass into layout() function, a=testonly
Automatic update from web-platform-tests[css-layout-api] Populate children, and pass into layout() function

This introduces the LayoutChild API surface, (which only has a styleMap
accessor currently).

Each LayoutBox which is a child of a LayoutCustom will hold onto a
LayoutChild object, acting as the script interface for the web
developer.

Bug: 726125
Change-Id: Iecdb01a38c0712dcda063b485c4207bde59f3995
Reviewed-on: https://chromium-review.googlesource.com/933092
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/master@{#539928}

wpt-commits: 41ab079dfcde76aebbde5660fe3e417447e61f80
wpt-pr: 9680
wpt-commits: 41ab079dfcde76aebbde5660fe3e417447e61f80
wpt-pr: 9680
2018-03-31 22:29:14 +01:00
Ian Kilpatrick 842e9159bf Bug 1439696 [wpt PR 9590] - [css-layout-api] Populate styleMap and give to layout function., a=testonly
Automatic update from web-platform-tests[css-layout-api] Populate styleMap and give to layout function.

This adds both style-invalidation for the LayoutCustom object, as well
as giving the populated StylePropertyMapReadOnly to the layout()
function.

ComputedStyle::DiffNeedsFullLayout now needs a Document in order to look
up the DocumentLayoutDefinition, to see which properties need to checked
for change.

Bug: 726125
Change-Id: Ie462cb624ba413c796131433ea4eae9bb9f3ec13
Reviewed-on: https://chromium-review.googlesource.com/926906
Reviewed-by: Rune Lillesveen <[email protected]>
Commit-Queue: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#538268}

wpt-commits: 6aeb9ea2a3874d39418e7ea15778a719ec0d482d
wpt-pr: 9590
wpt-commits: 6aeb9ea2a3874d39418e7ea15778a719ec0d482d
wpt-pr: 9590
2018-03-31 22:24:39 +01:00
Ian Kilpatrick 2cfbc660bc Bug 1438065 [wpt PR 9509] - [css-layout-api] Implement the guts of the javascript layout runner., a=testonly
Automatic update from web-platform-tests[css-layout-api] Implement the guts of the javascript layout runner.

This implements the hooks from the LayoutCustom object into a web
developer defined layout class.

See: https://drafts.css-houdini.org/css-layout-api/#invoke-a-layout-callback

Currently the only useful thing this does to allow the web developer to
return an "auto" block-size, e.g.

registerLayout('foo', class {
  *intrinsicSizes() {}
  *layout() {
    return { autoBlockSize: Math.random() * 100; } // FUN!
  }
});

The engine calculates the inline-size, and adjusts the block-size for the
web developer. This is a simplification on the current API as spec'd but
we'll see what the HoudiniTF thinks of this approach.

The other large behaviour change is appropriate "fallback" handling when
something goes wrong. See "fallback" tests.

Bug: 726125
Change-Id: I08cd2e439f4321bd534a4e3f7222fbdb898e1785
Reviewed-on: https://chromium-review.googlesource.com/917423
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Christian Biesinger <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Reviewed-by: Hiroki Nakagawa <[email protected]>
Commit-Queue: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#537371}

wpt-commits: 1a2e430c6fd35c111ead0d5a0e9afbe874e7c1a2
wpt-pr: 9509
wpt-commits: 1a2e430c6fd35c111ead0d5a0e9afbe874e7c1a2
wpt-pr: 9509
2018-03-31 22:22:37 +01:00
Ian Kilpatrick 7ce42b7de6 Bug 1436455 [wpt PR 9428] - [css-layout-api] Adds LayoutCustom object, and changes box-tree., a=testonly
Automatic update from web-platform-tests[css-layout-api] Adds LayoutCustom object, and changes box-tree.

This adds a stub class for "LayoutCustom". This contains no additional
logic yet to perform custom layout.

This *does* change how the box-tree is constructed.
 - display: layout(foo) is considered a new FC in all circumstances.
 - Depending of if "foo" has been registered, the children may/may-not
   become new FCs also.

Additionally this has the appropriate logic when a new layout class is
registered to trigger a reattachment of the layout tree.

Bug: 726125
Change-Id: I0e555c9f10afdfa314ce41f96b0636651e91cb7f
Reviewed-on: https://chromium-review.googlesource.com/889685
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Darren Shen <[email protected]>
Reviewed-by: nainar <[email protected]>
Cr-Commit-Position: refs/heads/master@{#535858}

wpt-commits: 906eff4f796c02ef6cb0372123e484d38fbeb7e3
wpt-pr: 9428
wpt-commits: 906eff4f796c02ef6cb0372123e484d38fbeb7e3
wpt-pr: 9428
2018-03-31 22:19:00 +01:00
James Graham 4706d37b48 Bug 1435337 - Update web-platform-tests to revision 7174d3e89f3057aae399483194dc4b608ee8c933, a=testonly
MozReview-Commit-ID: CSM0hnryiTp
2018-02-02 19:09:23 +00:00