mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
auto merge of #4937 : glennw/servo/pc-height, r=pcwalton
This allows using standard CSS techniques to place a footer at the bottom of the page.
This commit is contained in:
commit
c7d3ea1c65
4 changed files with 50 additions and 4 deletions
|
@ -247,3 +247,4 @@ fragment=top != ../html/acid2.html acid2_ref.html
|
|||
== text_justify_none_a.html text_justify_none_ref.html
|
||||
== text_overflow_basic_a.html text_overflow_basic_ref.html
|
||||
== text_align_complex_a.html text_align_complex_ref.html
|
||||
== percentage_height_root.html percentage_height_root_ref.html
|
||||
|
|
19
tests/ref/percentage_height_root.html
Normal file
19
tests/ref/percentage_height_root.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
div {
|
||||
height: 100%;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
18
tests/ref/percentage_height_root_ref.html
Normal file
18
tests/ref/percentage_height_root_ref.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
div {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue