Files
firefox/testing/web-platform/tests/css/css-layout-api/layout-child-absolute.https.html
T
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

45 lines
932 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 absolute children don't appear in the children array." />
<style>
.test {
--child-expected: ["2"];
background: red;
margin: 10px;
width: 100px;
}
.absolute {
position: absolute;
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="absolute"></div>
<div class="inflow"></div>
</div>
<script>
importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/layout-child-worklet.js'});
</script>