Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send in the right container block size for relative positioning.
This fixes #1757.
- Loading branch information
Showing
5 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<html> | ||
<head> | ||
<style> | ||
#first { | ||
width: 100px; | ||
height: 100px; | ||
border: solid 10px; | ||
} | ||
#rel { | ||
position: relative; | ||
left: 50%; | ||
top: 50%; | ||
width: 50px; | ||
height: 50px; | ||
background: green; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="first"> | ||
<div id="rel"> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<html> | ||
<head> | ||
<style> | ||
#first { | ||
width: 100px; | ||
height: 100px; | ||
border: solid 10px; | ||
} | ||
.box { | ||
width: 50px; | ||
height: 50px; | ||
} | ||
#green_square { | ||
height: 50px; | ||
width: 50px; | ||
margin-left: 50px; | ||
background: green; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="first"> | ||
<div class="box"></div> | ||
<div id="green_square"> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
20a4ac6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from pcwalton
at pradeep90@20a4ac6
20a4ac6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging pradeep90/servo/relative-position-container-block-size = 20a4ac6 into auto
20a4ac6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pradeep90/servo/relative-position-container-block-size = 20a4ac6 merged ok, testing candidate = fadf2b0
20a4ac6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
exception: http://servo-buildbot.pub.build.mozilla.org/builders/mac/builds/1011
20a4ac6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from pcwalton
at pradeep90@20a4ac6
20a4ac6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging pradeep90/servo/relative-position-container-block-size = 20a4ac6 into auto
20a4ac6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pradeep90/servo/relative-position-container-block-size = 20a4ac6 merged ok, testing candidate = af616db
20a4ac6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://servo-buildbot.pub.build.mozilla.org/builders/linux/builds/1066
success: http://servo-buildbot.pub.build.mozilla.org/builders/mac/builds/1021
20a4ac6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = af616db