Update web-platform-tests to revision e45156b5e558c062a609356905c83a0258c516e3

This commit is contained in:
WPT Sync Bot 2019-05-02 21:47:51 -04:00
parent 9f6005be16
commit 5fcf52d946
199 changed files with 4430 additions and 530 deletions

View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test: hyphenation and text-shaping</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#word-break-shaping">
<link rel="help" href="https://www.w3.org/TR/css-text-3/#hyphens-property">
<link rel="match" href="reference/hyphens-shaping-001-ref.html">
<meta name="assert" content="Shaping characters are still shaped as if the word were not broken when the word is hyphenated.">
<style>
@font-face {
font-family: 'csstest_noto';
src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
}
div {
font-family: 'csstest_noto';
font-size: 3em;
line-height: 1; /* Not strictly needed, but it gets quite tall otherwise, so this helps fit the screen. */
width: 0;
hyphens: manual;
margin: 1em auto;
}
.ref { color: orange; }
span { color: transparent; }
</style>
<p>Test passes if the black text is identical to the orange text (except the color).
<div dir=rtl lang=ug class=ref>&#xFEA9;&#xFE8D;&#xFEE3;&#xFEF4;<br>&#xFEAA;&#xFEEF;</div>
<div dir=rtl lang=ug id=test>دامي<span>&shy;</span>دى</div>
<!--
Using an invisible hyphen because it isn't certain what character the UA will actually use,
and we shouldn't fail the reftest because of a mismatch there.
See also hyphens-shaping-002.html to check that some character is inserted.
-->

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test: hyphenation and text-shaping</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#word-break-shaping">
<link rel="help" href="https://www.w3.org/TR/css-text-3/#hyphens-property">
<link rel="mismatch" href="reference/hyphens-shaping-002-ref.html">
<meta name="assert" content="Checks that some kind of hyphen does get inserted in Uyghur. (Complement fo hyphens-shaping-001.html)">
<style>
@font-face {
font-family: 'csstest_noto';
src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
}
/* The main text is invisible,
but we want to give the UA a chance to use the right hyphen,
which may be font dependent.
*/
div {
font-family: 'csstest_noto';
font-size: 4em;
hyphens: manual;
margin: auto;
width: 0;
}
#test { color: transparent; }
span { color: black; }
</style>
<p>Test passes if there is something below:
<div dir=rtl lang=ug id=test>دامي<span>&shy;</span>دى</div>

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: manual hyphen and span</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#hyphens-property">
<meta name="flags" content="">
<link rel="match" href="reference/hyphens-span-001-ref.html">
<meta name="assert" content="the presence of an unstyled inline element has no effect on text in general and on manual hyhenation in particular">
<style>
div {
border: solid orange;
margin: 5px;
width: 6ch;
hyphens: manual;
}
</style>
<p>Test passes if the text in all orange boxes below is identical (including the presence and position of a hyphen).
<div>high&shy;way</div>
<div><span>high</span>&shy;way</div>
<div><span>high&shy;</span>way</div>
<div>high<span>&shy;</span>way</div>
<div>high<span>&shy;way</span></div>
<div>high&shy;<span>way</span></div>
<div><span>high</span>&shy;<span>way</span></div>
<div><span>high&shy;wa</span>y</div>
<div><span>hi</span>gh&shy;way</div>

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: auto hyphen and span</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#hyphens-property">
<meta name="flags" content="">
<link rel="match" href="reference/hyphens-span-002-ref.html">
<meta name="assert" content="the presence of an unstyled inline element has no effect on text in general and on manual hyhenation in particular">
<style>
div {
border: solid orange;
margin: 5px;
width: 6ch;
hyphens: auto;
}
</style>
<p>Test passes if the text in all orange boxes below is identical (including the presence and position of a hyphen).
<div lang=en>highway</div>
<div lang=en><span>high</span>way</div>
<div lang=en>high<span></span>way</div>
<div lang=en>high<span>way</span></div>
<div lang=en><span>high</span><span>way</span></div>
<div lang=en><span>highwa</span>y</div>
<div lang=en><span>hi</span>ghway</div>
<!--
This test assumes the presence of "highway"
with a hyphenation point between "high" and "way"
in the hyphenation dictionary for English
in order to be useful,
but that assumption is not necessary for the test to be correct:
if the word doesn't hyphenate,
it will not hyphenate in any of the cases.
-->

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<style>
@font-face {
font-family: 'csstest_noto';
src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
}
div {
font-family: 'csstest_noto';
font-size: 3em;
line-height: 1; /* Not strictly needed, but it gets quite tall otherwise, so this helps fit the screen. */
width: 0;
hyphens: manual;
margin: 1em auto;
}
.ref { color: orange; }
</style>
<p>Test passes if the black text is identical to the orange text (except the color).
<div dir=rtl lang=ug class=ref>&#xFEA9;&#xFE8D;&#xFEE3;&#xFEF4;<br>&#xFEAA;&#xFEEF;</div>
<div dir=rtl lang=ug>&#xFEA9;&#xFE8D;&#xFEE3;&#xFEF4;<br>&#xFEAA;&#xFEEF;</div>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<p>Test passes if there is something below:

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test reference</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<style>
div {
border: solid orange;
margin: 5px;
width: 6ch;
hyphens: manual;
}
</style>
<p>Test passes if the text in all orange boxes below is identical (including the presence and position of a hyphen).
<div>high&shy;way</div>
<div>high&shy;way</div>
<div>high&shy;way</div>
<div>high&shy;way</div>
<div>high&shy;way</div>
<div>high&shy;way</div>
<div>high&shy;way</div>
<div>high&shy;way</div>
<div>high&shy;way</div>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test reference</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<style>
div {
border: solid orange;
margin: 5px;
width: 6ch;
hyphens: auto;
}
</style>
<p>Test passes if the text in all orange boxes below is identical (including the presence and position of a hyphen).
<div lang=en>highway</div>
<div lang=en>highway</div>
<div lang=en>highway</div>
<div lang=en>highway</div>
<div lang=en>highway</div>
<div lang=en>highway</div>
<div lang=en>highway</div>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>test reference</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<style>
span {
font-size: 3em;
color: red;
text-shadow: 3px 3px 3px black;
}
</style>
<p>Test passes if the word “example” below is hyphenated, and the hyphen is large, red, and has a shadow
<div>ex<span>&#x2010;</span><br>ample</div>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>test reference</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<style>
span {
font-size: 3em;
color: red;
text-shadow: 3px 3px 3px black;
}
</style>
<p>Test passes if the word “example” below is hyphenated, and the hyphen is large, red, and has a shadow
<div>ex<span>&#x002D;</span><br>ample</div>

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: soft hyphen styling</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#hyphens-property">
<meta name="flags" content="">
<link rel="match" href="reference/shy-styling-001-ref.html">
<link rel="match" href="reference/shy-styling-001-alt-ref.html">
<meta name="assert" content="hypens inserted where there was a soft-hyphen take on the styles that would have applied to the soft hyphen">
<style>
div {
width: 0ch;
hyphens: manual;
}
span {
font-size: 3em;
color: red;
text-shadow: 3px 3px 3px black;
}
</style>
<p>Test passes if the word “example” below is hyphenated, and the hyphen is large, red, and has a shadow
<div>ex<span>&shy;</span>ample</div>