[wpt-sync] Sync PR 45235 - [anchor] Don't scope inline container anchor references.
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox126 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 45235 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/45235
Details from upstream follow.
Ian Kilpatrick <ikilpatrick@chromium.org> wrote:
[anchor] Don't scope inline container anchor references.
Previously we'd scope anchor references to those contained by the
inline container. However this is incorrect, and instead should allow
everything at the containing-block level.For example:
\<div id="a" style="position: static;">
\<span style="position: relative;">
\<div id="b" style="position: absolute; anchor-name: --b">\</div>
\</span>
\<span style="position: relative;">
\<div id="c" style="position: absolute; top: anchor(--b top);">\</div>
\</span>
\</div>In the above example the containing-block is "a". Previously "c"
couldn't anchor to "b", however upon discussion with Tab we should
allow this.Bug: 41490536
Change-Id: I282b61be5dc22d79baeae947fa2be8215c561ff7Reviewed-on: https://chromium-review.googlesource.com/5381759
WPT-Export-Revision: 0aadb556983c35e4ef8c228576c3b02999e8a8c6
Assignee | ||
Comment 1•11 months ago
|
||
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Comment 2•11 months ago
|
||
Assignee | ||
Comment 3•11 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 3 tests
Status Summary
Firefox
OK
: 2
FAIL
: 8
Chrome
OK
: 2
PASS
: 6
FAIL
: 2
Safari
OK
: 2
FAIL
: 8
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-anchor-position/anchor-getComputedStyle-002.html [wpt.fyi]
- getComputedStyle() with fragmented containing block in multicolumn layout:
FAIL
(Chrome:PASS
, Safari:FAIL
) - getComputedStyle() with fragmented containing block in inline layout:
FAIL
(Chrome:PASS
, Safari:FAIL
)
- getComputedStyle() with fragmented containing block in multicolumn layout:
- /css/css-anchor-position/anchor-name-inline-001.html [wpt.fyi]
- .target 1:
FAIL
(Chrome:PASS
, Safari:FAIL
) - .target 2:
FAIL
(Chrome:PASS
, Safari:FAIL
) - .target 3:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - .target 4:
FAIL
(Chrome:PASS
, Safari:FAIL
) - .target 5:
FAIL
(Chrome:PASS
, Safari:FAIL
)
- .target 1:
- /css/css-anchor-position/inset-area-inline-container.html [wpt.fyi]:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
Comment 5•11 months ago
|
||
bugherder |
Description
•