| Index: third_party/WebKit/LayoutTests/imported/csswg-test/css-snap-size-1/snap-width-block-in-max-001.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/csswg-test/css-snap-size-1/snap-width-block-in-max-001.html b/third_party/WebKit/LayoutTests/imported/csswg-test/css-snap-size-1/snap-width-block-in-max-001.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c42349e02046f1b3c95ba1888d7c7b3a073d72a3
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/csswg-test/css-snap-size-1/snap-width-block-in-max-001.html
|
| @@ -0,0 +1,62 @@
|
| +<!DOCTYPE html>
|
| +<title>CSS Snap Size: snap-width</title>
|
| +<link rel="help" href="https://drafts.csswg.org/css-snap-size/#snap-width">
|
| +<link rel="match" href="reference/snap-width-block-001.html">
|
| +<meta name="assert" content="This test asserts the snap-width property rounds down the box width.">
|
| +<meta name="flags" content="ahem">
|
| +<link rel="author" title="Koji Ishii" href="kojiishi@gmail.com">
|
| +<style>
|
| +.container {
|
| + font-family: Ahem;
|
| + font-size: 32px;
|
| + line-height: 1;
|
| +}
|
| +.container > div {
|
| + margin: .5em 0;
|
| +}
|
| +.border > div {
|
| + border-left: .4em transparent solid;
|
| + border-right: .4em transparent solid;
|
| +}
|
| +.padding > div {
|
| + padding: 0 .4em;
|
| +}
|
| +
|
| +.test {
|
| + snap-width: 1em;
|
| + text-align: right;
|
| + max-width: 20.5em;
|
| +}
|
| +.ref {
|
| + white-space: pre; /* make sure the line does not wrap */
|
| + width: 20em;
|
| +}
|
| +.content {
|
| + display: block;
|
| + height: 1em;
|
| + background-color: black;
|
| +}</style>
|
| +<body>
|
| +<p class="instructions" style="display:none">Test passes if each pair of boxes are the same,
|
| + including how they look, widths, and horizontal positions.
|
| +
|
| +<div class="container">
|
| + <div class="test"><div class="content"></div></div>
|
| + <div class="ref"><div class="content"></div></div>
|
| +</div>
|
| +
|
| +<div class="border container">
|
| + <div class="test"><div class="content"></div></div>
|
| + <div class="ref"><div class="content"></div></div>
|
| +</div>
|
| +
|
| +<div class="padding container">
|
| + <div class="test"><div class="content"></div></div>
|
| + <div class="ref"><div class="content"></div></div>
|
| +</div>
|
| +
|
| +<div class="border padding container">
|
| + <div class="test"><div class="content"></div></div>
|
| + <div class="ref"><div class="content"></div></div>
|
| +</div>
|
| +</body>
|
|
|