mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
layout: Allow list items to be absolute containing blocks.
Fixes overflowing highlight in the side menu on GitHub.
This commit is contained in:
parent
d4d4d6dc01
commit
7ca1137d25
4 changed files with 49 additions and 1 deletions
|
@ -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
|
||||
|
|
19
tests/ref/li_absolute_containing_block_a.html
Normal file
19
tests/ref/li_absolute_containing_block_a.html
Normal 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>
|
19
tests/ref/li_absolute_containing_block_ref.html
Normal file
19
tests/ref/li_absolute_containing_block_ref.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue