diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-text/text-justify/reference | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-text/text-justify/reference')
8 files changed, 189 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-006-ref.html b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-006-ref.html new file mode 100644 index 0000000000..595485c5f4 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-006-ref.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html lang="en" > +<head> +<meta charset="utf-8"> +<title>test reference</title> +<link rel='author' title='Florian Rivoal' href='https://florian.rivoal.net'> +<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> +<style> +div { + font: 20px/1 Ahem; + white-space: pre; +} +#ref { + color: orange; +} +#test { + color: blue; +} + +/* this is just filler content to have an invisible last line, as jutification does not affect the last line */ +a { color: white; } +</style> + +<p>Test passes if the the blue and orange boxes are aligned. + +<div id=ref>X X X X</div> +<div id=test>X X X X</div> diff --git a/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-001-ref.html b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-001-ref.html new file mode 100644 index 0000000000..de1aa16466 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-001-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="en" > +<head> +<meta charset="utf-8"> +<title>test reference</title> +<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> +<style> +div { + width: 7ch; + font: 20px monospace; + background: blue; +} +span { + background: green; +} +</style> + +<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p> +<div><span>XX XX <br>XXX</span></div> + diff --git a/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-003-ref.html b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-003-ref.html new file mode 100644 index 0000000000..6dc81769a0 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-003-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang="en" > +<head> +<meta charset="utf-8"> +<title>test reference</title> +<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> +<style> +div { + width: 7ch; + font: 20px monospace; + background: blue; + margin-left: 20px; + direction: rtl; +} +span { + background: green; +} +</style> + +<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p> +<div><span>XX XX <br>XXX</span></div> diff --git a/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-005-ref.html b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-005-ref.html new file mode 100644 index 0000000000..593ed2befd --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-005-ref.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html lang="en" > +<head> +<meta charset="utf-8"> +<title>test reference</title> +<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> +<style> +@font-face { + font-family: 'ezra_silregular'; + src: url('/fonts/sileot-webfont.woff') format('woff'); + font-weight: normal; + font-style: normal; +} +div { + font-family: ezra_silregular, monospace; + font-size: 15px; +} +</style> + +<p>Test passes if we have a first line with hebrew justified and XXX in the second line (left-edge trailing space if not removed)</p> +<div style="position: relative; width: 20px;"> + <div style="display: inline; background: green; position: absolute; right: 0px;"> </div> +</div> +<div style="position: relative; margin-left: 20px; width: 70px;"> + <div style="float: right; background: green;">הם</div> + <div style="background: green;">דה<br></div> +</div> +<div style="position: relative; margin-left: 20px; background: blue; width: 70px; direction: rtl;"> + <div style="display: inline; background: green; ">XXX</div> +</div> + diff --git a/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-alt-001-ref.html b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-alt-001-ref.html new file mode 100644 index 0000000000..b05af606a3 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-alt-001-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="en" > +<head> +<meta charset="utf-8"> +<title>test reference</title> +<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> +<style> +div { + width: 7ch; + font: 20px monospace; + background: blue; +} +span { + background: green; +} +</style> + +<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p> +<div><span>XX XX<br>XXX</span></div> + diff --git a/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-alt-003-ref.html b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-alt-003-ref.html new file mode 100644 index 0000000000..d4dbf95417 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-alt-003-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang="en" > +<head> +<meta charset="utf-8"> +<title>test reference</title> +<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> +<style> +div { + width: 7ch; + font: 20px monospace; + background: blue; + margin-left: 20px; + direction: rtl; +} +span { + background: green; +} +</style> + +<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p> +<div><span>XX XX<br>XXX</span></div> diff --git a/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-alt-005-ref.html b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-alt-005-ref.html new file mode 100644 index 0000000000..e3131010d3 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-and-trailing-spaces-alt-005-ref.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html lang="en" > +<head> +<meta charset="utf-8"> +<title>test reference</title> +<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> +<style> +@font-face { + font-family: 'ezra_silregular'; + src: url('/fonts/sileot-webfont.woff') format('woff'); + font-weight: normal; + font-style: normal; +} +div { + font-family: ezra_silregular, monospace; + font-size: 15px; +} +</style> + +<p>Test passes if we have a first line with hebrew justified and XXX in the second line (left-edge trailing space if not removed)</p> +<div style="position: relative; margin-left: 20px; width: 70px;"> + <div style="float: right; background: green;">הם</div> + <div style="background: green;">דה<br></div> +</div> +<div style="position: relative; margin-left: 20px; background: blue; width: 70px; direction: rtl;"> + <div style="display: inline; background: green; ">XXX</div> +</div> + diff --git a/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-ref-001.html b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-ref-001.html new file mode 100644 index 0000000000..976df7f4dc --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-justify/reference/text-justify-ref-001.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang="en" > +<head> +<meta charset="utf-8"> +<title>text-justify: none</title> +<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'> +<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> +<style type='text/css'> +.test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; } +.ref { position: relative; height: 72px; } +.rb1 { position: absolute; top: 0; left: 0; background-color: orange; width: 72px; height: 72px; } +.rb2 { position: absolute; top: 0; left: 96px; background-color: orange; width: 72px; height: 72px; } +.rb3 { position: absolute; top: 0; left: 192px; background-color: orange; width: 72px; height: 48px; } +</style> +</head> +<body> +<div id='instructions'>Test passes if the shading in both orange boxes looks the same.</div> +<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div> +<div class="ref"><div class="rb1"></div><div class="rb2"></div><div class="rb3"></div></div> +</body> +</html>
\ No newline at end of file |