mirror of
https://github.com/servo/servo.git
synced 2025-07-15 11:23:39 +01:00
Show overflow for #8118.
This commit is contained in:
parent
381317f658
commit
2b6e897cd1
4 changed files with 54 additions and 1 deletions
|
@ -153,7 +153,15 @@ impl Flow for ListItemFlow {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn compute_overflow(&self) -> Rect<Au> {
|
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> {
|
fn generated_containing_block_size(&self, flow: OpaqueFlow) -> LogicalSize<Au> {
|
||||||
|
|
|
@ -2087,6 +2087,18 @@
|
||||||
"url": "/_mozilla/css/list_style_fixed_inside_a.html"
|
"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": [
|
"css/list_style_image_sizing_a.html": [
|
||||||
{
|
{
|
||||||
"path": "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"
|
"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": [
|
"css/list_style_image_sizing_a.html": [
|
||||||
{
|
{
|
||||||
"path": "css/list_style_image_sizing_a.html",
|
"path": "css/list_style_image_sizing_a.html",
|
||||||
|
|
12
tests/wpt/mozilla/tests/css/list_item_overflow.html
Normal file
12
tests/wpt/mozilla/tests/css/list_item_overflow.html
Normal 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>
|
||||||
|
|
9
tests/wpt/mozilla/tests/css/list_item_overflow_ref.html
Normal file
9
tests/wpt/mozilla/tests/css/list_item_overflow_ref.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<ul style="position: absolute; padding: 0; left: 20px">
|
||||||
|
<li>x
|
||||||
|
</ul>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue