Skip to content

Conversation

@pomerantsev
Copy link

Adds a link to a reproduction.

The bug is currently fixed in Safari Technology Preview, so I didn't file a webkit bug.

In the real world, the library I'm maintaining has to do browser sniffing
because some of its functionality is broken due to this bug with anchor positioning in Safari:
https://github.com/pomerantsev/accented/blob/4312cae5b4dde15b09806e84b3ced3e18ea997ac/packages/accented/src/utils/supports-anchor-positioning.ts#L1-L8

Adds a link to a reproduction.

The bug is currently fixed in Safari Technology Preview,
so I didn't file a webkit bug.

In the real world, the library I'm maintaining has to do browser
sniffing
because some of its functionality is broken due to this bug with anchor
positioning in Safari:
https://github.com/pomerantsev/accented/blob/4312cae5b4dde15b09806e84b3ced3e18ea997ac/packages/accented/src/utils/supports-anchor-positioning.ts#L1-L8
@pomerantsev pomerantsev force-pushed the safari-26-anchor-positioning branch from a8032de to 5c9184b Compare October 6, 2025 01:46
"1":"Can be enabled via the `#enable-experimental-web-platform-features` flag in `chrome://flags`",
"2":"Can be enabled using the `layout.css.anchor-positioning.enabled` flag. Enabled by default in Firefox Nightly only"
"2":"Can be enabled using the `layout.css.anchor-positioning.enabled` flag. Enabled by default in Firefox Nightly only",
"3": "There's a [bug with `position: fixed` and non-initial containing blocks](https://codepen.io/pavelp/pen/KwVPrrB)."
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if a link to a personal codepen is appropriate here, so I'm happy to use it as a conversation starter and discuss what a more durable alternative could be if this change is overall acceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant