mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
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
45 lines
916 B
HTML
45 lines
916 B
HTML
<!DOCTYPE html>
|
|
<html class=reftest-wait>
|
|
<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#layout-children">
|
|
<link rel="match" href="layout-child-ref.html">
|
|
<meta name="assert" content="This test checks that float children appear in the children array." />
|
|
|
|
<style>
|
|
.test {
|
|
--child-expected: ["1", "2"];
|
|
|
|
background: red;
|
|
margin: 10px;
|
|
width: 100px;
|
|
}
|
|
|
|
.float {
|
|
float: right;
|
|
visibility: hidden;
|
|
--child: 1;
|
|
}
|
|
|
|
.inflow {
|
|
visibility: hidden;
|
|
--child: 2;
|
|
}
|
|
|
|
@supports (display: layout(test)) {
|
|
.test {
|
|
background: green;
|
|
display: layout(test);
|
|
}
|
|
}
|
|
</style>
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<script src="/common/worklet-reftest.js"></script>
|
|
|
|
<div class="test">
|
|
<div class="float"></div>
|
|
<div class="inflow"></div>
|
|
</div>
|
|
|
|
<script>
|
|
importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/layout-child-worklet.js'});
|
|
</script>
|