Show overflow for #8118.

This commit is contained in:
Michael Howell 2015-10-21 20:54:40 -07:00
parent 381317f658
commit 2b6e897cd1
4 changed files with 54 additions and 1 deletions

View file

@ -153,7 +153,15 @@ impl Flow for ListItemFlow {
}
fn compute_overflow(&self) -> Rect<Au> {
self.block_flow.compute_overflow()
let mut overflow = self.block_flow.compute_overflow();
let flow_size = self.block_flow.base.position.size.to_physical(self.block_flow.base.writing_mode);
let relative_containing_block_size =
&self.block_flow.base.early_absolute_position_info.relative_containing_block_size;
for fragment in &self.marker_fragments {
overflow = overflow.union(&fragment.compute_overflow(&flow_size, &relative_containing_block_size))
}
overflow
}
fn generated_containing_block_size(&self, flow: OpaqueFlow) -> LogicalSize<Au> {

View file

@ -2087,6 +2087,18 @@
"url": "/_mozilla/css/list_style_fixed_inside_a.html"
}
],
"css/list_item_overflow.html": [
{
"path": "css/list_item_overflow.html",
"references": [
[
"/_mozilla/css/list_item_overflow_ref.html",
"=="
]
],
"url": "/_mozilla/css/list_item_overflow.html"
}
],
"css/list_style_image_sizing_a.html": [
{
"path": "css/list_style_image_sizing_a.html",
@ -6696,6 +6708,18 @@
"url": "/_mozilla/css/list_style_fixed_inside_a.html"
}
],
"css/list_item_overflow.html": [
{
"path": "css/list_item_overflow.html",
"references": [
[
"/_mozilla/css/list_item_overflow_ref.html",
"=="
]
],
"url": "/_mozilla/css/list_item_overflow.html"
}
],
"css/list_style_image_sizing_a.html": [
{
"path": "css/list_style_image_sizing_a.html",

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<link rel=match href=list_item_overflow_ref.html>
</head>
<body>
<ul style="position: fixed; padding: 0; left: 20px">
<li>x
</ul>
</body>
</html>

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<body>
<ul style="position: absolute; padding: 0; left: 20px">
<li>x
</ul>
</body>
</html>