Skip to content

[BUG] Non-HTML elements (SVG, MathML) can not be positioned #369

@jsnkuhn

Description

@jsnkuhn

Describe the bug
Single value position-anchor that works in Chrome (in this case position-area: right;) is not working in Firefox at all with the polyfill.

To Reproduce
https://codepen.io/jsnkuhn/pen/NPNyxrx?editors=1100

Expected behavior
https://drafts.csswg.org/css-anchor-position-1/#position-area-syntax

  1. from my reading of the spec a single value position anchor like position-anchor: right; should be valid.
  2. It should compute to a 2 value syntax. In this case right span-all

while chrome accepts and renders this as expected. It doesn't seem to get the computed value correct. Currently computes to position-area: right; I don't know if i'm reading the spec wrong or if they just haven't gotten to this yet.

The polyfill is computing to right incorrectly but consistently with Chrome but this isn't rendering correctly with the polyfill.

Chrome 142:

Image

Firefox 145:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions