diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-break/grid/subgrid')
10 files changed, 119 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-001.html b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-001.html new file mode 100644 index 0000000000..959ff4a905 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-001.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination"> +<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;"> + <div style="display: grid; height: 200px;"> + <div style="display: grid; grid-template: subgrid / subgrid; background: green;"></div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-002.html b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-002.html new file mode 100644 index 0000000000..9b28b37b42 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-002.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination"> +<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;"> + <div style="display: grid; grid-template-rows: 200px;"> + <div style="display: grid; grid-template: subgrid / subgrid; background: green;"></div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-003.html b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-003.html new file mode 100644 index 0000000000..3f1381a7b2 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-003.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination"> +<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;"> + <div style="height: 50px;"> + <div style="height: 100px; background: green;"></div> + </div> + <div style="display: grid; height: 100px;"> + <div style="display: grid; grid-template: subgrid / subgrid; background: green; break-inside: avoid;"></div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-004.html b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-004.html new file mode 100644 index 0000000000..67c291fbc3 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-004.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination"> +<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width: 100px; height: 100px; columns: 4; column-gap: 0; background: red;"> + <div style="height: 50px;"> + <div style="height: 100px; background: green;"></div> + </div> + <div style="display: grid; height: 300px;"> + <div style="display: grid; grid-template: subgrid / subgrid; background: green; break-before: column;"></div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-005.html b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-005.html new file mode 100644 index 0000000000..37babe2991 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-container-fragmentation-005.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination"> +<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red; position: relative;"> + <div style="display: grid; height: 50px;"> + <div style="display: grid; grid-template: subgrid / subgrid; background: green; break-after: column;"></div> + </div> + <div style="height: 50px;"> + <div style="height: 100px; background: green;"></div> + </div> + <div style="width: 50px; height: 50px; background: green; position: absolute; bottom: 0; left: 0;"></div> +</div> diff --git a/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-001.html b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-001.html new file mode 100644 index 0000000000..1a26d816d0 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-001.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination"> +<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> +<title>Tests basic fragmentation of a grid-item.</title> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;"> + <div style="display: grid;"> + <div style="display: grid; grid-template: subgrid / subgrid;"> + <div style="min-height: 200px; background: green;"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-002.html b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-002.html new file mode 100644 index 0000000000..24f7d997a3 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-002.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination"> +<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> +<title>Tests that grid-item reordered with grid-row-start is fragmented correctly.</title> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;"> + <div style="display: grid;"> + <div style="display: grid; grid-template: subgrid / subgrid; grid-row: span 2;"> + <div style="height: 50px; background: green;"></div> + <div style="height: 150px; background: green; grid-row-start: 1;"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-003.html b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-003.html new file mode 100644 index 0000000000..49f0b5fc76 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-003.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination"> +<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> +<title>Tests that parallel grid items fragment correctly.</title> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;"> + <div style="display: grid; grid-template-columns: auto auto;"> + <div style="display: grid; grid-template: subgrid / subgrid; grid-column: span 2;"> + <div style="background: green;"></div> + <div style="height: 200px; background: green;"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-004.html b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-004.html new file mode 100644 index 0000000000..85ed105f96 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-004.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination"> +<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> +<title>Tests that an end aligned grid-item is placed within the 2nd fragmentainer.</title> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="position: relative; width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;"> + <div style="display: grid; grid-template-rows: 200px;"> + <div style="display: grid; grid-template: subgrid / subgrid;"> + <div style="height: 100px; background: green; align-self: end;"></div> + </div> + </div> + <div style="position: absolute; background: green; top: 0; left: 0; width: 50px; height: 100px;"></div> +</div> diff --git a/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-005.html b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-005.html new file mode 100644 index 0000000000..3832f0d16e --- /dev/null +++ b/testing/web-platform/tests/css/css-break/grid/subgrid/subgrid-item-fragmentation-005.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination"> +<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> +<title>Tests that an end aligned grid-item (with auto margins) is placed within the 2nd fragmentainer.</title> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="position: relative; width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;"> + <div style="display: grid; grid-template-rows: 200px;"> + <div style="display: grid; grid-template: subgrid / subgrid;"> + <div style="height: 100px; background: green; margin-top: auto;"></div> + </div> + </div> + <div style="position: absolute; background: green; top: 0; left: 0; width: 50px; height: 100px;"></div> +</div> |