Bug 1403986 part 2 - [css-ui] Add a 'text-overflow' web platform test.

This commit is contained in:
Mats Palmgren 2018-01-04 20:43:57 +01:00
parent 49526eeeb6
commit 89df57b846
3 changed files with 158 additions and 4 deletions

View File

@ -143621,6 +143621,18 @@
{}
]
],
"css/css-ui/text-overflow-026.html": [
[
"/css/css-ui/text-overflow-026.html",
[
[
"/css/css-ui/text-overflow-026-ref.html",
"=="
]
],
{}
]
],
"css/css-values/attr-color-invalid-cast.html": [
[
"/css/css-values/attr-color-invalid-cast.html",
@ -250176,6 +250188,11 @@
{}
]
],
"css/css-ui/text-overflow-026-ref.html": [
[
{}
]
],
"css/css-ui/text-overflow-ref.html": [
[
{}
@ -504537,19 +504554,27 @@
"testharness"
],
"css/css-ui/text-overflow-024-ref.html": [
"458105b3deb397f37c1664d373c86e5ea869a414",
"c43715bf1ea3dd118f7b71479bd5239e01bbb314",
"support"
],
"css/css-ui/text-overflow-024.html": [
"bedd5c72400a578e09387dd5dd8afaf63c91c76b",
"7c18a786a3bfc9d1a8e9cc108ae228b979cacb6e",
"reftest"
],
"css/css-ui/text-overflow-025-ref.html": [
"907c7d52cc9b872253aa544d3041329e13dc7f5b",
"13056acc82d5e59310d10af30da8e46f73929e5f",
"support"
],
"css/css-ui/text-overflow-025.html": [
"b03fc53093345268573b21cccc82d841f66c192f",
"b4a2e0d1b86fd8893421de4335c9b6f36df1fc4d",
"reftest"
],
"css/css-ui/text-overflow-026-ref.html": [
"1a7d6d524a217d8fc2252e6434ac1b8fb3d5af2f",
"support"
],
"css/css-ui/text-overflow-026.html": [
"34cb2b690321f6f93763de2841ebdf5a9275f515",
"reftest"
],
"css/css-ui/text-overflow-ref.html": [

View File

@ -0,0 +1,62 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Reference: text-overflow with leading white-space</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1403986">
<style type="text/css">
html,body {
color:black; background-color:white; font:16px/1 monospace;
}
.ellipsize {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100px;
border: 1px solid;
}
.inline-block {
display: inline-block;
background: red;
}
</style>
</head>
<body>
<pre>
The test PASS if all of the following are true:
1. there are no red areas
2. the first two blocks display "PASS" but no ellipsis
3. the last three blocks display an ellipsis
</pre>
<div class="ellipsize" style="text-overflow: clip">
<span style="margin-left:5px"></span><span class="inline-block" style="background:lime">
PASS PASS PASS PASS PASS</span>
</div>
<div class="ellipsize" style="text-overflow: clip">
<span style="margin-left:5px"></span>
<span class="inline-block" style="background:lime">
PASS PASS PASS PASS PASS</span>
</div>
<div class="ellipsize">
<span style="margin-left:10px"></span>&nbsp;&#x2026;
</div>
<div class="ellipsize">
&nbsp;&#x2026;
</div>
<div class="ellipsize">
a&#x2026;
</div>
</body>
</html>

View File

@ -0,0 +1,67 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Test: text-overflow with leading white-space</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1403986">
<link rel="help" href="https://www.w3.org/TR/css3-ui/#text-overflow" title="5.2. the 'text-overflow' property">
<link rel="match" href="text-overflow-026-ref.html">
<style type="text/css">
html,body {
color:black; background-color:white; font:16px/1 monospace;
}
.ellipsize {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100px;
border: 1px solid;
}
.inline-block {
display: inline-block;
background: red;
}
</style>
</head>
<body>
<pre>
The test PASS if all of the following are true:
1. there are no red areas
2. the first two blocks display "PASS" but no ellipsis
3. the last three blocks display an ellipsis
</pre>
<div class="ellipsize">
<span style="margin-left:5px"></span><span class="inline-block" style="background:lime">
PASS PASS PASS PASS PASS</span>
</div>
<div class="ellipsize">
<span style="margin-left:5px"></span>
<span class="inline-block" style="background:lime">
PASS PASS PASS PASS PASS</span>
</div>
<div class="ellipsize">
<span style="margin-left:10px"></span>&nbsp;<span class="inline-block">
FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL </span>
</div>
<div class="ellipsize">
&nbsp;<span class="inline-block">
FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL </span>
</div>
<div class="ellipsize">
a<span class="inline-block">
FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL </span>
</div>
</body>
</html>