layout: Allow list items to be absolute containing blocks.

Fixes overflowing highlight in the side menu on GitHub.
This commit is contained in:
Patrick Walton 2015-08-08 13:31:57 -07:00
parent d4d4d6dc01
commit 7ca1137d25
4 changed files with 49 additions and 1 deletions

View file

@ -185,6 +185,7 @@ experimental == iframe/size_attributes_vertical_writing_mode.html iframe/size_at
== legacy_td_width_attribute_a.html legacy_td_width_attribute_ref.html
== legacy_th_width_attribute_a.html legacy_td_width_attribute_ref.html
== letter_spacing_a.html letter_spacing_ref.html
== li_absolute_containing_block_a.html li_absolute_containing_block_ref.html
== line_breaking_whitespace_collapse_a.html line_breaking_whitespace_collapse_ref.html
== line_height_a.html line_height_ref.html
== line_height_float_placement_a.html line_height_float_placement_ref.html

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<style>
body {
font-size: 64px;
}
li {
position: relative;
}
section {
position: absolute;
content: "";
top: 0;
left: 0;
right: 0;
bottom: 0;
background: blue;
}
</style>
<li>X<section></section></li>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<style>
body {
font-size: 64px;
}
div {
position: relative;
}
section {
position: absolute;
content: "";
top: 0;
left: 0;
right: 0;
bottom: 0;
background: blue;
}
</style>
<div>X<section></section></div>