diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /testing/web-platform/tests/css/css-break | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-break')
29 files changed, 1057 insertions, 6 deletions
diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081-print-ref.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081-print-ref.html new file mode 100644 index 0000000000..5eb4a31173 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081-print-ref.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: block; + border: 0.25in solid black; +} +.flexbox > div > div { + display: inline-block; + box-sizing: border-box; + width: 50%; + border: 4px solid purple; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div> + <div>1</div><div>2</div> + </div> + <div style="break-before: page"> + <div>3</div><div>4</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081a-print.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081a-print.html new file mode 100644 index 0000000000..d773768bf0 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081a-print.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-before values on flex items are propagated to the flex line</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="multi-line-row-flex-fragmentation-081-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-wrap: wrap; + border: 0.25in solid black; +} +.flexbox > div { + box-sizing: border-box; + width: 50%; + border: 4px solid purple; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div>1</div><div>2</div> + <div style="break-before: page">3</div><div>4</div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081b-print.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081b-print.html new file mode 100644 index 0000000000..7c4eeb2083 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081b-print.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-before values on flex items are propagated to the flex line</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="multi-line-row-flex-fragmentation-081-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-wrap: wrap; + border: 0.25in solid black; +} +.flexbox > div { + box-sizing: border-box; + width: 50%; + border: 4px solid purple; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div>1</div><div>2</div> + <div>3</div><div style="break-before: page">4</div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081c-print.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081c-print.html new file mode 100644 index 0000000000..2181bc56b0 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081c-print.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-after values on flex items are propagated to the flex line</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="multi-line-row-flex-fragmentation-081-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-wrap: wrap; + border: 0.25in solid black; +} +.flexbox > div { + box-sizing: border-box; + width: 50%; + border: 4px solid purple; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div style="break-after: page">1</div><div>2</div> + <div>3</div><div>4</div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081d-print.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081d-print.html new file mode 100644 index 0000000000..b4d9f06142 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-081d-print.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-after values on flex items are propagated to the flex line</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="multi-line-row-flex-fragmentation-081-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-wrap: wrap; + border: 0.25in solid black; +} +.flexbox > div { + box-sizing: border-box; + width: 50%; + border: 4px solid purple; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div>1</div><div style="break-after: page">2</div> + <div>3</div><div>4</div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082-print-ref.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082-print-ref.html new file mode 100644 index 0000000000..e7314be63b --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082-print-ref.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: block; + border: 0.25in solid black; +} +.flexbox > div > div { + display: inline-block; + box-sizing: border-box; + width: 50%; + border: 4px solid purple; +} +.flexbox > .nested { + box-sizing: border-box; + width: 100%; + border: 4px solid gold; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div class="flexbox nested"> + <div>1</div><div>2</div> + <div>3</div><div>4</div> + </div> + <div class="flexbox nested" style="break-before: page"> + <div>5</div><div>6</div> + <div>7</div><div>8</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082a-print.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082a-print.html new file mode 100644 index 0000000000..18c732d242 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082a-print.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-before values on the flex item in the flex line are propagated to the flex container</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="multi-line-row-flex-fragmentation-082-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-wrap: wrap; + border: 0.25in solid black; +} +.flexbox > div { + box-sizing: border-box; + width: 50%; + border: 4px solid purple; +} +.flexbox > .nested { + box-sizing: border-box; + width: 100%; + border: 4px solid gold; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div class="flexbox nested"> + <div>1</div><div>2</div> + <div>3</div><div>4</div> + </div> + <div class="flexbox nested"> + <div style="break-before: page">5</div><div>6</div> + <div>7</div><div>8</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082b-print.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082b-print.html new file mode 100644 index 0000000000..6f88af6cf6 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082b-print.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-before values on the flex item in the flex line are propagated to the flex container</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="multi-line-row-flex-fragmentation-082-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-wrap: wrap; + border: 0.25in solid black; +} +.flexbox > div { + box-sizing: border-box; + width: 50%; + border: 4px solid purple; +} +.flexbox > .nested { + box-sizing: border-box; + width: 100%; + border: 4px solid gold; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div class="flexbox nested"> + <div>1</div><div>2</div> + <div>3</div><div>4</div> + </div> + <div class="flexbox nested"> + <div>5</div><div style="break-before: page">6</div> + <div>7</div><div>8</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082c-print.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082c-print.html new file mode 100644 index 0000000000..116e8db2b3 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082c-print.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-after values on the flex item in the flex line are propagated to the flex container</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="multi-line-row-flex-fragmentation-082-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-wrap: wrap; + border: 0.25in solid black; +} +.flexbox > div { + box-sizing: border-box; + width: 50%; + border: 4px solid purple; +} +.flexbox > .nested { + box-sizing: border-box; + width: 100%; + border: 4px solid gold; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div class="flexbox nested"> + <div>1</div><div>2</div> + <div style="break-after: page">3</div><div>4</div> + </div> + <div class="flexbox nested"> + <div>5</div><div>6</div> + <div>7</div><div>8</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082d-print.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082d-print.html new file mode 100644 index 0000000000..e649304e7b --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-082d-print.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-after values on the flex item in the flex line are propagated to the flex container</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="multi-line-row-flex-fragmentation-082-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-wrap: wrap; + border: 0.25in solid black; +} +.flexbox > div { + box-sizing: border-box; + width: 50%; + border: 4px solid purple; +} +.flexbox > .nested { + box-sizing: border-box; + width: 100%; + border: 4px solid gold; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div class="flexbox nested"> + <div>1</div><div>2</div> + <div>3</div><div style="break-after: page">4</div> + </div> + <div class="flexbox nested"> + <div>5</div><div>6</div> + <div>7</div><div>8</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083a.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083a.html new file mode 100644 index 0000000000..efc64d5f4a --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083a.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-before values on flex items are propagated to the flex line</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> + +<style> +.multicol { + columns: 2; + column-fill: auto; + column-gap: 0; + width: 100px; + height: 300px; +} +.flexbox { + display: flex; + flex-wrap: wrap; +} +.item { + background: green; + width: 25px; + height: 100px; +} +</style> + +<p>Test passes if there is a filled green square.</p> + +<div class="multicol"> + <div class="flexbox"> + <div class="flexbox"> + <div class="item"></div> + <div class="item"></div> + </div> + <div class="flexbox" style="break-before: always; break-before: column"> + <div class="item"></div> + <div class="item"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083b.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083b.html new file mode 100644 index 0000000000..9181fd5f01 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083b.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-before values on the flex item in the flex line are propagated to the flex container</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> + +<style> +.multicol { + columns: 2; + column-fill: auto; + column-gap: 0; + width: 100px; + height: 300px; +} +.flexbox { + display: flex; + flex-wrap: wrap; +} +.item { + background: green; + width: 25px; + height: 100px; +} +</style> + +<p>Test passes if there is a filled green square.</p> + +<div class="multicol"> + <div class="flexbox"> + <div class="flexbox"> + <div class="item"></div> + <div class="item"></div> + </div> + <div class="flexbox"> + <div class="item" style="break-before: always; break-before: column"></div> + <div class="item"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083c.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083c.html new file mode 100644 index 0000000000..b54571898d --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083c.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-after values on flex items are propagated to the flex line</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> + +<style> +.multicol { + columns: 2; + column-fill: auto; + column-gap: 0; + width: 100px; + height: 300px; +} +.flexbox { + display: flex; + flex-wrap: wrap; +} +.item { + background: green; + width: 25px; + height: 100px; +} +</style> + +<p>Test passes if there is a filled green square.</p> + +<div class="multicol"> + <div class="flexbox"> + <div class="flexbox" style="break-after: always; break-after: column"> + <div class="item"></div> + <div class="item"></div> + </div> + <div class="flexbox"> + <div class="item"></div> + <div class="item"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083d.html b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083d.html new file mode 100644 index 0000000000..025fd67436 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-083d.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a row flex container, the break-after values on the flex item in the flex line are propagated to the flex container</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> + +<style> +.multicol { + columns: 2; + column-fill: auto; + column-gap: 0; + width: 100px; + height: 300px; +} +.flexbox { + display: flex; + flex-wrap: wrap; +} +.item { + background: green; + width: 25px; + height: 100px; +} +</style> + +<p>Test passes if there is a filled green square.</p> + +<div class="multicol"> + <div class="flexbox"> + <div class="flexbox"> + <div class="item"></div> + <div class="item" style="break-after: always; break-after: column"></div> + </div> + <div class="flexbox"> + <div class="item"></div> + <div class="item"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068-print-ref.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068-print-ref.html new file mode 100644 index 0000000000..feff86edf9 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068-print-ref.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: block; + border: 0.25in solid black; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div>1</div> + <div>2</div> + <div style="break-before: page">3</div> + <div>4</div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068a-print.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068a-print.html new file mode 100644 index 0000000000..5eebf66432 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068a-print.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column flex container, the break-before values on flex items are honored</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="single-line-column-flex-fragmentation-068-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-direction: column; + border: 0.25in solid black; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div>1</div> + <div>2</div> + <div style="break-before: page">3</div> + <div>4</div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068b-print.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068b-print.html new file mode 100644 index 0000000000..64a495e01c --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068b-print.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column flex container, the break-after values on flex items are honored</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="single-line-column-flex-fragmentation-068-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-direction: column; + border: 0.25in solid black; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div>1</div> + <div style="break-after: page">2</div> + <div>3</div> + <div>4</div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068c-print.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068c-print.html new file mode 100644 index 0000000000..6c004f3d19 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068c-print.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column-reverse flex container, the break-before values on flex items are honored</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="single-line-column-flex-fragmentation-068-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-direction: column-reverse; + border: 0.25in solid black; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div>4</div> + <div style="break-before: page">3</div> + <div>2</div> + <div>1</div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068d-print.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068d-print.html new file mode 100644 index 0000000000..7ccf5e9f3e --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-068d-print.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column-reverse flex container, the break-after values on flex items are honored</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="single-line-column-flex-fragmentation-068-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-direction: column-reverse; + border: 0.25in solid black; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div>4</div> + <div>3</div> + <div style="break-after: page">2</div> + <div>1</div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069-print-ref.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069-print-ref.html new file mode 100644 index 0000000000..7f37d32454 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069-print-ref.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: block; + border: 0.25in solid black; +} +.flexbox > div { + border: 4px solid purple; +} +.flexbox > .nested { + border: 4px solid gold; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div class="flexbox nested"> + <div>1</div> + <div>2</div> + </div> + <div class="flexbox nested" style="break-before: page"> + <div>3</div> + <div>4</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069a-print.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069a-print.html new file mode 100644 index 0000000000..1d18987036 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069a-print.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column flex container, the break-before values on flex items are honored</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="single-line-column-flex-fragmentation-069-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-direction: column; + border: 0.25in solid black; +} +.flexbox > div { + border: 4px solid purple; +} +.flexbox > .nested { + border: 4px solid gold; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div class="flexbox nested"> + <div>1</div> + <div>2</div> + </div> + <div class="flexbox nested" style="break-before: page"> + <div>3</div> + <div>4</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069b-print.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069b-print.html new file mode 100644 index 0000000000..b5312837a7 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069b-print.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column flex container, the break-before values on the first item are propagated to the flex container</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="single-line-column-flex-fragmentation-069-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-direction: column; + border: 0.25in solid black; +} +.flexbox > div { + border: 4px solid purple; +} +.flexbox > .nested { + border: 4px solid gold; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div class="flexbox nested"> + <div>1</div> + <div>2</div> + </div> + <div class="flexbox nested"> + <div style="break-before: page">3</div> + <div>4</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069c-print.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069c-print.html new file mode 100644 index 0000000000..76686cb481 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069c-print.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column flex container, the break-after values on flex items are honored</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="single-line-column-flex-fragmentation-069-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-direction: column; + border: 0.25in solid black; +} +.flexbox > div { + border: 4px solid purple; +} +.flexbox > .nested { + border: 4px solid gold; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div class="flexbox nested" style="break-after: page"> + <div>1</div> + <div>2</div> + </div> + <div class="flexbox nested"> + <div>3</div> + <div>4</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069d-print.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069d-print.html new file mode 100644 index 0000000000..7a740c35f5 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-069d-print.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column flex container, the break-after values on the first item are propagated to the flex container</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="single-line-column-flex-fragmentation-069-print-ref.html"> + +<style> +@page { size: 5in 3in; margin: 0.5in; } +body { + margin: 0; + font-size: 0.25in; +} +.flexbox { + display: flex; + flex-direction: column; + border: 0.25in solid black; +} +.flexbox > div { + border: 4px solid purple; +} +.flexbox > .nested { + border: 4px solid gold; +} +</style> + +<div>Before Flexbox</div> +<div class="flexbox"> + <div class="flexbox nested"> + <div>1</div> + <div style="break-after: page">2</div> + </div> + <div class="flexbox nested"> + <div>3</div> + <div>4</div> + </div> +</div> +<div>After Flexbox</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070a.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070a.html new file mode 100644 index 0000000000..aa9af6a290 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070a.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column flex container, the break-before values on flex items are honored</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> + +<style> +.multicol { + columns: 2; + column-fill: auto; + column-gap: 0; + width: 100px; + height: 300px; +} +.flexbox { + display: flex; + flex-direction: column; +} +.item { + background: green; + height: 50px; +} +</style> + +<p>Test passes if there is a filled green square.</p> + +<div class="multicol"> + <div class="flexbox"> + <div class="flexbox"> + <div class="item"></div> + <div class="item"></div> + </div> + <div class="flexbox" style="break-before: always; break-before: column"> + <div class="item"></div> + <div class="item"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070b.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070b.html new file mode 100644 index 0000000000..45a91d96cf --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070b.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column flex container, the break-before values on the first item are propagated to the flex container</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> + +<style> +.multicol { + columns: 2; + column-fill: auto; + column-gap: 0; + width: 100px; + height: 300px; +} +.flexbox { + display: flex; + flex-direction: column; +} +.item { + background: green; + height: 50px; +} +</style> + +<p>Test passes if there is a filled green square.</p> + +<div class="multicol"> + <div class="flexbox"> + <div class="flexbox"> + <div class="item"></div> + <div class="item"></div> + </div> + <div class="flexbox"> + <div class="item" style="break-before: always; break-before: column"></div> + <div class="item"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070c.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070c.html new file mode 100644 index 0000000000..149ff6667c --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070c.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column flex container, the break-after values on flex items are honored</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> + +<style> +.multicol { + columns: 2; + column-fill: auto; + column-gap: 0; + width: 100px; + height: 300px; +} +.flexbox { + display: flex; + flex-direction: column; +} +.item { + background: green; + height: 50px; +} +</style> + +<p>Test passes if there is a filled green square.</p> + +<div class="multicol"> + <div class="flexbox"> + <div class="flexbox" style="break-after: always; break-after: column"> + <div class="item"></div> + <div class="item"></div> + </div> + <div class="flexbox"> + <div class="item"></div> + <div class="item"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070d.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070d.html new file mode 100644 index 0000000000..2265e71df6 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-070d.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test that in a column flex container, the break-after values on the first item are propagated to the flex container</title> +<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> +<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> +<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> + +<style> +.multicol { + columns: 2; + column-fill: auto; + column-gap: 0; + width: 100px; + height: 300px; +} +.flexbox { + display: flex; + flex-direction: column; +} +.item { + background: green; + height: 50px; +} +</style> + +<p>Test passes if there is a filled green square.</p> + +<div class="multicol"> + <div class="flexbox"> + <div class="flexbox"> + <div class="item"></div> + <div class="item" style="break-after: always; break-after: column"></div> + </div> + <div class="flexbox"> + <div class="item"></div> + <div class="item"></div> + </div> + </div> +</div> diff --git a/testing/web-platform/tests/css/css-break/ruby-002.html b/testing/web-platform/tests/css/css-break/ruby-002.html index d17cc563f3..2c4f6aae5b 100644 --- a/testing/web-platform/tests/css/css-break/ruby-002.html +++ b/testing/web-platform/tests/css/css-break/ruby-002.html @@ -30,15 +30,13 @@ <div style="position:relative; width:100px; height:100px; background:red;"> <div style="columns:2; column-fill:auto; column-gap:0; height:175px; orphans:1; widows:1;"> <ruby> - <div class="main"></div><rt><div class="annotation"></div></rt> - </ruby><ruby class="under"> - <div class="main"></div><rt><div class="annotation"></div></rt> + <div class="main"></div><rt><div class="annotation"></div></rt></ruby + ><ruby class="under"><div class="main"></div><rt><div class="annotation"></div></rt> </ruby> <br> <ruby> - <div class="main"></div><rt><div class="annotation"></div></rt> - </ruby><ruby class="under"> - <div class="main"></div><rt><div class="annotation"></div></rt> + <div class="main"></div><rt><div class="annotation"></div></rt></ruby + ><ruby class="under"><div class="main"></div><rt><div class="annotation"></div></rt> </ruby> <br> </div> |