Skip to content

[BUG] position-anchor pointing from the :host of a custom element to another element is broken #408

Description

@jpzwarte

The following HTML snippet doesn't work correctly with the polyfill:

<button style="anchor-name: --button">Button</button>
<x-tooltip style="position-anchor: --button">
  <!-- more CSS anchor positioning within the shadow root of the custom element -->
</x-tooltip>

You can see some polyfill changes to the CSS of the custom element, but the actual positioning is broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions