diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-text/white-space')
6 files changed, 47 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-003-ref.html b/testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-003-ref.html new file mode 100644 index 0000000000..318480bb50 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-003-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> +<style> +div { + font: 15px Ahem; + width: 35ch; + margin: 1em; +} +.green { + color: green; +} +.blue { + color: blue; +} +</style> +<p>Both test blocks (green) should have the same layout as the reference (blue):</p> +<div class="green">The quickest brown fox<br>jumped over the lazy dog</div> +<div class="green">The quickest brown fox<br>jumped over the lazy dog</div> +<div class="blue">The quickest brown fox<br>jumped over the lazy dog</div> diff --git a/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-003.html b/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-003.html new file mode 100644 index 0000000000..a2eb8bbff5 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-003.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-wrap-style"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1881855"> +<link rel="match" href="reference/text-wrap-balance-003-ref.html"> +<link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> +<style> +div { + font: 15px Ahem; + width: 35ch; + margin: 1em; +} +.test { + text-wrap: balance; + color: green; +} +.ref { + color: blue; +} +</style> +<p>Both test blocks (green) should have the same layout as the reference (blue):</p> +<div class="test">The quickest brown fox jumped over the lazy dog</div> +<!-- inline child elements should not affect wrapping --> +<div class="test">The <span>quickest <span>brown</span> fox</span> jumped <span>over</span> the <span>lazy dog</span></div> +<div class="ref">The quickest brown fox<br>jumped over the lazy dog</div> diff --git a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-002.html b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-002.html index 30e37908a2..6ee7d03d9d 100644 --- a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-002.html +++ b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-002.html @@ -1,5 +1,6 @@ <!DOCTYPE html> <meta charset="utf-8"> +<meta name="fuzzy" content="1;0-50"> <title>CSS Text level 3 Test: preserved trailing white space that hang in a textarea</title> <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> diff --git a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-004.html b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-004.html index 3d7aad0541..69d74051f7 100644 --- a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-004.html +++ b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-004.html @@ -1,5 +1,6 @@ <!DOCTYPE html> <meta charset="utf-8"> +<meta name="fuzzy" content="1;0-50"> <title>CSS Text level 3 Test: preserved trailing white space that hang in a textarea</title> <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> diff --git a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-002.html b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-002.html index 0422506b51..3da84ae512 100644 --- a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-002.html +++ b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-002.html @@ -1,5 +1,6 @@ <!DOCTYPE html> <meta charset="utf-8"> +<meta name="fuzzy" content="1;0-50"> <title>CSS Text level 3 Test: preserved trailing RTL white space that hang in a textarea</title> <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> diff --git a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-004.html b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-004.html index 7705d6dfb1..480969efc0 100644 --- a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-004.html +++ b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-004.html @@ -1,5 +1,6 @@ <!DOCTYPE html> <meta charset="utf-8"> +<meta name="fuzzy" content="1;0-50"> <title>CSS Text level 3 Test: preserved trailing RTL white space that hang in a textarea</title> <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> |