зеркало из https://github.com/mozilla/gecko-dev.git
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 <atotic@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#592181} -- wpt-commits: f1feab0fce77d29d1c7eb5a043d2345e6ba3123f wpt-pr: 13055
This commit is contained in:
Родитель
b5e4b09d8b
Коммит
7b44d919a1
|
@ -123219,6 +123219,18 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"css/css-layout-api/constraints-fixed-block-size-percentage-quirks-mode.https.html": [
|
||||
[
|
||||
"/css/css-layout-api/constraints-fixed-block-size-percentage-quirks-mode.https.html",
|
||||
[
|
||||
[
|
||||
"/css/css-layout-api/green-square-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-layout-api/constraints-fixed-block-size-percentage-vrl.https.html": [
|
||||
[
|
||||
"/css/css-layout-api/constraints-fixed-block-size-percentage-vrl.https.html",
|
||||
|
@ -547748,6 +547760,10 @@
|
|||
"94a20387442c36b5041e40194aa7ceda405a3274",
|
||||
"reftest"
|
||||
],
|
||||
"css/css-layout-api/constraints-fixed-block-size-percentage-quirks-mode.https.html": [
|
||||
"9bd9044991cdde7c113f8fdbd08a2048a77746f9",
|
||||
"reftest"
|
||||
],
|
||||
"css/css-layout-api/constraints-fixed-block-size-percentage-vrl.https.html": [
|
||||
"8c7a8c5d3ea11ac3a5ac6e4269340baa10e266a5",
|
||||
"reftest"
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
<html class=reftest-wait>
|
||||
<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutconstraints-fixedblocksize">
|
||||
<link rel="match" href="green-square-ref.html">
|
||||
<meta name="assert" content="This test checks that LayoutConstraints#fixedBlockSize is passed into the layout function correctly." />
|
||||
<style>
|
||||
body {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.test {
|
||||
background: red;
|
||||
--expected-block-size: 50; /* In quirks mode we should get 100px * 50% */
|
||||
width: 100px;
|
||||
height: 50%;
|
||||
}
|
||||
|
||||
.child {
|
||||
background: green;
|
||||
}
|
||||
|
||||
@supports (display: layout(test)) {
|
||||
.test {
|
||||
display: layout(test);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<script src="/common/worklet-reftest.js"></script>
|
||||
|
||||
<div class="container">
|
||||
<div class="test">
|
||||
<div class="child"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-block-size.js'});
|
||||
</script>
|
Загрузка…
Ссылка в новой задаче