tests: Fix position_fixed_a.html to be standards compliant.

As written it failed in all browsers, including Servo with these
changes. The test is simply intended to test that fixed position
elements are correctly rendered out of flow. It is simplified to test
this.
This commit is contained in:
Patrick Walton 2016-05-31 13:11:39 -07:00
parent a86f77e36d
commit 4e0fe22853
2 changed files with 18 additions and 13 deletions

View file

@ -2,6 +2,9 @@
<head>
<link rel=match href=position_fixed_b.html>
<style>
body, html {
margin: 0;
}
.container {
display: block;
background: blue;
@ -18,18 +21,17 @@
.positioned_fixed_block {
background: yellow;
position: fixed;
top: 50%;
right: 25px;
top: 292px;
left: 25px;
}
.sized_fixed_block {
background: red;
position: fixed;
height: 50px;
width: 50px;
left: 5px;
left: 0;
right: 10px;
top: 100px;
bottom: 30px;
}
</style>
</head>

View file

@ -1,32 +1,35 @@
<html>
<head>
<style>
body, html {
margin: 0;
}
.container {
display: block;
background: blue;
font-family: 'Ahem';
}
div {
position: absolute;
}
.fixed_block {
background: green;
float: left;
/* Servo seems to ignore default margins when position: fixed */
margin-top: -8px;
top: 0;
left: 0;
}
.positioned_fixed_block {
left: 25px;
top: 292px;
background: yellow;
float: left;
margin-top: 292px;
margin-left: 704px;
}
.sized_fixed_block {
top: 100px;
left: 0;
background: red;
height: 50px;
width: 50px;
float: left;
margin-top: 92px;
margin-left: -19px;
}
</style>
</head>