mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
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 <mstensho@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#689023} -- wpt-commits: 443459a640bf144ec0ea6c7ab4b5e8bc6432f362 wpt-pr: 18570
36 lines
932 B
HTML
36 lines
932 B
HTML
<!DOCTYPE html>
|
|
<html class=reftest-wait>
|
|
<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutedges">
|
|
<link rel="match" href="../green-square-ref.html">
|
|
<meta name="assert" content="This test checks that padding sizes are passed to the layout correctly." />
|
|
<style>
|
|
.test {
|
|
writing-mode: vertical-rl;
|
|
background: red;
|
|
box-sizing: border-box;
|
|
height: 100px;
|
|
|
|
--edges-inline-start-expected: 10;
|
|
--edges-inline-end-expected: 0;
|
|
--edges-block-start-expected: 8;
|
|
--edges-block-end-expected: 20;
|
|
|
|
font-size: 8px;
|
|
|
|
padding: 10px 1em 0 20px;
|
|
}
|
|
|
|
@supports (display: layout(test)) {
|
|
.test {
|
|
display: layout(test);
|
|
background: green;
|
|
}
|
|
}
|
|
</style>
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<script src="/common/worklet-reftest.js"></script>
|
|
|
|
<div class="test"></div>
|
|
<script>
|
|
importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/edges.js'});
|
|
</script>
|