`IsProperAncestorFrameConsideringContinuations()` gets the ability to traverse IB-split. This doesn't change behavior for existing callers because they are all within `MOZ_ASSERT`. Delete `TraverseUpToContainerChild()` since it is not aware of continuations nor IB-split, and we don't need a returned child frame pointer. Fixing it properly makes its functionally equivalent to `IsProperAncestorFrameConsideringContinuations()`. Differential Revision: https://phabricator.services.mozilla.com/D303080
55 lines
1.3 KiB
HTML
55 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Anchor Positioning Test: Resolve anchor() in inline containing block()</title>
|
|
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
|
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
|
|
<link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#anchor-resolution">
|
|
<link rel="help" href="https://drafts.csswg.org/css-position-3/#absolute-cb">
|
|
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1886762">
|
|
<link rel="match" href="anchor-position-inline-005-ref.html">
|
|
<link rel="stylesheet" href="/fonts/ahem.css">
|
|
|
|
<style>
|
|
.rel {
|
|
position: relative;
|
|
background: lightgray;
|
|
}
|
|
|
|
.anchor {
|
|
anchor-name: --a;
|
|
color: red;
|
|
}
|
|
|
|
.target {
|
|
position: absolute;
|
|
left: anchor(--a left);
|
|
right: anchor(--a right);
|
|
top: anchor(--a top);
|
|
bottom: anchor(--a bottom);
|
|
background: green;
|
|
}
|
|
</style>
|
|
|
|
<!-- This reftest is ported from the second sub-test in
|
|
anchor-getComputedStyle-002.html -->
|
|
|
|
<div style="font: 20px/1 Ahem; width: 11em">
|
|
<div>
|
|
Lorem
|
|
<span class="rel">
|
|
ipsum <span class="anchor">dolor</span> sit
|
|
<span class="target"></span>
|
|
</span>
|
|
amet.
|
|
</div>
|
|
|
|
<div>
|
|
Lorem
|
|
<span class="rel">
|
|
ipsum dolor <span class="anchor">sit</span>
|
|
<span class="target"></span>
|
|
</span>
|
|
amet.
|
|
</div>
|
|
</div>
|