mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 36634cbcf3253dfe8d220990a27ad4eeebf8ec2f
This commit is contained in:
parent
0964d055cd
commit
7295abcc2a
245 changed files with 5966 additions and 1901 deletions
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Text Test: minimum rendered width of tab character</title>
|
||||
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
|
||||
<style>
|
||||
span { background-color: yellow; display: inline-block; letter-spacing: -.1em; }
|
||||
pre { position: absolute; top: 0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre>
|
||||
</pre>
|
||||
<pre>
|
||||
</pre>
|
||||
<script>
|
||||
let pre = document.getElementsByTagName("pre")[0];
|
||||
let test = "";
|
||||
for (i = 7.0; i <= 8.125; i += 0.125) {
|
||||
test += `<span style="width:${i}ch">${i}ch</span>\n`;
|
||||
}
|
||||
pre.innerHTML = test;
|
||||
pre = document.getElementsByTagName("pre")[1];
|
||||
test = "";
|
||||
for (i = 0; i < 5; i++) {
|
||||
test += `\tfoo\n`;
|
||||
}
|
||||
for (i = 0; i < 5; i++) {
|
||||
test += `\t\tfoo\n`;
|
||||
}
|
||||
pre.innerHTML = test;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Text Test: minimum rendered width of tab character</title>
|
||||
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
|
||||
<link rel="reviewer" title="Xidorn Quan" href="https://www.upsuper.org/">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
|
||||
<link rel="match" href="tab-min-rendered-width-1-ref.html">
|
||||
<meta name="assert" content="If [rendered width of tab would be] less than 0.5ch, then the subsequent tab stop is used instead.">
|
||||
<style>
|
||||
span { background-color: yellow; display: inline-block; letter-spacing: -.1em; }
|
||||
pre { position: absolute; top: 0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre>
|
||||
</pre>
|
||||
<script>
|
||||
let pre = document.getElementsByTagName("pre")[0];
|
||||
let test = "";
|
||||
for (i = 7.0; i <= 8.125; i += 0.125) {
|
||||
test += `<span style="width:${i}ch">${i}ch</span>	foo\n`;
|
||||
}
|
||||
pre.innerHTML = test;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue