Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
position: absolute
for replaced elements.
Add reftests for replaced and nested absolute flows.
- Loading branch information
Showing
9 changed files
with
402 additions
and
43 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,34 @@ | ||
<html> | ||
<head> | ||
<style> | ||
#first { | ||
position: relative; | ||
width: 90px; | ||
height: 90px; | ||
border: solid 1px; | ||
} | ||
#abs { | ||
position: absolute; | ||
left: 30px; | ||
top: 30px; | ||
height: 30px; | ||
width: 30px; | ||
background: blue; | ||
} | ||
#abs2 { | ||
position: absolute; | ||
background: green; | ||
height: 15px; | ||
width: 15px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="first"> | ||
<div id="abs"> | ||
<div id="abs2"> | ||
</div> | ||
</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,36 @@ | ||
<html> | ||
<head> | ||
<style> | ||
#first { | ||
width: 90px; | ||
height: 90px; | ||
border: solid 1px; | ||
} | ||
.row { | ||
width: 90px; | ||
height: 30px; | ||
} | ||
.center { | ||
margin-left: 30px; | ||
height: 30px; | ||
width: 30px; | ||
background: blue; | ||
} | ||
.little-box { | ||
height: 15px; | ||
width: 15px; | ||
background: green; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="first"> | ||
<div class="row"></div> | ||
<div class="center"> | ||
<div class="little-box"> | ||
</div> | ||
</div> | ||
<div class="row"></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,25 @@ | ||
<html> | ||
<head> | ||
<style> | ||
#first { | ||
position: relative; | ||
width: 90px; | ||
height: 90px; | ||
border: solid 1px; | ||
} | ||
#abs { | ||
position: absolute; | ||
margin: 0px; | ||
top: 30px; | ||
right: 30px; | ||
bottom: 30px; | ||
width: 30px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="first"> | ||
<img src="rust_logo.png" width="100" id="abs" alt="Rust Logo" /> | ||
</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,32 @@ | ||
<html> | ||
<head> | ||
<style> | ||
#first { | ||
width: 90px; | ||
height: 90px; | ||
border: solid 1px; | ||
} | ||
.row { | ||
width: 90px; | ||
height: 30px; | ||
} | ||
.center { | ||
margin-left: 30px; | ||
height: 30px; | ||
width: 30px; | ||
background: green; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="first"> | ||
<div class="row"> | ||
</div> | ||
<div class="center"> | ||
<img src="rust_logo.png" width="30" id="abs" alt="Rust Logo" /> | ||
</div> | ||
<div class="row"> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
070be51
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@070be51
070be51
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/replaced-absolute-position = 070be51 into auto
070be51
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/replaced-absolute-position = 070be51 merged ok, testing candidate = 6f43c8a
070be51
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/1030
success: http://servo-buildbot.pub.build.mozilla.org/builders/mac/builds/985
070be51
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 = 6f43c8a