servo/tests/ref/position_relative_stacking_context_contents_a.html
Patrick Walton 2276d642fd layout: Stop double-counting position: relative offsets for stacking
contexts.

Fixes the location of the gear menu on the Google SERPs.
2015-09-04 09:28:18 -07:00

21 lines
324 B
HTML

<!DOCTYPE html>
<style>
html, body {
margin: 0;
}
aside {
display: block;
position: relative;
left: 12px;
z-index: 3; /* force creation of stacking context */
background: red;
}
div {
float: left;
width: 100px;
height: 100px;
background: blue;
}
</style>
<aside><div></div></aside>