mirror of
https://github.com/servo/servo.git
synced 2025-09-16 18:08:23 +01:00
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.
This commit is contained in:
parent
aeb8dce2d9
commit
683290e109
7 changed files with 196 additions and 9 deletions
20
tests/ref/inline_block_margin_auto_ref.html
Normal file
20
tests/ref/inline_block_margin_auto_ref.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!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 32px 0 32px;
|
||||
padding: 16px 16px;
|
||||
}
|
||||
</style>
|
||||
<div id=a><div id=b></div>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue