mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
Fix explicit height edge case with absolute / relative nested divs.
Needed for #6643.
This commit is contained in:
parent
41166fdb5b
commit
e83091d918
4 changed files with 75 additions and 7 deletions
51
tests/ref/abs_rel_explicit_height.html
Normal file
51
tests/ref/abs_rel_explicit_height.html
Normal file
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
* {
|
||||
margin: 0;
|
||||
}
|
||||
html, body {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
}
|
||||
#div0 {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
#div1 {
|
||||
position: relative;
|
||||
height: 100px;
|
||||
}
|
||||
#div2 {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
#div3 {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
#div4 {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="div0">
|
||||
<div id="div1">
|
||||
<div id="div2">
|
||||
<div id="div3">
|
||||
<div id="div4">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
20
tests/ref/abs_rel_explicit_height_ref.html
Normal file
20
tests/ref/abs_rel_explicit_height_ref.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
* {
|
||||
margin: 0;
|
||||
}
|
||||
#div0 {
|
||||
position: absolute;
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="div0">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -9,6 +9,7 @@
|
|||
# Should be == with expected failure:
|
||||
fragment=top != ../html/acid2.html acid2_ref.html
|
||||
|
||||
== abs_rel_explicit_height.html abs_rel_explicit_height_ref.html
|
||||
== absolute_inline_containing_block_a.html absolute_inline_containing_block_ref.html
|
||||
== acid1_a.html acid1_b.html
|
||||
== acid2_noscroll.html acid2_ref_broken.html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue