mirror of
https://github.com/servo/servo.git
synced 2025-09-01 18:48:23 +01:00
Run absolute position reftests as part of test-wpt.
This commit is contained in:
parent
c55b52b69d
commit
bbd7cac371
8 changed files with 76 additions and 4 deletions
|
@ -1,42 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that clipping is preserved properly for nested `position: absolute` elements. -->
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
#map {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 256px;
|
||||
background: lightblue;
|
||||
overflow: hidden;
|
||||
}
|
||||
#outer {
|
||||
position: absolute;
|
||||
left: -128px;
|
||||
top: -128px;
|
||||
}
|
||||
#inner {
|
||||
position: absolute;
|
||||
background: navy;
|
||||
width: 256px;
|
||||
height: 256px;
|
||||
left: 128px;
|
||||
top: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id=map>
|
||||
<div id=outer>
|
||||
<div id=inner></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,41 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that clipping is preserved properly for nested `position: absolute` elements. -->
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
#map {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 256px;
|
||||
background: lightblue;
|
||||
}
|
||||
#outer {
|
||||
position: absolute;
|
||||
left: -128px;
|
||||
top: -128px;
|
||||
}
|
||||
#inner {
|
||||
position: absolute;
|
||||
background: navy;
|
||||
width: 256px;
|
||||
height: 256px;
|
||||
left: 128px;
|
||||
top: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id=map>
|
||||
<div id=outer>
|
||||
<div id=inner></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,20 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
background: peachpuff;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: 3em 0 0;
|
||||
width: 10em;
|
||||
height: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section>XXXXX</section>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
section {
|
||||
background: peachpuff;
|
||||
padding: 3em 0 0;
|
||||
width: 10em;
|
||||
height: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section>XXXXX</section>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
#a {
|
||||
float: right;
|
||||
width: 250px;
|
||||
}
|
||||
#b {
|
||||
background: blue;
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id=a><div id=b>asdf</div></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
#a {
|
||||
float: right;
|
||||
width: 250px;
|
||||
}
|
||||
#b {
|
||||
background: blue;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id=a><div id=b>asdf</div></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -38,9 +38,6 @@ fragment=top != ../html/acid2.html acid2_ref.html
|
|||
== 2dcontext/lineto_a.html 2dcontext/lineto_ref.html
|
||||
== 2dcontext/transform_a.html 2dcontext/transform_ref.html
|
||||
|
||||
== absolute_clipping_of_own_contents_a.html absolute_clipping_of_own_contents_ref.html
|
||||
== absolute_content_height_a.html absolute_content_height_ref.html
|
||||
== absolute_hypothetical_float_a.html absolute_hypothetical_float_ref.html
|
||||
== acid1_a.html acid1_b.html
|
||||
== acid2_noscroll.html acid2_ref_broken.html
|
||||
== after_block_iteration.html after_block_iteration_ref.html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue