servo/tests/ref/inline_block_margin_auto_a.html
Patrick Walton 683290e109 layout: Use a special path that treats margin: auto as zero for inline-block
inline size computation.

Places the search icon in the right place on the Google SERPs.
2015-09-04 20:42:57 -07:00

20 lines
281 B
HTML

<!DOCTYPE html>
<style>
html, body {
margin: 0;
}
#a {
display: block;
background: lime;
text-align: center;
width: 96px;
}
#b {
background: gold;
display: inline-block;
margin: 0 auto;
padding: 16px 16px;
}
</style>
<div id=a><div id=b></div>