layout: Lay absolutely-positioned blocks with inline containing blocks out of

flow.

Removes the long space before the site-specific drop-down in the Google SERPs.
This commit is contained in:
Patrick Walton 2015-09-03 11:41:24 -07:00
parent 05deb3dcc8
commit dba3e41a63
5 changed files with 40 additions and 9 deletions

View file

@ -159,6 +159,7 @@ prefs:"layout.writing-mode.enabled" == iframe/size_attributes_vertical_writing_m
== incremental_float_a.html incremental_float_ref.html
== incremental_inline_layout_a.html incremental_inline_layout_ref.html
== inline_absolute_hypothetical_clip_a.html inline_absolute_hypothetical_clip_ref.html
== inline_absolute_out_of_flow_a.html inline_absolute_out_of_flow_ref.html
!= inline_background_a.html inline_background_ref.html
== inline_block_baseline_a.html inline_block_baseline_ref.html
== inline_block_block_direction_margins_a.html inline_block_block_direction_margins_ref.html

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<style>
#a {
display: inline;
position: relative;
}
#b {
position: absolute;
display: block;
}
</style>
<div>A<span id=a><div id=b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></span>B</div>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<div>AB</div>