mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Automatic update from web-platform-testsMerge pull request #10549 from frivoal/css-contain Css contain -- wpt-commits: 17274893c118dafebec900376933248efb2a3735 wpt-pr: 10549
30 lines
597 B
HTML
30 lines
597 B
HTML
<!doctype html>
|
|
<html lang=en>
|
|
<meta charset=utf-8>
|
|
<title>CSS-contain test reference</title>
|
|
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
|
|
<style>
|
|
article {
|
|
columns: 2 1ch;
|
|
column-gap: 0;
|
|
float: left;
|
|
font-family: monospace;
|
|
margin-right: 3em;
|
|
line-height: 1;
|
|
height: 4em;
|
|
column-fill: auto;
|
|
}
|
|
div:last-of-type {
|
|
break-before: column;
|
|
}
|
|
</style>
|
|
|
|
<p>Test passes if there are two identical blocks “A” letters below.
|
|
<article>
|
|
<div>A<br>A</div>
|
|
<div>A<br>A</div>
|
|
</article>
|
|
<article>
|
|
<div>A<br>A</div>
|
|
<div>A<br>A</div>
|
|
</article>
|