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
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
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
Automatic update from web-platform-tests
CSS and SharedArrayBuffer: don't make support conditional
--
wpt-commits: 738b3a2ea603945395f35e6cba4dbd849deab118
wpt-pr: 17689
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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