mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
layout: Ensure truncated fragment is updated with results of collecting inner fragment's stacking contexts.
This commit is contained in:
parent
f31a88d85d
commit
6dad51f570
4 changed files with 54 additions and 3 deletions
|
@ -606,9 +606,15 @@ impl Fragment {
|
|||
true
|
||||
},
|
||||
// FIXME: In the future, if #15144 is fixed we can remove this case. See #18510.
|
||||
SpecificFragmentInfo::TruncatedFragment(ref mut info) => info
|
||||
.full
|
||||
.collect_stacking_contexts_for_blocklike_fragment(state),
|
||||
SpecificFragmentInfo::TruncatedFragment(ref mut info) => {
|
||||
let _ = info
|
||||
.full
|
||||
.collect_stacking_contexts_for_blocklike_fragment(state);
|
||||
// To ensure the caller updates this fragment's stacking context
|
||||
// appropriately based on the un-truncated fragment's status,
|
||||
// we don't pass on the result of collecting stacking contexts.
|
||||
false
|
||||
},
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7511,6 +7511,18 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"mozilla/text-overflow-ellipsis-stacking-context.html": [
|
||||
[
|
||||
"mozilla/text-overflow-ellipsis-stacking-context.html",
|
||||
[
|
||||
[
|
||||
"/_mozilla/mozilla/text-overflow-ellipsis-stacking-context-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"mozilla/textarea_placeholder.html": [
|
||||
[
|
||||
"mozilla/textarea_placeholder.html",
|
||||
|
@ -9733,6 +9745,9 @@
|
|||
"mozilla/test.txt": [
|
||||
[]
|
||||
],
|
||||
"mozilla/text-overflow-ellipsis-stacking-context-ref.html": [
|
||||
[]
|
||||
],
|
||||
"mozilla/textarea_placeholder_ref.html": [
|
||||
[]
|
||||
],
|
||||
|
@ -19498,6 +19513,14 @@
|
|||
"9235007d960cc6c804a93c89f24881bedc3613c3",
|
||||
"support"
|
||||
],
|
||||
"mozilla/text-overflow-ellipsis-stacking-context-ref.html": [
|
||||
"14215e780ab4a0cf00ef23b8472636a393aeacf1",
|
||||
"support"
|
||||
],
|
||||
"mozilla/text-overflow-ellipsis-stacking-context.html": [
|
||||
"791f028522972f0bffd31b6663369c896b39c088",
|
||||
"reftest"
|
||||
],
|
||||
"mozilla/textarea_placeholder.html": [
|
||||
"6dd1f1e1e0c8250532db1afc1f6b876bfa1b6f8c",
|
||||
"reftest"
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
This page should successfully load.<p><span style="padding-left: 1px">…</span>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="text-overflow-ellipsis-stacking-context-ref.html">
|
||||
<style>
|
||||
.ellipsis-overflow {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.stacking-context {
|
||||
transform: translateX(1px);
|
||||
display: inline-block;
|
||||
width: 1px;
|
||||
|
||||
}
|
||||
</style>
|
||||
This page should successfully load.<p>
|
||||
<div class="stacking-context">
|
||||
<div class="ellipsis-overflow"></div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue