mirror of
https://github.com/servo/servo.git
synced 2025-09-08 05:58:20 +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
24
tests/ref/inline_block_margin_auto_zero_ref.html
Normal file
24
tests/ref/inline_block_margin_auto_zero_ref.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
}
|
||||
section {
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: gold;
|
||||
}
|
||||
nav {
|
||||
position: absolute;
|
||||
width: 200px;
|
||||
height: 100px;
|
||||
top: 0;
|
||||
left: 100px;
|
||||
background: blue;
|
||||
}
|
||||
</style>
|
||||
<section></section><nav></nav>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue