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)

defect

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)

Attached file test_case.html

Steps to reproduce

  1. Open attached test case
  2. 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


Attachment #9532300 - Attachment mime type: text/plain → text/html
Attached video screencast

Here's what I'm seeing on latest Nightly

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]

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.

Blocks: 2005455

Yeah, that left: anchor(--anchor right, 0) seems invalid to me

Assignee: nobody → emilio
Status: NEW → ASSIGNED
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]
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Upstream PR merged by moz-wptsync-bot
Whiteboard: [anchorpositioning:triage], [wptsync upstream] → [wptsync upstream]
QA Whiteboard: [qa-triage-done-c149/b148]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: