mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add some vertical align reftests now that text elements get correct vertical align property.
This commit is contained in:
parent
6184c13f95
commit
bc06e27fe2
9 changed files with 284 additions and 0 deletions
|
@ -151,3 +151,7 @@ flaky_linux == acid2_noscroll.html acid2_ref_broken.html
|
||||||
== block_formatting_context_containing_floats_a.html block_formatting_context_containing_floats_ref.html
|
== block_formatting_context_containing_floats_a.html block_formatting_context_containing_floats_ref.html
|
||||||
== clear_generated_content_table_a.html clear_generated_content_table_ref.html
|
== clear_generated_content_table_a.html clear_generated_content_table_ref.html
|
||||||
== inline_block_border_a.html inline_block_border_ref.html
|
== inline_block_border_a.html inline_block_border_ref.html
|
||||||
|
== vertical_align_top_a.html vertical_align_top_ref.html
|
||||||
|
== vertical_align_bottom_a.html vertical_align_bottom_ref.html
|
||||||
|
== vertical_align_top_span_a.html vertical_align_top_span_ref.html
|
||||||
|
== vertical_align_top_bottom_a.html vertical_align_top_bottom_ref.html
|
||||||
|
|
27
tests/ref/vertical_align_bottom_a.html
Normal file
27
tests/ref/vertical_align_bottom_a.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/ahem.css">
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 100px;
|
||||||
|
line-height: 1;
|
||||||
|
color: yellow;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
.align {
|
||||||
|
color: green;
|
||||||
|
font-size: 20px;
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div><span class="align">X</span><span>X</span></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
37
tests/ref/vertical_align_bottom_ref.html
Normal file
37
tests/ref/vertical_align_bottom_ref.html
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.red {
|
||||||
|
background-color: red;
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
width: 20px;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
.green {
|
||||||
|
background-color: green;
|
||||||
|
position: absolute;
|
||||||
|
top: 180px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
.yellow {
|
||||||
|
background-color: yellow;
|
||||||
|
position: absolute;
|
||||||
|
left: 20px;
|
||||||
|
top: 100px;
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="red"></div>
|
||||||
|
<div class="green"></div>
|
||||||
|
<div class="yellow"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
27
tests/ref/vertical_align_top_a.html
Normal file
27
tests/ref/vertical_align_top_a.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/ahem.css">
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 100px;
|
||||||
|
line-height: 1;
|
||||||
|
color: yellow;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
.align {
|
||||||
|
color: green;
|
||||||
|
font-size: 20px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div><span class="align">X</span><span>X</span></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
32
tests/ref/vertical_align_top_bottom_a.html
Normal file
32
tests/ref/vertical_align_top_bottom_a.html
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/ahem.css">
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 100px;
|
||||||
|
line-height: 1;
|
||||||
|
color: yellow;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
.align-top {
|
||||||
|
color: green;
|
||||||
|
font-size: 20px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
.align-bottom {
|
||||||
|
color: green;
|
||||||
|
font-size: 20px;
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div><span class="align-top">X</span><span>X</span><span class="align-bottom">X</span></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
55
tests/ref/vertical_align_top_bottom_ref.html
Normal file
55
tests/ref/vertical_align_top_bottom_ref.html
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.red1 {
|
||||||
|
background-color: red;
|
||||||
|
position: absolute;
|
||||||
|
left: 120px;
|
||||||
|
top: 100px;
|
||||||
|
width: 20px;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
.green1 {
|
||||||
|
background-color: green;
|
||||||
|
position: absolute;
|
||||||
|
left: 120px;
|
||||||
|
top: 180px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
.red2 {
|
||||||
|
background-color: red;
|
||||||
|
position: absolute;
|
||||||
|
top: 120px;
|
||||||
|
width: 20px;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
.green2 {
|
||||||
|
background-color: green;
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
.yellow {
|
||||||
|
background-color: yellow;
|
||||||
|
position: absolute;
|
||||||
|
left: 20px;
|
||||||
|
top: 100px;
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="red1"></div>
|
||||||
|
<div class="green1"></div>
|
||||||
|
<div class="yellow"></div>
|
||||||
|
<div class="red2"></div>
|
||||||
|
<div class="green2"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
37
tests/ref/vertical_align_top_ref.html
Normal file
37
tests/ref/vertical_align_top_ref.html
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.red {
|
||||||
|
background-color: red;
|
||||||
|
position: absolute;
|
||||||
|
top: 120px;
|
||||||
|
width: 20px;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
.green {
|
||||||
|
background-color: green;
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
.yellow {
|
||||||
|
background-color: yellow;
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
left: 20px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="red"></div>
|
||||||
|
<div class="green"></div>
|
||||||
|
<div class="yellow"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
27
tests/ref/vertical_align_top_span_a.html
Normal file
27
tests/ref/vertical_align_top_span_a.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/ahem.css">
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 100px;
|
||||||
|
line-height: 1;
|
||||||
|
color: yellow;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
.align {
|
||||||
|
color: green;
|
||||||
|
font-size: 20px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div><span>X<span class="align">X</span></span></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
38
tests/ref/vertical_align_top_span_ref.html
Normal file
38
tests/ref/vertical_align_top_span_ref.html
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.red {
|
||||||
|
background-color: red;
|
||||||
|
position: absolute;
|
||||||
|
left: 100px;
|
||||||
|
top: 120px;
|
||||||
|
width: 20px;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
.green {
|
||||||
|
background-color: green;
|
||||||
|
position: absolute;
|
||||||
|
left: 100px;
|
||||||
|
top: 100px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
.yellow {
|
||||||
|
background-color: yellow;
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="red"></div>
|
||||||
|
<div class="green"></div>
|
||||||
|
<div class="yellow"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue