servo/tests/ref/li_absolute_containing_block_ref.html
Patrick Walton 7ca1137d25 layout: Allow list items to be absolute containing blocks.
Fixes overflowing highlight in the side menu on GitHub.
2015-08-08 13:32:24 -07:00

19 lines
256 B
HTML

<!DOCTYPE html>
<style>
body {
font-size: 64px;
}
div {
position: relative;
}
section {
position: absolute;
content: "";
top: 0;
left: 0;
right: 0;
bottom: 0;
background: blue;
}
</style>
<div>X<section></section></div>