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/letter-spacing/letter-spacing-201.html | |
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/letter-spacing/letter-spacing-201.html')
-rw-r--r-- | testing/web-platform/tests/css/css-text/letter-spacing/letter-spacing-201.html | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/letter-spacing/letter-spacing-201.html b/testing/web-platform/tests/css/css-text/letter-spacing/letter-spacing-201.html new file mode 100644 index 0000000000..e9fdc2c896 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/letter-spacing/letter-spacing-201.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html lang="en" > +<meta charset="utf-8"> +<title>letter-spacing at line endings (spaces)</title> +<link rel='author' title='Elika J. Etemad' href='http://fantasai.inkedblade.net/contact'> +<link rel='help' href='https://www.w3.org/TR/css-text-3/#letter-spacing'> +<link rel='match' href='reference/letter-spacing-201-ref.html'> +<meta name="assert" content="Letter spacing is not applied at the start/end of a line even on spaces."> +<style type='text/css'> + @import "/fonts/ahem.css"; + .contain { + /* Setup Boxes */ + font: 20px/1 Ahem; + width: 5em; + border: solid blue; + margin: 1em; + float: left; + } + span, .test { + letter-spacing: 1em; + } + p { + white-space: pre-wrap; + margin: 0; + } +</style> + +<div id='instructions'>Test passes if the pattern is identical in all four blue boxes.</div> + +<!-- Letter-spacing on Containing Block --> +<div class="contain"> + <!-- single line block test --> + <p class="test"> x </p> + <!-- start/end line wrap test --> + <p class="test">xx ​ x ​ xx</p> + <!-- start/end forced line breaks test --> + <p class="test">xx <br> x <br> xx</p> + <p class="test">xx 
 x 
 xx</p> +</div> + +<!-- Line Endings Coinciding with Inline Element Boundary (Internal Break) --> +<div class="contain"> + <!-- single line block test --> + <p><span> x </span></p> + <!-- start/end line wrap test --> + <p>x x ​<span> x </span>​ x x</p> + <!-- start/end forced line breaks test --> + <p>x x <span><br> x <br></span> x x</p> + <p>x x <span>
 x 
</span> x x</p> +</div> + +<!-- Line Endings Coinciding with Inline Element Boundary (External Break) --> +<div class="contain"> + <!-- duplicate single line block test --> + <p><span> x </span></p> + <!-- start/end line wrap test --> + <p>x x <span>​ x ​</span> x x</p> + <!-- start/end forced line breaks test --> + <p>x x <br><span> x </span><br> x x</p> + <p>x x 
<span> x </span>
 x x</p> +</div> + +<!-- Control --> +<div class="contain"> + <p> x </p> + <p>x x <br> x <br> x x</p> + <p>x x <br> x <br> x x</p> + <p>x x <br> x <br> x x</p> +</div> |