diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing')
10 files changed, 511 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-check-grid-height-on-resize-ref.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-check-grid-height-on-resize-ref.html new file mode 100644 index 0000000000..7196886492 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-check-grid-height-on-resize-ref.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html> + +<head> +<meta charset="utf-8"> +<link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com"> +<link rel="help" href="https://drafts.csswg.org/css-grid-3"> +<meta name="assert" content="When the height of an element in the grid changes, ensure the grid is properly resized"> +</head> + +<style> + grid { + display: grid; + grid-template-rows: masonry; + grid-template-columns: auto; + grid-gap: 10px; + border: 10px; + border-style: solid; + } + item1 { + background-color: grey; + height: 125px; + width: 250px; + } + item2 { + background-color: grey; + height: 250px; + width: 250px; + } +</style> +</head> +<body> + <grid> + <item1>1</item1> + <item2>2</item2> + </grid> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-check-grid-height-on-resize.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-check-grid-height-on-resize.html new file mode 100644 index 0000000000..06c2901f27 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-check-grid-height-on-resize.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> +<html> + +<head> +<meta charset="utf-8"> +<link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com"> +<link rel="help" href="https://drafts.csswg.org/css-grid-3"> +<link rel="match" href="masonry-track-sizing-check-grid-height-on-resize-ref.html"> +<meta name="assert" content="When the height of an element in the grid changes, ensure the grid is properly resized"> +</head> + +<style> + grid { + display: grid; + grid-template-rows: masonry; + grid-template-columns: auto; + grid-gap: 10px; + border: 10px; + border-style: solid; + } + item { + background-color: grey; + height: 250px; + width: 250px; + } +</style> +</head> +<body> + <grid> + <item>1</item> + <item>2</item> + </grid> +</body> +<script> + /* Force a relayout */ + document.body.offsetHeight; + document.querySelector("item").style["height"] = "125px"; +</script> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-explicit-block-ref.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-explicit-block-ref.html new file mode 100644 index 0000000000..993017919f --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-explicit-block-ref.html @@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <title>CSS Grid Reference: Verify definite blocks effect track-sizing algorithm.</title> +</head> + +<body> +<style> +grid { + display: grid; + grid-template-columns: auto 1fr; + grid-template-rows: 50px 50px; + width: 300px; + height: 100px; +} + +box1 { + height: 50px; + width: 30px; + background-color: blue; +} + +box2 { + height: 50px; + background-color: red; +} + +box3 { + height: 50px; + width: 100px; + grid-row: 2; + grid-column: 1; + background-color: purple; +} + +box4 { + height: 50px; + background-color: green; +} + +</style> + +<grid> + <box1>1</box1> + <box2>2</box2> + <box3>3</box3> + <box4>4</box4> +</grid> + +</body> +</html> diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-explicit-block.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-explicit-block.html new file mode 100644 index 0000000000..3cc98708fe --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-explicit-block.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <title>CSS Grid Test: Verify definite blocks effect track-sizing algorithm.</title> + <link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com"> + <link rel="help" href="https://drafts.csswg.org/css-grid-3/#track-sizing"> + <link rel="match" href="masonry-track-sizing-explicit-block-ref.html"> +</head> + +<body> +<style> + grid { + display: grid; + grid-template-columns: 100px 1fr; + grid-template-rows: masonry; + width: 300px; + height: 100px; + } + + box1 { + height: 50px; + width: 30px; + background-color: blue; + } + + box2 { + height: 50px; + background-color: red; + } + + box3 { + height: 50px; + width: 100px; + background-color: purple; + } + + box4 { + height: 50px; + background-color: green; + } + +</style> + +<grid> + <box1>1</box1> + <box2>2</box2> + <box3>3</box3> + <box4>4</box4> +</grid> + +</body> +</html> diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-left-side-ref.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-left-side-ref.html new file mode 100644 index 0000000000..5a31517183 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-left-side-ref.html @@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <title>CSS Grid Test: Verify correct behavior of track-sizing</title> + <link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com"> + <link rel="help" href="https://drafts.csswg.org/css-grid-3/#track-sizing"> +</head> + +<body> +<style> +grid { + display: grid; + grid-template-columns: 50px 1fr; + grid-template-rows: 50px 250px; + width: 300px; + height: 100px; +} + +box1 { + height: 50px; + width: 50px; + background-color: blue; +} + +box2 { + height: 50px; + background-color: red; +} + +box3 { + width: 100px; + height: 50px; + background-color: purple; + z-index: 1; +} + +box4 { + height: 50px; + background-color: green; +} +</style> + +<grid> + <box1>1</box1> + <box2>2</box2> + <box3>3</box3> + <box4>4</box4> +</grid> + +</body> +</html> diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-left-side.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-left-side.html new file mode 100644 index 0000000000..cd1b78a47b --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-left-side.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <title>CSS Grid Test: Verify correct behavior of track-sizing</title> + <link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com"> + <link rel="help" href="https://drafts.csswg.org/css-grid-3/#track-sizing"> + <link rel="match" href="masonry-track-sizing-overflow-left-side-ref.html"> +</head> + +<body> +<style> +grid { + display: grid; + grid-template-columns: auto 1fr; + grid-template-rows: masonry; + width: 300px; + height: 100px; +} + +box1 { + height: 50px; + width: 50px; + background-color: blue; +} + +box2 { + height: 50px; + background-color: red; +} + +box3 { + width: 100px; + height: 50px; + background-color: purple; + z-index: 1; +} + +box4 { + height: 50px; + background-color: green; +} +</style> + +<grid> + <box1>1</box1> + <box2>2</box2> + <box3>3</box3> + <box4>4</box4> +</grid> + +</body> +</html> diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-right-side-ref.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-right-side-ref.html new file mode 100644 index 0000000000..51e657e2a4 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-right-side-ref.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <title>CSS Grid Test: Verify correct behavior of track-sizing</title> + <link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com"> + <link rel="help" href="https://drafts.csswg.org/css-grid-3/#track-sizing"> +</head> + +<body> +<style> +grid { + display: grid; + grid-template-columns: 1fr 50px; + grid-template-rows: 1fr 50px; + width: 300px; + height: 100px; +} + +box1 { + height: 50px; + background-color: red; +} + +box2 { + height: 50px; + width: 50px; + background-color: blue; +} + +box3 { + height: 50px; + background-color: green; +} + +box4 { + width: 100px; + height: 50px; + background-color: purple; + z-index: 1; +} + +</style> + +<grid> + <box1>1</box1> + <box2>2</box2> + <box3>3</box3> + <box4>4</box4> +</grid> + +</body> +</html> diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-right-side.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-right-side.html new file mode 100644 index 0000000000..e4c17fd7b7 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-overflow-right-side.html @@ -0,0 +1,56 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <title>CSS Grid Test: Verify correct behavior of track-sizing</title> + <link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com"> + <link rel="help" href="https://drafts.csswg.org/css-grid-3/#track-sizing"> + <link rel="match" href="masonry-track-sizing-overflow-right-side-ref.html"> +</head> + +<body> +<style> +grid { + display: grid; + grid-template-columns: 1fr auto; + grid-template-rows: masonry; + width: 300px; + height: 100px; +} + +box1 { + width: 1fr; + height: 50px; + background-color: red; +} + +box2 { + height: 50px; + width: 50px; + background-color: blue; +} + +box3 { + height: 50px; + background-color: green; +} + +box4 { + width: 100px; + height: 50px; + background-color: purple; + z-index: 1; +} + +</style> + +<grid> + <box1>1</box1> + <box2>2</box2> + <box3>3</box3> + <box4>4</box4> +</grid> + +</body> +</html> diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-span-row-ref.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-span-row-ref.html new file mode 100644 index 0000000000..b3e5fef233 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-span-row-ref.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <title>CSS Grid Reference: Verify that fully spanning blocks take presedence over indefinite ones.</title> +</head> + +<body> +<style> +grid { + display: grid; + grid-template-columns: 50px 1fr; + grid-template-rows: auto auto auto; + width: 300px; + height: 100px; +} + +box1 { + height: 50px; + width: 50px; + background-color: blue; +} + +box2 { + height: 50px; + background-color: red; +} + +box3 { + width: 100px; + height: 50px; + background-color: purple; + z-index: 1; +} + +box4 { + height: 50px; + width: 300px; + grid-column-start: 1; + grid-column-end: 3; + background-color: green; +} +</style> + +<grid> + <box1>1</box1> + <box2>2</box2> + <box4>4</box4> + <box3>3</box3> +</grid> + +</body> +</html> diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-span-row.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-span-row.html new file mode 100644 index 0000000000..475c27f1eb --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/track-sizing/masonry-track-sizing-span-row.html @@ -0,0 +1,56 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <title>CSS Grid Test: Verify that fully spanning blocks take presedence over indefinite ones.</title> + <link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com"> + <link rel="help" href="https://drafts.csswg.org/css-grid-3/#track-sizing"> + <link rel="match" href="masonry-track-sizing-span-row-ref.html"> +</head> + +<body> +<style> + grid { + display: grid; + grid-template-columns: 50px 1fr; + grid-template-rows: masonry; + width: 300px; + height: 100px; + } + + box1 { + height: 50px; + width: 50px; + background-color: blue; + } + + box2 { + height: 50px; + background-color: red; + } + + box3 { + width: 100px; + height: 50px; + background-color: purple; + z-index: 1; + } + + box4 { + height: 50px; + width: 300px; + grid-column: span 2; + background-color: green; + } +</style> + +<grid> + <box1>1</box1> + <box2>2</box2> + <box4>4</box4> + <box3>3</box3> +</grid> + +</body> +</html> |