or
https://bugs.webkit.org/show_bug.cgi?id=332060
STEPS TO REPRODUCE
The relevant part of group 2:
ul { position: relative; } ul .current { anchor-name: --a2; } ul::after { content: ""; position: absolute; position-anchor: --a2; left: anchor(left); transition: left 10000s linear -5000s; } ul:has(a.current) { --flag: on; } /* any rule; the value is never used */
ACTUAL RESULTS
In group 2 the highlight jumps to "Three", and no transition is created:
Group 2: left 0px -> 192px, running transitions of left: 0
The only difference from group 1 (control, passes) is the :has() rule that matches the ul, the originating element of the ::after. The declarations in the rule do not matter: a declaration of an unused custom property is enough. In my own page, a rule that changes color had the same effect (not included in the testcase).
The transition does start in these cases:
With :hover (H2, ul:has(a:hover)), the highlight also jumps from link to link instead of sliding, while it slides in H1, H3, H4 and H5.
EXPECTED RESULTS
In groups 1 to 5 the highlight should be over "Two", the same as in the Reference, with one running transition of left in each group:
Expected: left 0px -> 96px, running transitions of left: 1
In H1 to H5 the highlight should slide over 1 second.
SPECIFICATION
CSS Anchor Positioning Module Level 1, 3.2 Anchor-relative Insets: the anchor() function https://drafts.csswg.org/css-anchor-position-1/#anchor-pos
A resolvable anchor() function "resolves at computed value time (using style & layout interleaving)" to a <length>. The note in the same section says that transitions of a property using an anchor function work for changes such as "the anchor-name property being changed on anchors". So moving anchor-name changes the computed value of left on the ::after, and a transition starts (CSS Transitions Level 1, 3 Starting of transitions: https://drafts.csswg.org/css-transitions-1/#starting). Whether a :has() rule matches the originating element does not change the before-change or after-change value of left.
ENVIRONMENT
OTHER BROWSERS
Possibly related WebKit bugs:
WEB PLATFORM TESTS
No test covers a transition of an anchor-positioned pseudo-element, or a :has() rule on the originating element. The closest tests in css/css-anchor-position/ pass in Safari Technology Preview 256 on wpt.fyi (2026-11-16):
The testcase is released under CC0 and can be turned into a WPT test.
Additional findings on macOS 27.2.1 with Safari 27.2 (22625.2.8.11.9). Group 2 and H2 still fail in the same way. Safari Technology Preview 27.0 (22627.1.6.3) gives the same result for group 2 and H2.
The condition is broader than a :has() rule on the originating element. Lists H3 (ul:hover { --flag: on; }) and H4 (:has(a:hover) { --flag: on; } on the parent of the ul) also skip the transition, but only when the pointer enters or leaves the list:
When the pointer enters or leaves the list, the anchor changes in the same update in which ul:hover (H3) or the parent's :has(a:hover) (H4) starts or stops matching. While the pointer moves inside the list, those rules keep matching and the transition starts. In H2, ul:has(a:hover) keeps matching too, but the transition is skipped on every move.
So it looks like the transition of the anchor-positioned ::after is skipped when, in the same update as the anchor change, a selector on the originating element or its parent changes its match result, or a :has() rule on the originating element is re-evaluated. I have not confirmed this in the engine. H5, which positions a real child element instead of ::after, transitions in every case.
How this was measured: I drove Safari with the Safari MCP server (safaridriver --mcp), moved the pointer by viewport coordinates, and logged transitionrun events and the computed left of the highlight two frames after each mouseenter. In the "jumps" cases no transitionrun event fired and left was already at the end value (96px or 192px) two frames later. In the "transitions" cases transitionrun fired and left was between the start and end values.
Testcase: https://tak-dcxi.github.io/css-browser-bugs/bugs/anchor-pseudo-transition-has-originating/repro.html