mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Auto merge of #7126 - Ms2ger:ref, r=jdm
Run word-spacing tests under wpt. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7126) <!-- Reviewable:end -->
This commit is contained in:
commit
d0bb6d0c07
5 changed files with 30 additions and 1 deletions
|
@ -99,6 +99,18 @@
|
|||
"url": "/_mozilla/css/setpropertypriority.html"
|
||||
}
|
||||
],
|
||||
"css/word-spacing.html": [
|
||||
{
|
||||
"path": "css/word-spacing.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/word-spacing-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/word-spacing.html"
|
||||
}
|
||||
],
|
||||
"mozilla/canvas/drawimage_html_image_1.html": [
|
||||
{
|
||||
"path": "mozilla/canvas/drawimage_html_image_1.html",
|
||||
|
@ -860,6 +872,18 @@
|
|||
"url": "/_mozilla/css/setpropertypriority.html"
|
||||
}
|
||||
],
|
||||
"css/word-spacing.html": [
|
||||
{
|
||||
"path": "css/word-spacing.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/word-spacing-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/word-spacing.html"
|
||||
}
|
||||
],
|
||||
"mozilla/canvas/drawimage_html_image_1.html": [
|
||||
{
|
||||
"path": "mozilla/canvas/drawimage_html_image_1.html",
|
||||
|
|
5
tests/wpt/mozilla/tests/css/css/ahem.css
Normal file
5
tests/wpt/mozilla/tests/css/css/ahem.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
body {
|
||||
font-family: 'ahem';
|
||||
font-size: 100px;
|
||||
line-height: 1;
|
||||
}
|
26
tests/wpt/mozilla/tests/css/word-spacing-ref.html
Normal file
26
tests/wpt/mozilla/tests/css/word-spacing-ref.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<html>
|
||||
<head>
|
||||
<!-- Tests that `word-spacing` works. -->
|
||||
<style>
|
||||
section, nav, main {
|
||||
background-color: chartreuse;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
section {
|
||||
left: 0;
|
||||
}
|
||||
nav {
|
||||
left: 300px;
|
||||
}
|
||||
main {
|
||||
left: 400px;
|
||||
}
|
||||
</style>
|
||||
<body><section></section><nav></nav><main></main></body>
|
||||
</head>
|
||||
|
||||
|
||||
|
17
tests/wpt/mozilla/tests/css/word-spacing.html
Normal file
17
tests/wpt/mozilla/tests/css/word-spacing.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel="match" href="word-spacing-ref.html">
|
||||
<!-- Tests that `word-spacing` works. -->
|
||||
<link rel="stylesheet" type="text/css" href="css/ahem.css">
|
||||
<style>
|
||||
* {
|
||||
word-spacing: 100px;
|
||||
color: chartreuse;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
<body>X XX</body>
|
||||
</head>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue