зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1038663 (part 7, attempt 2) - Add test for percentage values for 'word-spacing'. r=heycam.
This commit is contained in:
Родитель
8198d15f1e
Коммит
bda7f950f9
|
@ -4,3 +4,5 @@
|
||||||
== text-align-match-parent-04.html text-align-match-parent-ref.html
|
== text-align-match-parent-04.html text-align-match-parent-ref.html
|
||||||
== text-align-match-parent-root-ltr.html text-align-match-parent-root-ltr-ref.html
|
== text-align-match-parent-root-ltr.html text-align-match-parent-root-ltr-ref.html
|
||||||
== text-align-match-parent-root-rtl.html text-align-match-parent-root-rtl-ref.html
|
== text-align-match-parent-root-rtl.html text-align-match-parent-root-rtl-ref.html
|
||||||
|
|
||||||
|
== text-word-spacing-001.html text-word-spacing-ref.html
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<title>CSS Text Test: Word Spacing</title>
|
||||||
|
<link rel="author" title="Nicholas Nethercote" href="mailto:nnethercote@mozilla.com">
|
||||||
|
<link rel="help" href="http://www.w3.org/TR/css-text-3/#word-spacing">
|
||||||
|
<meta name="flags" content="">
|
||||||
|
<meta name="assert" content="Test checks that word-spacing works with percentages.">
|
||||||
|
<style>
|
||||||
|
div { font-family: monospace; }
|
||||||
|
div.wsn100 { word-spacing: -100%; }
|
||||||
|
div.wsn40 { word-spacing: -40%; }
|
||||||
|
div.ws0 { word-spacing: 0%; }
|
||||||
|
div.ws25 { word-spacing: calc(25% + 0px); }
|
||||||
|
div.ws100 { word-spacing: 100%; }
|
||||||
|
div.ws300 { word-spacing: calc(100% + 6em + 50%*4 - 12em/2); }
|
||||||
|
div.ws400p1 { word-spacing: calc(400% + 0.5em); }
|
||||||
|
</style>
|
||||||
|
<body>
|
||||||
|
<p>Test passes if the space between the words starts at zero and increases
|
||||||
|
on each subsequent line.</p>
|
||||||
|
<div class="wsn100" >A Bc Def Ghij</div>
|
||||||
|
<div class="ws0" >A Bc Def Ghij</div>
|
||||||
|
<div class="ws100" >A Bc Def Ghij</div>
|
||||||
|
<div class="wsn40" >A Bc Def Ghij</div>
|
||||||
|
<div class="ws300" >A Bc Def Ghij</div>
|
||||||
|
<div class="ws25" >A Bc Def Ghij</div>
|
||||||
|
<div class="ws400p1">A Bc Def Ghij</div>
|
||||||
|
</body>
|
|
@ -0,0 +1,21 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<title>CSS Text Test: Word Spacing</title>
|
||||||
|
<link rel="author" title="Nicholas Nethercote" href="mailto:nnethercote@mozilla.com">
|
||||||
|
<link rel="help" href="http://www.w3.org/TR/css-text-3/#word-spacing">
|
||||||
|
<meta name="flags" content="">
|
||||||
|
<meta name="assert" content="Test checks that word-spacing works with percentages.">
|
||||||
|
<style>
|
||||||
|
div { font-family: monospace; }
|
||||||
|
span.padhalfem { padding-left: 0.5em; }
|
||||||
|
</style>
|
||||||
|
<body>
|
||||||
|
<p>Test passes if the space between the words starts at zero and increases on
|
||||||
|
each subsequent line.</p>
|
||||||
|
<div>ABcDefGhij</div>
|
||||||
|
<div>A Bc Def Ghij</div>
|
||||||
|
<div>A Bc Def Ghij</div>
|
||||||
|
<div>A Bc Def Ghij</div>
|
||||||
|
<div>A Bc Def Ghij</div>
|
||||||
|
<div>A Bc Def Ghij</div>
|
||||||
|
<div>A <span class="padhalfem">Bc <span class="padhalfem">Def <span class="padhalfem">Ghij <span class="padhalfem"></div>
|
||||||
|
</body>
|
Загрузка…
Ссылка в новой задаче