mirror of
https://github.com/servo/servo
synced 2026-04-29 10:57:43 +02:00
Update CSS tests to revision 0698c2aa9ead844b6d7d10eafb096cb1118e13ef
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<style type="text/css">
|
||||
#outer
|
||||
{
|
||||
background: green repeat-x center url('support/red_box.png');
|
||||
background: green repeat-x center url('support/red_box.png');
|
||||
/* red_box.png is a 100px by 100px red square */
|
||||
height: 300px;
|
||||
width: 200px;
|
||||
@@ -26,13 +26,13 @@
|
||||
#inner-most
|
||||
{
|
||||
background-color: green;
|
||||
height: 150px;
|
||||
height: 150px;
|
||||
/* 150px == top-half of red_box.png's height + #inner's height */
|
||||
position: relative;
|
||||
top: -50%;
|
||||
/* 50% is 50% of the height of #inner-most's containing block
|
||||
top: -50%;
|
||||
/* 50% is 50% of the height of #inner-most's containing block
|
||||
which is #inner */
|
||||
/* to move the top of the #inner-most box from pixel 150
|
||||
/* to move the top of the #inner-most box from pixel 150
|
||||
on the y-axis of #outer to pixel 100 on the y-axis of #outer */
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user