Skip to content
Permalink
Browse files

Make inline elements work in fullscreen mode

  • Loading branch information...
ferjm committed Sep 5, 2019
1 parent f4fbf1b commit aa0c05574c673c7d9cc688386c0c580a0e573e67
@@ -1878,7 +1878,9 @@ where
// Inline items that are absolutely-positioned contribute inline fragment construction
// results with a hypothetical fragment.
(Display::Inline, _, Position::Absolute) |
(Display::InlineBlock, _, Position::Absolute) => {
(Display::Inline, _, Position::Fixed) |
(Display::InlineBlock, _, Position::Absolute) |
(Display::InlineBlock, _, Position::Fixed) => {
let construction_result =
self.build_fragment_for_absolutely_positioned_inline(node);
self.set_flow_construction_result(node, construction_result)
@@ -1,5 +1,11 @@
{
"items": {
"conformancechecker": {
"css/blockify_inline_element.html": []
},
"manual": {
"css/blockify_inline_element.html": []
},
"reftest": {
"css/abs-overflow-stackingcontext.html": [
[
@@ -779,6 +785,18 @@
{}
]
],
"css/blockify_inline_element.html": [
[
"css/blockify_inline_element.html",
[
[
"/_mozilla/css/blockify_inline_element_ref.html",
"=="
]
],
{}
]
],
"css/blur_a.html": [
[
"css/blur_a.html",
@@ -7640,6 +7658,9 @@
]
]
},
"stub": {
"css/blockify_inline_element.html": []
},
"support": {
".gitignore": [
[]
@@ -7866,6 +7887,10 @@
"css/block_replaced_content_ref.html": [
[]
],
"css/blockify_inline_element.html": [],
"css/blockify_inline_element_ref.html": [
[]
],
"css/blur_ref.html": [
[]
],
@@ -11096,6 +11121,7 @@
{}
]
],
"css/blockify_inline_element.html": [],
"css/bug_1345483.html": [
[
"css/bug_1345483.html",
@@ -12515,6 +12541,12 @@
{}
]
]
},
"visual": {
"css/blockify_inline_element.html": []
},
"wdspec": {
"css/blockify_inline_element.html": []
}
},
"paths": {
@@ -13942,6 +13974,14 @@
"4d48d763eb784170f680276541d864681a05962b",
"support"
],
"css/blockify_inline_element.html": [
"7f9da081c8e246c7d72a85ecfd129a5ddc56e07a",
"reftest"
],
"css/blockify_inline_element_ref.html": [
"ad88ac2f3f7e4b56a3781e61655dc580806fc4cd",
"support"
],
"css/blur_a.html": [
"a75af6a020711df2b97caa6b32f4d3cc445d1178",
"reftest"
@@ -0,0 +1,25 @@
<!doctype html>
<meta charset="utf-8">
<title>Blockify inline/inline-block elements</title>
<link rel="match" href="blockify_inline_element_ref.html">
<style>
span {
width: 50px;
height: 50px;
position: fixed;
}
.blue {
display: inline;
top: 0;
left: 0;
background: blue;
}
.red {
display: inline-block;
top: 50;
left: 0;
background: red;
}
</style>
<span class="blue"></span>
<div><span class="red"></span></div>
@@ -0,0 +1,23 @@
<!doctype html>
<meta charset="utf-8">
<title>Blockify inline/inline-block element</title>
<style>
span {
display: block;
position: fixed;
width: 50px;
height: 50px;
}
.blue {
top: 0;
left: 0;
background: blue;
}
.red {
top: 50;
left: 0;
background: red;
}
</style>
<span class="blue"></span>
<span class="red"></span>

0 comments on commit aa0c055

Please sign in to comment.
You can’t perform that action at this time.