mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
parent
f87e362059
commit
e34cf4fba0
4 changed files with 56 additions and 1 deletions
|
@ -657,7 +657,7 @@ impl BlockFlow {
|
||||||
pub fn containing_block_size(&self, viewport_size: &Size2D<Au>, descendant: OpaqueFlow)
|
pub fn containing_block_size(&self, viewport_size: &Size2D<Au>, descendant: OpaqueFlow)
|
||||||
-> LogicalSize<Au> {
|
-> LogicalSize<Au> {
|
||||||
debug_assert!(self.base.flags.contains(IS_ABSOLUTELY_POSITIONED));
|
debug_assert!(self.base.flags.contains(IS_ABSOLUTELY_POSITIONED));
|
||||||
if self.is_fixed() {
|
if self.is_fixed() || self.is_root() {
|
||||||
// Initial containing block is the CB for the root
|
// Initial containing block is the CB for the root
|
||||||
LogicalSize::from_physical(self.base.writing_mode, *viewport_size)
|
LogicalSize::from_physical(self.base.writing_mode, *viewport_size)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -3731,6 +3731,18 @@
|
||||||
{}
|
{}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
"css/min_width_percent_root_a.html": [
|
||||||
|
[
|
||||||
|
"/_mozilla/css/min_width_percent_root_a.html",
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"/_mozilla/css/min_width_percent_root_b.html",
|
||||||
|
"=="
|
||||||
|
]
|
||||||
|
],
|
||||||
|
{}
|
||||||
|
]
|
||||||
|
],
|
||||||
"css/min_width_simple_a.html": [
|
"css/min_width_simple_a.html": [
|
||||||
[
|
[
|
||||||
"/_mozilla/css/min_width_simple_a.html",
|
"/_mozilla/css/min_width_simple_a.html",
|
||||||
|
@ -8359,6 +8371,11 @@
|
||||||
{}
|
{}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
"css/min_width_percent_root_b.html": [
|
||||||
|
[
|
||||||
|
{}
|
||||||
|
]
|
||||||
|
],
|
||||||
"css/min_width_simple_b.html": [
|
"css/min_width_simple_b.html": [
|
||||||
[
|
[
|
||||||
{}
|
{}
|
||||||
|
@ -22622,6 +22639,14 @@
|
||||||
"e8ee634ab6350ad4c870cb1d0ce4f1a88b285581",
|
"e8ee634ab6350ad4c870cb1d0ce4f1a88b285581",
|
||||||
"support"
|
"support"
|
||||||
],
|
],
|
||||||
|
"css/min_width_percent_root_a.html": [
|
||||||
|
"e8c23bc78daed932d5b513b972582e21711ea06a",
|
||||||
|
"reftest"
|
||||||
|
],
|
||||||
|
"css/min_width_percent_root_b.html": [
|
||||||
|
"4c5b54f6b4e1bb77a15fdf7d99f9be3a47df7e8b",
|
||||||
|
"support"
|
||||||
|
],
|
||||||
"css/min_width_simple_a.html": [
|
"css/min_width_simple_a.html": [
|
||||||
"e709d1ab4096401ecb7b848d9297c00ef7786bf9",
|
"e709d1ab4096401ecb7b848d9297c00ef7786bf9",
|
||||||
"reftest"
|
"reftest"
|
||||||
|
|
16
tests/wpt/mozilla/tests/css/min_width_percent_root_a.html
Normal file
16
tests/wpt/mozilla/tests/css/min_width_percent_root_a.html
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<link rel="match" href="min_width_percent_root_b.html">
|
||||||
|
<title>absolute root element with percentage min-width</title>
|
||||||
|
<style>
|
||||||
|
html {
|
||||||
|
position: absolute;
|
||||||
|
min-width: 100%;
|
||||||
|
border: 2px solid red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body></body>
|
||||||
|
</html>
|
14
tests/wpt/mozilla/tests/css/min_width_percent_root_b.html
Normal file
14
tests/wpt/mozilla/tests/css/min_width_percent_root_b.html
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>absolute root element with percentage min-width reference</title>
|
||||||
|
<style>
|
||||||
|
html {
|
||||||
|
min-width: 100%;
|
||||||
|
border: 2px solid red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body></body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue