mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab
This commit is contained in:
parent
1a81b18b9f
commit
2c9faf5363
91915 changed files with 5979820 additions and 0 deletions
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Text Test: line-break - normal and inseparable characters</title>
|
||||
<!-- inseparable characters -->
|
||||
<link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com">
|
||||
<link rel="help" title="5.2. Breaking Rules for Punctuation: the 'line-break' property" href="http://www.w3.org/TR/css-text-3/#line-break">
|
||||
<link rel="match" href="reference/line-break-normal-022-ref.htm">
|
||||
<meta http-equiv="content-language" content="en, ja">
|
||||
<meta name="flags" content="font">
|
||||
<meta name="assert" content="This test verifies that 'line-break: normal' does not allow line breaking before inseparable characters such as TWO DOT LEADER (U+2025) and HORIZONTAL ELLIPSIS (U+2026).">
|
||||
<style type="text/css">
|
||||
@font-face
|
||||
{
|
||||
font-family: "mplus-1p-regular";
|
||||
src: url("support/mplus-1p-regular.woff") format("woff");
|
||||
/* filesize: 803300 bytes (784.5 KBytes) */
|
||||
/*
|
||||
mplus-1p-regular.ttf can be downloaded at/from [TBD later]
|
||||
*/
|
||||
}
|
||||
.test span {
|
||||
line-break: normal; // The property to be tested
|
||||
}
|
||||
p.test, p.control {
|
||||
border: 1px solid gray;
|
||||
color: blue;
|
||||
font-family: "mplus-1p-regular";
|
||||
width: 10em;
|
||||
}
|
||||
span.target {
|
||||
background-color: aqua;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body lang="en">
|
||||
<p>
|
||||
Test passes if the highlighted characters in each pair of rectangles are at the exact same horizontal position.
|
||||
</p>
|
||||
<!-- inseparable characters TWO DOT LEADER -->
|
||||
<p class="test" lang="ja">
|
||||
<span>サンプル文サンプル文<span class="target">‥</span>サンプル文</span>
|
||||
</p>
|
||||
<p class="control" lang="ja">
|
||||
<span>サンプル文サンプル<br>文<span class="target">‥</span>サンプル文</span>
|
||||
</p>
|
||||
<hr>
|
||||
<!-- inseparable characters HORIZONTAL ELLIPSIS -->
|
||||
<p class="test" lang="ja">
|
||||
<span>サンプル文サンプル文<span class="target">…</span>サンプル文</span>
|
||||
</p>
|
||||
<p class="control" lang="ja">
|
||||
<span>サンプル文サンプル<br>文<span class="target">…</span>サンプル文</span>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue