Skip to content

[css-anchor-position] Simplifying math functions for <percentage> in anchor()? #12131

Open
@dshin-moz

Description

@dshin-moz

anchor() allows specifying percentage values, which interpolates between start and end.

This seems like something that can be simplified, since I think the basis of that will always be positive, since it depends on the anchor element's size in that axis. OTOH, WPT test anchor-parse-valid.html expect the min(50%, 100%) value to round trip.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions