mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Auto merge of #8152 - frewsxcv:reftests, r=jdm
Use wptrunner for some old-style reftests. Part of #5618 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8152) <!-- Reviewable:end -->
This commit is contained in:
commit
6f59acdd0a
114 changed files with 1386 additions and 66 deletions
File diff suppressed because it is too large
Load diff
BIN
tests/wpt/mozilla/tests/css/100x100_green.png
Normal file
BIN
tests/wpt/mozilla/tests/css/100x100_green.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 215 B |
BIN
tests/wpt/mozilla/tests/css/acid1.png
Normal file
BIN
tests/wpt/mozilla/tests/css/acid1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
175
tests/wpt/mozilla/tests/css/acid1_a.html
Normal file
175
tests/wpt/mozilla/tests/css/acid1_a.html
Normal file
|
@ -0,0 +1,175 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head>
|
||||
<link rel='match' href='acid1_b.html'>
|
||||
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
|
||||
<title>
|
||||
display/box/float/clear test
|
||||
</title>
|
||||
<style type="text/css">
|
||||
/* last modified: 1 Dec 98 */
|
||||
|
||||
html {
|
||||
font: 10px/1 Verdana, sans-serif;
|
||||
background-color: blue;
|
||||
color: white;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 1.5em;
|
||||
border: .5em solid black;
|
||||
padding: 0;
|
||||
width: 48em;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
dl {
|
||||
/* overflow: hidden; disable margin collapse, but incorrectly doesn't work in servo --pcwalton */
|
||||
margin: 0;
|
||||
border: 0;
|
||||
padding: .5em;
|
||||
}
|
||||
|
||||
dt {
|
||||
background-color: rgb(204,0,0);
|
||||
margin: 0;
|
||||
padding: 1em;
|
||||
width: 10.638%; /* refers to parent element's width of 47em. = 5em or 50px */
|
||||
height: 28em;
|
||||
border: .5em solid black;
|
||||
float: left;
|
||||
}
|
||||
|
||||
dd {
|
||||
float: right;
|
||||
margin: 0 0 0 1em;
|
||||
border: 1em solid black;
|
||||
padding: 1em;
|
||||
width: 34em;
|
||||
height: 27em;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
display: block; /* i.e., suppress marker */
|
||||
color: black;
|
||||
height: 9em;
|
||||
width: 5em;
|
||||
margin: 0;
|
||||
border: .5em solid black;
|
||||
padding: 1em;
|
||||
float: left;
|
||||
background-color: #FC0;
|
||||
}
|
||||
|
||||
#bar {
|
||||
background-color: black;
|
||||
color: white;
|
||||
width: 41.17%; /* = 14em */
|
||||
border: 0;
|
||||
margin: 0 1em;
|
||||
}
|
||||
|
||||
#baz {
|
||||
margin: 1em 0;
|
||||
border: 0;
|
||||
padding: 1em;
|
||||
width: 10em;
|
||||
height: 10em;
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
|
||||
form {
|
||||
margin: 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
form p {
|
||||
line-height: 1.9;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 1em 1em 1em 2em;
|
||||
border-width: 1em 1.5em 2em .5em;
|
||||
border-style: solid;
|
||||
border-color: black;
|
||||
padding: 1em 0;
|
||||
width: 5em;
|
||||
height: 9em;
|
||||
float: left;
|
||||
background-color: #FC0;
|
||||
color: black;
|
||||
}
|
||||
|
||||
address {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
background-color: black;
|
||||
color: white;
|
||||
float: left;
|
||||
margin: 1em 0;
|
||||
border: 0;
|
||||
padding: 1em;
|
||||
width: 10em;
|
||||
height: 10em;
|
||||
font-weight: normal;
|
||||
font-size: 1em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<dl>
|
||||
<dt>
|
||||
|
||||
</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
</li>
|
||||
<li id="bar">
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<form action="./" method="get">
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
</form>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
</li>
|
||||
<li id="baz">
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<address>
|
||||
|
||||
</address>
|
||||
</blockquote>
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</dd>
|
||||
</dl>
|
||||
<p style="color: black; font-size: 1em; line-height: 1.3em; clear: both">
|
||||
</p>
|
||||
|
||||
|
||||
</body></html>
|
20
tests/wpt/mozilla/tests/css/acid1_b.html
Normal file
20
tests/wpt/mozilla/tests/css/acid1_b.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: blue;
|
||||
border: none;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body><img src="acid1.png"></body>
|
||||
</html>
|
||||
|
20
tests/wpt/mozilla/tests/css/border_spacing_empty_table.html
Normal file
20
tests/wpt/mozilla/tests/css/border_spacing_empty_table.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='border_spacing_empty_table_ref.html'>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
body {
|
||||
background: yellow;
|
||||
}
|
||||
table {
|
||||
border-spacing: 100px;
|
||||
background: darkblue;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table></table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
body {
|
||||
background: yellow;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
21
tests/wpt/mozilla/tests/css/border_style_none_a.html
Normal file
21
tests/wpt/mozilla/tests/css/border_style_none_a.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='border_style_none_b.html'>
|
||||
<style>
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: blue;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-top-width: 3px;
|
||||
border-top-style: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body><img src="png_rgba_colorspace_a.png"></body>
|
||||
</html>
|
||||
|
19
tests/wpt/mozilla/tests/css/border_style_none_b.html
Normal file
19
tests/wpt/mozilla/tests/css/border_style_none_b.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: blue;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-top-width: 0px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body><img src="png_rgba_colorspace_a.png"></body>
|
||||
</html>
|
||||
|
12
tests/wpt/mozilla/tests/css/box_shadow_bg.html
Normal file
12
tests/wpt/mozilla/tests/css/box_shadow_bg.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<link rel='match' href='box_shadow_bg_ref.html'>
|
||||
<div></div>
|
||||
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
box-shadow: 0 20px 0 0 red;
|
||||
background-color: rgba(0,0,0,0.7);
|
||||
}
|
||||
</style>
|
||||
|
16
tests/wpt/mozilla/tests/css/box_shadow_bg_ref.html
Normal file
16
tests/wpt/mozilla/tests/css/box_shadow_bg_ref.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div></div><span></span>
|
||||
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: rgba(0,0,0,0.7);
|
||||
}
|
||||
span {
|
||||
background-color: red;
|
||||
width: 100px;
|
||||
height: 20px;
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
|
20
tests/wpt/mozilla/tests/css/box_shadow_border_box_a.html
Normal file
20
tests/wpt/mozilla/tests/css/box_shadow_border_box_a.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<head>
|
||||
<link rel='match' href='box_shadow_border_box_ref.html'>
|
||||
<!-- Tests that the entire border-box is shadowed, not just the content box. -->
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
border-left: solid green 10px;
|
||||
border-right: solid green 10px;
|
||||
box-shadow: 20px 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section></section>
|
||||
</body>
|
||||
|
30
tests/wpt/mozilla/tests/css/box_shadow_border_box_ref.html
Normal file
30
tests/wpt/mozilla/tests/css/box_shadow_border_box_ref.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<head>
|
||||
<!-- Tests that the entire border-box is shadowed, not just the content box. -->
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
}
|
||||
#a {
|
||||
width: 120px;
|
||||
height: 100px;
|
||||
top: 110px;
|
||||
left: 120px;
|
||||
background: black;
|
||||
}
|
||||
#b {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
border-left: solid green 10px;
|
||||
border-right: solid green 10px;
|
||||
background: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section id=a></section>
|
||||
<section id=b></section>
|
||||
</body>
|
||||
|
||||
|
12
tests/wpt/mozilla/tests/css/box_shadow_inset_bg.html
Normal file
12
tests/wpt/mozilla/tests/css/box_shadow_inset_bg.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<link rel='match' href='box_shadow_inset_bg_ref.html'>
|
||||
<div></div>
|
||||
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
box-shadow: inset 0 20px 0 0 red;
|
||||
background-color: rgba(0,0,0,0.7);
|
||||
}
|
||||
</style>
|
||||
|
16
tests/wpt/mozilla/tests/css/box_shadow_inset_bg_ref.html
Normal file
16
tests/wpt/mozilla/tests/css/box_shadow_inset_bg_ref.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div><span></span></div>
|
||||
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: rgba(0,0,0,0.7);
|
||||
}
|
||||
span {
|
||||
background-color: red;
|
||||
width: 100px;
|
||||
height: 20px;
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
|
17
tests/wpt/mozilla/tests/css/box_shadow_paint_order_a.html
Normal file
17
tests/wpt/mozilla/tests/css/box_shadow_paint_order_a.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<head>
|
||||
<link rel='match' href='box_shadow_paint_order_ref.html'>
|
||||
<!-- Tests paint order of multiple box shadows. -->
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
box-shadow: -25px -25px purple, -50px -50px turquoise;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section></section>
|
||||
</body>
|
30
tests/wpt/mozilla/tests/css/box_shadow_paint_order_ref.html
Normal file
30
tests/wpt/mozilla/tests/css/box_shadow_paint_order_ref.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<head>
|
||||
<!-- Tests paint order of multiple box shadows. -->
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
#a {
|
||||
top: 50px;
|
||||
left: 50px;
|
||||
background: turquoise;
|
||||
}
|
||||
#b {
|
||||
top: 75px;
|
||||
left: 75px;
|
||||
background: purple;
|
||||
}
|
||||
#c {
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
background: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section id=a></section>
|
||||
<section id=b></section>
|
||||
<section id=c></section>
|
||||
</body>
|
9
tests/wpt/mozilla/tests/css/box_sizing_border_box_a.html
Normal file
9
tests/wpt/mozilla/tests/css/box_sizing_border_box_a.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<link rel='match' href='box_sizing_border_box_ref.html'>
|
||||
<body>
|
||||
<div style="width: 256px; height: 256px; background: purple; border: 8px solid blue; box-sizing: border-box;"></div>
|
||||
<div style="width: 240px; height: 240px; background: purple; border: 8px solid blue;"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<div style="width: 240px; height: 240px; background: purple; border: 8px solid blue;"></div>
|
||||
<div style="width: 240px; height: 240px; background: purple; border: 8px solid blue;"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<link rel='match' href='box_sizing_sanity_check_ref.html'>
|
||||
<body>
|
||||
<div style="box-sizing: border-box; float: left; background: yellow;">Heeheehee</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<div style="float: left; background: yellow;">Heeheehee</div>
|
||||
</body>
|
||||
</html>
|
||||
|
11
tests/wpt/mozilla/tests/css/br-ref.html
Normal file
11
tests/wpt/mozilla/tests/css/br-ref.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!doctype HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>br reference</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>A</div>
|
||||
<div>B</div>
|
||||
</body>
|
||||
</html>
|
11
tests/wpt/mozilla/tests/css/br.html
Normal file
11
tests/wpt/mozilla/tests/css/br.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!doctype HTML>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='br-ref.html'>
|
||||
<meta charset="UTF-8">
|
||||
<title>br test</title>
|
||||
</head>
|
||||
<body>
|
||||
A<br>B
|
||||
</body>
|
||||
</html>
|
19
tests/wpt/mozilla/tests/css/calc-basic-ref.html
Normal file
19
tests/wpt/mozilla/tests/css/calc-basic-ref.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<div id="outer">
|
||||
<div id="inner">
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
#outer {
|
||||
height: 100px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
#inner {
|
||||
height: 100%;
|
||||
width: 110px;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
20
tests/wpt/mozilla/tests/css/calc-basic.html
Normal file
20
tests/wpt/mozilla/tests/css/calc-basic.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel='match' href='calc-basic-ref.html'>
|
||||
<div id="outer">
|
||||
<div id="inner">
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
#outer {
|
||||
height: 100px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
#inner {
|
||||
height: 100%;
|
||||
width: calc(50px + 30%);
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
32
tests/wpt/mozilla/tests/css/canvas_as_block_element_a.html
Normal file
32
tests/wpt/mozilla/tests/css/canvas_as_block_element_a.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='canvas_as_block_element_ref.html'>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
canvas {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<title>Canvas is displayed as a block-level element</title>
|
||||
<canvas id="c"></canvas>
|
||||
<script>
|
||||
|
||||
var canvas = document.getElementById('c');
|
||||
canvas.width = 100;
|
||||
canvas.height = 100;
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.fillStyle = '#ff0000';
|
||||
ctx.fillRect(0, 0, 100, 100);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
18
tests/wpt/mozilla/tests/css/canvas_as_block_element_ref.html
Normal file
18
tests/wpt/mozilla/tests/css/canvas_as_block_element_ref.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
div {
|
||||
background: #ff0000;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
31
tests/wpt/mozilla/tests/css/canvas_linear_gradient_a.html
Normal file
31
tests/wpt/mozilla/tests/css/canvas_linear_gradient_a.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<link rel='match' href='canvas_linear_gradient_ref.html'>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
canvas {
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<canvas id="c" width="200" height="200">
|
||||
Your browser does not support the HTML5 canvas tag.</canvas>
|
||||
|
||||
<script>
|
||||
var c = document.getElementById("c");
|
||||
var ctx = c.getContext("2d");
|
||||
|
||||
var grd = ctx.createLinearGradient(10, 0, 190, 0);
|
||||
grd.addColorStop(0, "red");
|
||||
grd.addColorStop(1, "yellow");
|
||||
|
||||
ctx.fillStyle = grd;
|
||||
ctx.fillRect(10, 10, 180, 180);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
23
tests/wpt/mozilla/tests/css/canvas_linear_gradient_ref.html
Normal file
23
tests/wpt/mozilla/tests/css/canvas_linear_gradient_ref.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
section, div {
|
||||
width: 180px;
|
||||
height: 180px;
|
||||
}
|
||||
section {
|
||||
padding: 10px;
|
||||
background-color: green;
|
||||
}
|
||||
div {
|
||||
background: linear-gradient(to right, red, yellow);
|
||||
}
|
||||
</style>
|
||||
<section><div></div></section>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
<div style="font-family: Arial">Hello, world!</div>
|
|
@ -0,0 +1,2 @@
|
|||
<link rel='match' href='case-insensitive-font-family-ref.html'>
|
||||
<div style="font-family: arial">Hello, world!</div>
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='clear_generated_content_table_ref.html'>
|
||||
<style>
|
||||
.clearit:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class=clearit>
|
||||
<div style="float: left;">x</div>
|
||||
</div>
|
||||
<div style="float: left;">y</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<div class=clearit>
|
||||
<div style="float: left;">x</div>
|
||||
</div>
|
||||
<div style="display: table; clear: both;"></div>
|
||||
<div style="float: left;">y</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
53
tests/wpt/mozilla/tests/css/clip_a.html
Normal file
53
tests/wpt/mozilla/tests/css/clip_a.html
Normal file
|
@ -0,0 +1,53 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='clip_ref.html'>
|
||||
<!-- Tests that various `clip` values per CSS 2.1 work. -->
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
padding: 32px;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
background: green;
|
||||
border: solid 32px red;
|
||||
}
|
||||
section:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding: 0;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
background: blue;
|
||||
}
|
||||
#a {
|
||||
top: 0;
|
||||
left: 0;
|
||||
clip: rect(auto, auto, auto, auto);
|
||||
}
|
||||
#b {
|
||||
top: 192px;
|
||||
left: 0;
|
||||
clip: rect(32px, auto, auto, 128px);
|
||||
}
|
||||
#c {
|
||||
top: 0;
|
||||
left: 192px;
|
||||
clip: rect(32px, 128px, 64px, 0);
|
||||
}
|
||||
#d {
|
||||
top: 192px;
|
||||
left: 192px;
|
||||
clip: rect(64px, 0, 64px, 0);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section id=a></section>
|
||||
<section id=b></section>
|
||||
<section id=c></section>
|
||||
<section id=d></section>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
70
tests/wpt/mozilla/tests/css/clip_ref.html
Normal file
70
tests/wpt/mozilla/tests/css/clip_ref.html
Normal file
|
@ -0,0 +1,70 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that various `clip` values per CSS 2.1 work. -->
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
}
|
||||
#a {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 192px;
|
||||
height: 192px;
|
||||
background: red;
|
||||
}
|
||||
#b {
|
||||
top: 32px;
|
||||
left: 32px;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
background: green;
|
||||
}
|
||||
#c {
|
||||
top: 64px;
|
||||
left: 64px;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
background: blue;
|
||||
}
|
||||
#d {
|
||||
top: 32px;
|
||||
left: 192px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: red;
|
||||
}
|
||||
#e {
|
||||
top: 32px;
|
||||
left: 224px;
|
||||
width: 96px;
|
||||
height: 32px;
|
||||
background: green;
|
||||
}
|
||||
#f {
|
||||
top: 224px;
|
||||
left: 128px;
|
||||
width: 64px;
|
||||
height: 160px;
|
||||
background: red;
|
||||
}
|
||||
#g {
|
||||
top: 224px;
|
||||
left: 128px;
|
||||
width: 32px;
|
||||
height: 128px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section id=a></section>
|
||||
<section id=b></section>
|
||||
<section id=c></section>
|
||||
<section id=d></section>
|
||||
<section id=e></section>
|
||||
<section id=f></section>
|
||||
<section id=g></section>
|
||||
</body>
|
||||
</html>
|
||||
|
37
tests/wpt/mozilla/tests/css/counters_nested_a.html
Normal file
37
tests/wpt/mozilla/tests/css/counters_nested_a.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='counters_nested_ref.html'>
|
||||
<!-- Tests that `counters` works with nested counters. -->
|
||||
<style>
|
||||
section {
|
||||
counter-reset: section 0;
|
||||
}
|
||||
h1, h2, h3 {
|
||||
counter-increment: section 1;
|
||||
font-size: 24px;
|
||||
}
|
||||
h1:before, h2:before, h3:before {
|
||||
content: counters(section, ".") ". ";
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section>
|
||||
<h1>Foo</h1>
|
||||
<section>
|
||||
<h2>Boo</h2>
|
||||
<h2>Quux</h2>
|
||||
<section>
|
||||
<h3>Blah</h3>
|
||||
</section>
|
||||
</section>
|
||||
<h1>Bar</h1>
|
||||
<section></section>
|
||||
<h2>Boo</h2>
|
||||
<h2>Quux</h2>
|
||||
<h1>Baz</h1>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
29
tests/wpt/mozilla/tests/css/counters_nested_ref.html
Normal file
29
tests/wpt/mozilla/tests/css/counters_nested_ref.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that `counters` works with nested counters. -->
|
||||
<style>
|
||||
h1, h2, h3 {
|
||||
font-size: 24px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section>
|
||||
<h1>1. Foo</h1>
|
||||
<section>
|
||||
<h2>1.1. Boo</h2>
|
||||
<h2>1.2. Quux</h2>
|
||||
<section>
|
||||
<h3>1.2.1. Blah</h3>
|
||||
</section>
|
||||
</section>
|
||||
<h1>1.3. Bar</h1>
|
||||
<section></section>
|
||||
<h2>1.1. Boo</h2>
|
||||
<h2>1.2. Quux</h2>
|
||||
<h1>1.3. Baz</h1>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
43
tests/wpt/mozilla/tests/css/counters_simple_a.html
Normal file
43
tests/wpt/mozilla/tests/css/counters_simple_a.html
Normal file
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='counters_simple_ref.html'>
|
||||
<!-- Tests that `counter` works. -->
|
||||
<style>
|
||||
h1, h2, h3 {
|
||||
font-size: 24px;
|
||||
}
|
||||
h1 {
|
||||
counter-increment: section 1;
|
||||
counter-reset: subsection 0;
|
||||
}
|
||||
h1:before {
|
||||
content: counter(section) ". ";
|
||||
}
|
||||
h2 {
|
||||
counter-increment: subsection 1;
|
||||
counter-reset: subsubsection 0;
|
||||
}
|
||||
h2:before {
|
||||
content: counter(section) "." counter(subsection) ". ";
|
||||
}
|
||||
h3 {
|
||||
counter-increment: subsubsection;
|
||||
}
|
||||
h3:before {
|
||||
content: counter(section) "." counter(subsection) "." counter(subsubsection) ". ";
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Foo</h1>
|
||||
<h2>Boo</h2>
|
||||
<h2>Quux</h2>
|
||||
<h3>Blah</h3>
|
||||
<h1>Bar</h1>
|
||||
<h2>Boo</h2>
|
||||
<h2>Quux</h2>
|
||||
<h1>Baz</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
22
tests/wpt/mozilla/tests/css/counters_simple_ref.html
Normal file
22
tests/wpt/mozilla/tests/css/counters_simple_ref.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that `counter` works. -->
|
||||
<style>
|
||||
h1, h2, h3 {
|
||||
font-size: 24px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>1. Foo</h1>
|
||||
<h2>1.1. Boo</h2>
|
||||
<h2>1.2. Quux</h2>
|
||||
<h3>1.2.1. Blah</h3>
|
||||
<h1>2. Bar</h1>
|
||||
<h2>2.1. Boo</h2>
|
||||
<h2>2.2. Quux</h2>
|
||||
<h1>3. Baz</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
88
tests/wpt/mozilla/tests/css/data_img_a.html
Normal file
88
tests/wpt/mozilla/tests/css/data_img_a.html
Normal file
|
@ -0,0 +1,88 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='data_img_b.html'>
|
||||
<meta charset="UTF-8" />
|
||||
</head>
|
||||
<body>
|
||||
<img src="data:image/png;base64,
|
||||
iVBORw0KGgoAAAANSUhEUgAAAM4AAADOCAMAAABBwc32AAAAB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BJR1T+RRHqHGBJebgB8dd2psd789YigGOc03x74GS3p9bqdRKYJ
|
||||
EneCK5P/zZ3QlEhouZcOtH3nhzuCFDQ/65yYXVPn7vekLqSneunRYxc/mBWsykBB9f4mO/U8sMRx
|
||||
g9GBq+Ucaus4QpxZbweJAJrroYOBq/bSOUGYTpq9dMzOyamRYS+dEYTpMLHmYzIB4aBcJvrpOz4T
|
||||
Wflr+z+W/vnDW7bS+YkL4cvnufT+j8bpcP2ZdnHc8DwhnMMcLa4869jaQhgg3DbMpkzgcCcmLe0/
|
||||
trJhO8L+eZeGhun0kEykE04Rm4GOLBwClmXSzOCOGFxiryw963eyx+6Sjoswv1HCAsRW8rE14kZj
|
||||
PUKySaoFQKR4WN5lu0OHgt+pcIJvaQObO4ZtlC0dq1rrb82F/xvyPJ9dI7WrjSzYwXXJdUEcL4U9
|
||||
NR086mezCYA60hz4BUGxGXsfv7A7cAQ+WeDfHSv2FvpyTdVIkUFCNZASCkxP6Z9rRJzVPxi3D0Iz
|
||||
d41veAeI+U3h0BPhGJxJdgeIB+9VNubt4rHNwvaS7eIHnx/xfWZ3gJhgb8Iv0m7dCO5cEIe0r8QV
|
||||
w74u9vZlDGB/08A6jU8dDPPfQNFHe+ztN5tGk3U14TtpnoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKC
|
||||
goLCLvwPHShx71gaA20AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTMtMDktMTJUMTc6MDI6MTgtMDc6
|
||||
MDDNBiM8AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDEzLTA5LTEyVDE3OjAyOjE4LTA3OjAwvFubgAAA
|
||||
AABJRU5ErkJggg==" />
|
||||
</body>
|
||||
</html>
|
9
tests/wpt/mozilla/tests/css/data_img_b.html
Normal file
9
tests/wpt/mozilla/tests/css/data_img_b.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
</head>
|
||||
<body>
|
||||
<img src="rust_logo.png" />
|
||||
</body>
|
||||
</html>
|
26
tests/wpt/mozilla/tests/css/empty_cells_a.html
Normal file
26
tests/wpt/mozilla/tests/css/empty_cells_a.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='empty_cells_ref.html'>
|
||||
<!-- Tests that `empty-cells` works—in particular, that the definition of emptiness is correct. -->
|
||||
<style>
|
||||
table {
|
||||
empty-cells: hide;
|
||||
}
|
||||
section {
|
||||
float: right;
|
||||
}
|
||||
nav {
|
||||
position: absolute;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table border=3>
|
||||
<tr><td>Yo</td><td>Howdy</td><td><section> </section></td><td></td></tr>
|
||||
<tr><td>Later</td><td><nav></nav></td><td>See ya</td><td>Aloha</td></tr>
|
||||
<tr><td></td><td>Sayonara</td><td></td><td><span></span></td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
19
tests/wpt/mozilla/tests/css/empty_cells_ref.html
Normal file
19
tests/wpt/mozilla/tests/css/empty_cells_ref.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that `empty-cells` works—in particular, that the definition of emptiness is correct. -->
|
||||
<style>
|
||||
.empty {
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table border=3>
|
||||
<tr><td>Yo</td><td>Howdy</td><td></td><td class=empty></td></tr>
|
||||
<tr><td>Later</td><td class=empty></td><td>See ya</td><td>Aloha</td></tr>
|
||||
<tr><td class=empty></td><td>Sayonara</td><td class=empty></td><td></td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel='match' href='external_media_query_ref.html'>
|
||||
<link rel="stylesheet" type="text/css" href="css/displaynone.css" media="print">
|
||||
</head>
|
||||
<body>
|
||||
Hello
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,5 @@
|
|||
<html>
|
||||
<body>
|
||||
Hello
|
||||
</body>
|
||||
</html>
|
13
tests/wpt/mozilla/tests/css/external_media_query_style.html
Normal file
13
tests/wpt/mozilla/tests/css/external_media_query_style.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel='match' href='external_media_query_ref.html'>
|
||||
<style type="text/css" media="print">
|
||||
body {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
Hello
|
||||
</body>
|
||||
</html>
|
19
tests/wpt/mozilla/tests/css/filter_inline_a.html
Normal file
19
tests/wpt/mozilla/tests/css/filter_inline_a.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='filter_inline_ref.html'>
|
||||
<style type="text/css">
|
||||
|
||||
.ex {
|
||||
<!-- display: block; -->
|
||||
-webkit-filter: opacity(25%);
|
||||
-moz-filter: opacity(25%);
|
||||
filter: opacity(25%);
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img class="ex" src="rust.png">
|
||||
</body>
|
||||
</html>
|
18
tests/wpt/mozilla/tests/css/filter_inline_ref.html
Normal file
18
tests/wpt/mozilla/tests/css/filter_inline_ref.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
|
||||
.ex {
|
||||
display: block;
|
||||
-webkit-filter: opacity(25%);
|
||||
-moz-filter: opacity(25%);
|
||||
filter: opacity(25%);
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img class="ex" src="rust.png">
|
||||
</body>
|
||||
</html>
|
16
tests/wpt/mozilla/tests/css/filter_opacity_a.html
Normal file
16
tests/wpt/mozilla/tests/css/filter_opacity_a.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='filter_opacity_ref.html'>
|
||||
<style>
|
||||
img {
|
||||
filter: opacity(0.5);
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img src=test.jpeg>
|
||||
</body>
|
||||
</html>
|
||||
|
16
tests/wpt/mozilla/tests/css/filter_opacity_ref.html
Normal file
16
tests/wpt/mozilla/tests/css/filter_opacity_ref.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
img {
|
||||
opacity: 0.5;
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img src=test.jpeg>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
19
tests/wpt/mozilla/tests/css/filter_sepia_a.html
Normal file
19
tests/wpt/mozilla/tests/css/filter_sepia_a.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='filter_sepia_ref.html'>
|
||||
<style>
|
||||
section {
|
||||
filter: sepia(100%);
|
||||
display: block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background: #ff00ff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section></section>
|
||||
</body>
|
||||
</html>
|
||||
|
17
tests/wpt/mozilla/tests/css/filter_sepia_ref.html
Normal file
17
tests/wpt/mozilla/tests/css/filter_sepia_ref.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
section {
|
||||
display: block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background: #938567;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section></section>
|
||||
</body>
|
||||
</html>
|
||||
|
26
tests/wpt/mozilla/tests/css/first_child_pseudo_a.html
Normal file
26
tests/wpt/mozilla/tests/css/first_child_pseudo_a.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='first_child_pseudo_b.html'>
|
||||
<title>:first-child test</title>
|
||||
<style type="text/css">
|
||||
html { background: red;}
|
||||
html:first-child { background: yellow; }
|
||||
|
||||
p { width: 20px; height: 20px; background: orange; float: left; margin-left: 10px; }
|
||||
div { clear: both; }
|
||||
#p1, #p2, #p3 { background: red; }
|
||||
#d1 > *:first-child { background: green }
|
||||
#d2 > *:first-child { background: green }
|
||||
#d3 > *:first-child { background: green }
|
||||
#p4 { background: green; }
|
||||
#d4 > *:first-child { background: red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="d1"><p id="p1"> </p><p> </p></div>
|
||||
<div id="d2"> <p id="p2"> </p><p> </p></div>
|
||||
<div id="d3"><!-- comment --><p id="p3"> </p><p> </p></div>
|
||||
<div id="d4"><span> </span><p id="p4"> </p><p> </p></div>
|
||||
</body>
|
||||
</html>
|
22
tests/wpt/mozilla/tests/css/first_child_pseudo_b.html
Normal file
22
tests/wpt/mozilla/tests/css/first_child_pseudo_b.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>:first-child test</title>
|
||||
<style type="text/css">
|
||||
html { background: yellow;}
|
||||
|
||||
p { width: 20px; height: 20px; background: orange; float: left; margin-left: 10px; }
|
||||
div { clear: both; }
|
||||
#p1 { background: green; }
|
||||
#p2 { background: green; }
|
||||
#p3 { background: green; }
|
||||
#p4 { background: green; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="d1"><p id="p1"> </p><p> </p></div>
|
||||
<div id="d2"> <p id="p2"> </p><p> </p></div>
|
||||
<div id="d3"><!-- comment --><p id="p3"> </p><p> </p></div>
|
||||
<div id="d4"><span> </span><p id="p4"> </p><p> </p></div>
|
||||
</body>
|
||||
</html>
|
54
tests/wpt/mozilla/tests/css/first_of_type_pseudo_a.html
Normal file
54
tests/wpt/mozilla/tests/css/first_of_type_pseudo_a.html
Normal file
|
@ -0,0 +1,54 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='first_of_type_pseudo_b.html'>
|
||||
<title>:first-of-type test</title>
|
||||
<style type="text/css">
|
||||
html { background: red; }
|
||||
/* Should match according to Selectors Level 4 (changed from Level 3) */
|
||||
html:first-of-type { background: white; }
|
||||
|
||||
div > p,
|
||||
div > div,
|
||||
div > address {
|
||||
float: left;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: 0px;
|
||||
margin-right: 10px;
|
||||
padding: 0px;
|
||||
}
|
||||
div > p {
|
||||
background: white;
|
||||
}
|
||||
div > div,
|
||||
div > address {
|
||||
background: black;
|
||||
}
|
||||
body > div { clear: both; margin-bottom: 10px; }
|
||||
|
||||
#d1 > .ok { background: red; }
|
||||
#d1 > *:first-of-type { background: green }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="d1">
|
||||
<p class="ok"> </p>
|
||||
<div class="ok"> </div>
|
||||
<div> </div>
|
||||
<p> </p>
|
||||
<address class="ok"> </address>
|
||||
<p> </p>
|
||||
<div> </div>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<address> </address>
|
||||
<address> </address>
|
||||
<p> </p>
|
||||
<div> </div>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
48
tests/wpt/mozilla/tests/css/first_of_type_pseudo_b.html
Normal file
48
tests/wpt/mozilla/tests/css/first_of_type_pseudo_b.html
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>:first-of-type test</title>
|
||||
<style type="text/css">
|
||||
div > p,
|
||||
div > div,
|
||||
div > address {
|
||||
float: left;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: 0px;
|
||||
margin-right: 10px;
|
||||
padding: 0px;
|
||||
}
|
||||
div > p {
|
||||
background: white;
|
||||
}
|
||||
div > div,
|
||||
div > address {
|
||||
background: black;
|
||||
}
|
||||
body > div { clear: both; margin-bottom: 10px; }
|
||||
|
||||
#d1 > .ok { background: green; }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="d1">
|
||||
<p class="ok"> </p>
|
||||
<div class="ok"> </div>
|
||||
<div> </div>
|
||||
<p> </p>
|
||||
<address class="ok"> </address>
|
||||
<p> </p>
|
||||
<div> </div>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<address> </address>
|
||||
<address> </address>
|
||||
<p> </p>
|
||||
<div> </div>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
14
tests/wpt/mozilla/tests/css/float_clearance_a.html
Normal file
14
tests/wpt/mozilla/tests/css/float_clearance_a.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='float_clearance_ref.html'>
|
||||
</head>
|
||||
<body>
|
||||
<div style="width: 256px;">
|
||||
<div style="width: 237px; float: left;">hello</div>
|
||||
<div style="clear: both;">darkness</div>
|
||||
<div style="float: left;">my old friend</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='float_clearance_intrinsic_width_ref.html'>
|
||||
<style>
|
||||
#nav-your-account {
|
||||
background: lightblue;
|
||||
display: inline-block;
|
||||
}
|
||||
.nav-button-title {
|
||||
float: left;
|
||||
clear: both;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a id="nav-your-account">
|
||||
<div class="nav-button-title">Hello.</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
#nav-your-account {
|
||||
background: lightblue;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a id="nav-your-account">
|
||||
<div class="nav-button-title">Hello.</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
13
tests/wpt/mozilla/tests/css/float_clearance_ref.html
Normal file
13
tests/wpt/mozilla/tests/css/float_clearance_ref.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div style="width: 256px;">
|
||||
<div style="width: 237px; float: left;">hello</div>
|
||||
<div style="clear: both;">darkness</div>
|
||||
<div>my old friend</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
25
tests/wpt/mozilla/tests/css/float_intrinsic_height.html
Normal file
25
tests/wpt/mozilla/tests/css/float_intrinsic_height.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='float_intrinsic_height_ref.html'>
|
||||
<style type="text/css">
|
||||
.otherprojects {
|
||||
background-color: red;
|
||||
float: left;
|
||||
width: 200px;
|
||||
}
|
||||
.otherprojects-item {
|
||||
background-color: yellow;
|
||||
float: left;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="otherprojects">
|
||||
<div class="otherprojects-item">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
22
tests/wpt/mozilla/tests/css/float_intrinsic_height_ref.html
Normal file
22
tests/wpt/mozilla/tests/css/float_intrinsic_height_ref.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
.otherprojects {
|
||||
background-color: red;
|
||||
width: 200px;
|
||||
}
|
||||
.otherprojects-item {
|
||||
background-color: yellow;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="otherprojects">
|
||||
<div class="otherprojects-item">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
23
tests/wpt/mozilla/tests/css/float_intrinsic_width_a.html
Normal file
23
tests/wpt/mozilla/tests/css/float_intrinsic_width_a.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='float_intrinsic_width_ref.html'>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: 'ahem';
|
||||
font-size: 100px;
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
.fl {
|
||||
float: left;
|
||||
}
|
||||
.green {
|
||||
color: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="fl green">X X</div>
|
||||
</body>
|
||||
</html>
|
25
tests/wpt/mozilla/tests/css/float_intrinsic_width_ref.html
Normal file
25
tests/wpt/mozilla/tests/css/float_intrinsic_width_ref.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
.fl {
|
||||
float: left;
|
||||
}
|
||||
.green {
|
||||
background-color: green;
|
||||
}
|
||||
.fixed {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="fl green fixed"></div>
|
||||
<div class="fl fixed"></div>
|
||||
<div class="fl green fixed"></div>
|
||||
</body>
|
||||
</html>
|
14
tests/wpt/mozilla/tests/css/float_overflow_area_a.html
Normal file
14
tests/wpt/mozilla/tests/css/float_overflow_area_a.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='float_overflow_area_ref.html'>
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="transformX(0)"><div style="float: left">Y</div></div>
|
||||
</body>
|
||||
</html>
|
13
tests/wpt/mozilla/tests/css/float_overflow_area_ref.html
Normal file
13
tests/wpt/mozilla/tests/css/float_overflow_area_ref.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><div style="float: left">Y</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel='match' href='float_positioned_pseudo_stacking_context_ref.html'>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0; padding: 0;
|
||||
}
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
#a {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
background: red;
|
||||
}
|
||||
|
||||
#b {
|
||||
float: left;
|
||||
position: relative;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div id="a"></div>
|
||||
<div id="b"></div>
|
||||
</body>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0; padding: 0;
|
||||
}
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
#a {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
background: red;
|
||||
}
|
||||
|
||||
#b {
|
||||
position: relative;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div id="a"></div>
|
||||
<div id="b"></div>
|
||||
</body>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='float_right_intrinsic_width_ref.html'>
|
||||
<style type="text/css">
|
||||
.fr {
|
||||
float: right;
|
||||
}
|
||||
.green {
|
||||
color: green;
|
||||
}
|
||||
body {
|
||||
font-family: 'ahem';
|
||||
font-size: 100px;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="fr green">X X</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
.fr {
|
||||
float: right;
|
||||
}
|
||||
.green {
|
||||
background-color: green;
|
||||
}
|
||||
.fixed {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="fr green fixed"></div>
|
||||
<div class="fr fixed"></div>
|
||||
<div class="fr green fixed"></div>
|
||||
</body>
|
||||
</html>
|
33
tests/wpt/mozilla/tests/css/float_table_a.html
Normal file
33
tests/wpt/mozilla/tests/css/float_table_a.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='float_table_ref.html'>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
table {
|
||||
font-family: 'ahem';
|
||||
font-size: 100px;
|
||||
color: red;
|
||||
float: right;
|
||||
line-height: 1;
|
||||
border-spacing: 0;
|
||||
}
|
||||
td {
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>X</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
22
tests/wpt/mozilla/tests/css/float_table_ref.html
Normal file
22
tests/wpt/mozilla/tests/css/float_table_ref.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
div {
|
||||
background-color: red;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
30
tests/wpt/mozilla/tests/css/float_under_top_margin_a.html
Normal file
30
tests/wpt/mozilla/tests/css/float_under_top_margin_a.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='float_under_top_margin_ref.html'>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body {
|
||||
margin-top: 64px;
|
||||
}
|
||||
#foo, #bar {
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
}
|
||||
#foo {
|
||||
background: blue;
|
||||
float: right;
|
||||
}
|
||||
#bar {
|
||||
background: gold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id=foo></div><div id=bar></div>
|
||||
</body>
|
||||
</html>
|
||||
|
29
tests/wpt/mozilla/tests/css/float_under_top_margin_ref.html
Normal file
29
tests/wpt/mozilla/tests/css/float_under_top_margin_ref.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body {
|
||||
padding-top: 64px;
|
||||
}
|
||||
#foo, #bar {
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
}
|
||||
#foo {
|
||||
background: blue;
|
||||
float: right;
|
||||
}
|
||||
#bar {
|
||||
background: gold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id=foo></div><div id=bar></div>
|
||||
</body>
|
||||
</html>
|
||||
|
16
tests/wpt/mozilla/tests/css/floated_generated_content_a.html
Normal file
16
tests/wpt/mozilla/tests/css/floated_generated_content_a.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='floated_generated_content_b.html'>
|
||||
<style>
|
||||
.stand:before {
|
||||
content: "";
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="stand">Toast! Toast! Toast!</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div class="stand">Toast! Toast! Toast!</div>
|
||||
</body>
|
||||
</html>
|
||||
|
27
tests/wpt/mozilla/tests/css/floated_list_item_a.html
Normal file
27
tests/wpt/mozilla/tests/css/floated_list_item_a.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='floated_list_item_ref.html'>
|
||||
<!-- Tests that list items can be floated. -->
|
||||
<style>
|
||||
ul div {
|
||||
display: list-item;
|
||||
float: left;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
}
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<div>Foo</div>
|
||||
<div>Bar</div>
|
||||
<div>Baz</div>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
24
tests/wpt/mozilla/tests/css/floated_list_item_ref.html
Normal file
24
tests/wpt/mozilla/tests/css/floated_list_item_ref.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that list items can be floated. -->
|
||||
<style>
|
||||
ul div {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<div>Foo</div>
|
||||
<div>Bar</div>
|
||||
<div>Baz</div>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
23
tests/wpt/mozilla/tests/css/floated_table_with_margin_a.html
Normal file
23
tests/wpt/mozilla/tests/css/floated_table_with_margin_a.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='floated_table_with_margin_ref.html'>
|
||||
<title>Rust - Wikipedia, the free encyclopedia</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table style="float: right; margin: 0px 0px 0em 1em; width: 100px; background: red;">
|
||||
<tr><td>foo</td></tr>
|
||||
<tr><td>foo</td></tr>
|
||||
<tr><td>foo</td></tr>
|
||||
<tr><td>foo</td></tr>
|
||||
<tr><td>foo</td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Rust - Wikipedia, the free encyclopedia</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div style="float: right"><table style="margin: 0px 0px 0em 1em; width: 100px; background: red;">
|
||||
<tr><td>foo</td></tr>
|
||||
<tr><td>foo</td></tr>
|
||||
<tr><td>foo</td></tr>
|
||||
<tr><td>foo</td></tr>
|
||||
<tr><td>foo</td></tr>
|
||||
</table></div>
|
||||
</body>
|
||||
</html>
|
19
tests/wpt/mozilla/tests/css/focus_selector.html
Normal file
19
tests/wpt/mozilla/tests/css/focus_selector.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='focus_selector_ref.html'>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
input:focus {
|
||||
outline: 2px solid orange;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<input id="a">
|
||||
<input id="b">
|
||||
<script>
|
||||
document.getElementById("a").focus();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
15
tests/wpt/mozilla/tests/css/focus_selector_ref.html
Normal file
15
tests/wpt/mozilla/tests/css/focus_selector_ref.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
#a {
|
||||
outline: 2px solid orange;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<input id="a">
|
||||
<input id="b">
|
||||
</body>
|
||||
</html>
|
3
tests/wpt/mozilla/tests/css/font_advance.html
Normal file
3
tests/wpt/mozilla/tests/css/font_advance.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<link rel='match' href='font_advance_ref.html'>
|
||||
<!-- Not a reftest, but a crashtest for #4614 -->
|
||||
a<div id="test" style="font-size: 100000px">Hello world</div>
|
2
tests/wpt/mozilla/tests/css/font_advance_ref.html
Normal file
2
tests/wpt/mozilla/tests/css/font_advance_ref.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<!-- Not a reftest, but a crashtest for #4614 -->
|
||||
a<div id="test" style="font-size: 100000px">Hello world</div>
|
10
tests/wpt/mozilla/tests/css/font_color_attribute_a.html
Normal file
10
tests/wpt/mozilla/tests/css/font_color_attribute_a.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='font_color_attribute_ref.html'>
|
||||
</head>
|
||||
<body>
|
||||
<p><font color=blue>Servo</font></p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<p><font style="color: blue">Servo</font></p>
|
||||
</body>
|
||||
</html>
|
||||
|
13
tests/wpt/mozilla/tests/css/font_face_attribute.html
Normal file
13
tests/wpt/mozilla/tests/css/font_face_attribute.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='font_face_attribute_ref.html'>
|
||||
</head>
|
||||
<body>
|
||||
<p><font face=monospace>Servo</font></p>
|
||||
<p><font id=1>Servo</font></p>
|
||||
<script>
|
||||
document.getElementById("1").face = "monospace";
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
9
tests/wpt/mozilla/tests/css/font_face_attribute_ref.html
Normal file
9
tests/wpt/mozilla/tests/css/font_face_attribute_ref.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body style="font-family: monospace">
|
||||
<p>Servo</p>
|
||||
<p>Servo</p>
|
||||
</body>
|
||||
</html>
|
22
tests/wpt/mozilla/tests/css/font_style.html
Normal file
22
tests/wpt/mozilla/tests/css/font_style.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='font_style_ref.html'>
|
||||
<style>
|
||||
p.normal {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
p.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p class="normal">This is a paragraph, normal.</p>
|
||||
<p class="italic">This is a paragraph, italic(oblique).</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
21
tests/wpt/mozilla/tests/css/font_style_ref.html
Normal file
21
tests/wpt/mozilla/tests/css/font_style_ref.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
p.normal {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
p.oblique {
|
||||
font-style: oblique;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p class="normal">This is a paragraph, normal.</p>
|
||||
<p class="oblique">This is a paragraph, italic(oblique).</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
22
tests/wpt/mozilla/tests/css/height_compute.html
Normal file
22
tests/wpt/mozilla/tests/css/height_compute.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<head>
|
||||
<style type="text/css">
|
||||
body {margin : 0px}
|
||||
.start {background-color : gray; height : 600px}
|
||||
.half {background-color : red; height : 50%}
|
||||
.quarter {background-color : rgb(250, 125, 0); height : 25%}
|
||||
.eighth {background-color : yellow; height : 12.5%}
|
||||
.sixteenth {background-color : green; height : 6.25%}
|
||||
.thirtysecond {background-color : blue; height : 3.125%}
|
||||
.sixtyfourth {background-color : purple; height : 1.5625%}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="start">
|
||||
<div class="half"></div>
|
||||
<div class="quarter"></div>
|
||||
<div class="eighth"></div>
|
||||
<div class="sixteenth"></div>
|
||||
<div class="thirtysecond"></div>
|
||||
<div class="sixtyfourth"></div>
|
||||
</div>
|
||||
</body>
|
23
tests/wpt/mozilla/tests/css/height_compute_reset.html
Normal file
23
tests/wpt/mozilla/tests/css/height_compute_reset.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<head>
|
||||
<link rel="stylesheet" href="reset.css" />
|
||||
<link rel='match' href='height_compute.html'>
|
||||
<style type="text/css">
|
||||
.start {background-color : gray; height : 600px}
|
||||
.half {background-color : red; height : 50%}
|
||||
.quarter {background-color : rgb(250, 125, 0); height : 25%}
|
||||
.eighth {background-color : yellow; height : 12.5%}
|
||||
.sixteenth {background-color : green; height : 6.25%}
|
||||
.thirtysecond {background-color : blue; height : 3.125%}
|
||||
.sixtyfourth {background-color : purple; height : 1.5625%}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="start">
|
||||
<div class="half"></div>
|
||||
<div class="quarter"></div>
|
||||
<div class="eighth"></div>
|
||||
<div class="sixteenth"></div>
|
||||
<div class="thirtysecond"></div>
|
||||
<div class="sixtyfourth"></div>
|
||||
</div>
|
||||
</body>
|
25
tests/wpt/mozilla/tests/css/hide_after_create.html
Normal file
25
tests/wpt/mozilla/tests/css/hide_after_create.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<link rel='match' href='hide_after_create_ref.html'>
|
||||
<style type="text/css">
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
body {
|
||||
background-color: green;
|
||||
}
|
||||
iframe {
|
||||
background-color: red;
|
||||
border: 0;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<iframe id="iframe" src="about:blank"></iframe>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
window.onload = function() {
|
||||
document.getElementById("iframe").classList.add("hidden");
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
}
|
||||
</script>
|
||||
</html>
|
10
tests/wpt/mozilla/tests/css/hide_after_create_ref.html
Normal file
10
tests/wpt/mozilla/tests/css/hide_after_create_ref.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
22
tests/wpt/mozilla/tests/css/img_block_display_a.html
Normal file
22
tests/wpt/mozilla/tests/css/img_block_display_a.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='img_block_display_ref.html'>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'ahem';
|
||||
font-size: 50px;
|
||||
line-height: 1;
|
||||
color: red;
|
||||
}
|
||||
img {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><img src="100x100_green.png"></div>
|
||||
<div>A</div>
|
||||
</body>
|
||||
</html>
|
21
tests/wpt/mozilla/tests/css/img_block_display_ref.html
Normal file
21
tests/wpt/mozilla/tests/css/img_block_display_ref.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
.ahem {
|
||||
background-color: red;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><img src="100x100_green.png"></div>
|
||||
<div class="ahem"></div>
|
||||
</body>
|
||||
</html>
|
7
tests/wpt/mozilla/tests/css/img_dynamic_remove.html
Normal file
7
tests/wpt/mozilla/tests/css/img_dynamic_remove.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<!doctype html>
|
||||
<link rel='match' href='img_dynamic_remove_ref.html'>
|
||||
Image dynamic remove
|
||||
<img src=400x400_green.png>
|
||||
<script>
|
||||
document.getElementsByTagName("img")[0].removeAttribute("src");
|
||||
</script>
|
3
tests/wpt/mozilla/tests/css/img_dynamic_remove_ref.html
Normal file
3
tests/wpt/mozilla/tests/css/img_dynamic_remove_ref.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<!doctype html>
|
||||
Image dynamic remove
|
||||
<img>
|
7
tests/wpt/mozilla/tests/css/img_padding_a.html
Normal file
7
tests/wpt/mozilla/tests/css/img_padding_a.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<link rel='match' href='img_padding_b.html'>
|
||||
<body>
|
||||
<img src="rust-0.png" style='padding-top: 100px; border: 1px solid black; position:relative; height: 206px; width: 206px; left:0px; top: 0px;'>
|
||||
</body>
|
||||
</html>
|
6
tests/wpt/mozilla/tests/css/img_padding_b.html
Normal file
6
tests/wpt/mozilla/tests/css/img_padding_b.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<img src="rust-0.png" style='padding-top: 100px; border: 1px solid black;'>
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue