mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 7cb66930f16381536cec572cd3f4f86c7bbb6787
This commit is contained in:
parent
c183f95297
commit
9cff065d01
80 changed files with 1357 additions and 359 deletions
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="Three blocks could fit in the first fragmentainer, but there's a break-before:avoid between the third and fourth block, so we should break between the second and third">
|
||||
<style>
|
||||
.square {
|
||||
height: 50px;
|
||||
break-inside: avoid;
|
||||
background:green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:160px;">
|
||||
<div class="square"></div>
|
||||
<div class="square"></div>
|
||||
<div class="square"></div>
|
||||
<div class="square" style="break-before:avoid;"></div>
|
||||
</div>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="Three blocks could fit in the first fragmentainer, but there's a break-after:avoid between the third and fourth block, so we should break between the second and third">
|
||||
<style>
|
||||
.square {
|
||||
height: 50px;
|
||||
break-inside: avoid;
|
||||
background:green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:160px;">
|
||||
<div class="square"></div>
|
||||
<div class="square"></div>
|
||||
<div class="square" style="break-after:avoid;"></div>
|
||||
<div class="square"></div>
|
||||
</div>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="Need to violate break-before:avoid and break-after:avoid if there are no better breakpoints">
|
||||
<style>
|
||||
.container {
|
||||
break-before: avoid;
|
||||
break-after: avoid;
|
||||
}
|
||||
.square {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background:green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:120px;">
|
||||
<div class="container">
|
||||
<div class="square"></div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="square"></div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="square"></div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="square"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="The best breakpoint may be inside content we're already past when running out of space">
|
||||
<style>
|
||||
.square {
|
||||
height: 50px;
|
||||
break-inside: avoid;
|
||||
background:green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:160px;">
|
||||
<div>
|
||||
<div class="square"></div>
|
||||
<div>
|
||||
<div>
|
||||
<div class="square"></div>
|
||||
<div class="square"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="square" style="break-before:avoid;"></div>
|
||||
</div>
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="Violate orphans/widows requirements rather than break-before:avoid and break-after:avoid">
|
||||
<style>
|
||||
.container {
|
||||
break-before: avoid;
|
||||
break-after: avoid;
|
||||
}
|
||||
.square {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background:green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:120px; orphans:2; widows:2;">
|
||||
<div class="container">
|
||||
<div class="square"></div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="square"></div>
|
||||
<div class="square"></div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="square"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="A forced break trumps break avoidance preferences">
|
||||
<style>
|
||||
.square {
|
||||
height: 50px;
|
||||
break-inside: avoid;
|
||||
background:green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:110px;">
|
||||
<div class="square"></div>
|
||||
<div class="square" style="break-after:column;"></div>
|
||||
<div class="square" style="break-before:avoid;"></div>
|
||||
<div class="square"></div>
|
||||
</div>
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="A forced break trumps break avoidance preferences">
|
||||
<style>
|
||||
.square {
|
||||
height: 50px;
|
||||
break-inside: avoid;
|
||||
background:green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:110px;">
|
||||
<div class="square"></div>
|
||||
<div>
|
||||
<div>
|
||||
<div class="square" style="break-after:column;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<div class="square" style="break-before:avoid;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="square"></div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue