Closed
Bug 2005461
Opened 5 months ago
Closed 5 months ago
An element can anchor to its own pseudo-element
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
148 Branch
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: emilio)
References
(Blocks 2 open bugs)
Details
(Keywords: parity-chrome, Whiteboard: [wptsync upstream])
Attachments
(3 files)
Steps to reproduce
- Open attached test case
- Hover the resizable item in the page
Expected results
Nothing
Actual results
The pink background element position changes, although there's nothing that should happen on hover
| Reporter | ||
Updated•5 months ago
|
Attachment #9532300 -
Attachment mime type: text/plain → text/html
| Reporter | ||
Comment 1•5 months ago
|
||
Here's what I'm seeing on latest Nightly
Comment 2•5 months ago
|
||
Hm, element being able to anchor to its pseudo-element does not seem right, whose position then depends on the originating element, does not seem right at all.
Severity: -- → S3
Summary: Chained anchored positioned element position is oddly updated (e.g. on hover) → An element can anchor to its own pseudo-element
Whiteboard: [anchorpositioning:triage]
Comment 3•5 months ago
|
||
Aside - I we generally use the term "chained" for a positioned element anchoring to an element that is also positioned, like .c anchoring to .b which in turn is anchoring to .a.
I think in this case we're looking at a positioned element anchoring to multiple anchors.
| Assignee | ||
Comment 4•5 months ago
|
||
Yeah, that left: anchor(--anchor right, 0) seems invalid to me
| Assignee | ||
Comment 5•5 months ago
|
||
Will add a test if there's none.
Updated•5 months ago
|
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/e8702c723d3d
https://hg.mozilla.org/integration/autoland/rev/8be34607b2b8
Prevent anchoring a fixed pos to its own descendant. r=jwatt
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/56713 for changes under testing/web-platform/tests
Whiteboard: [anchorpositioning:triage] → [anchorpositioning:triage], [wptsync upstream]
Comment 8•5 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
status-firefox148:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Upstream PR merged by moz-wptsync-bot
Updated•5 months ago
|
Whiteboard: [anchorpositioning:triage], [wptsync upstream] → [wptsync upstream]
Updated•4 months ago
|
QA Whiteboard: [qa-triage-done-c149/b148]
You need to log in
before you can comment on or make changes to this bug.
Description
•