mirror of
https://github.com/servo/servo.git
synced 2025-08-22 13:55:34 +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
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>
|
Loading…
Add table
Add a link
Reference in a new issue