Skip to content

[css-anchor-1] Area-specific styling #9332

Open
@fantasai

Description

@fantasai

There are a number of things an author might want to change depending on which fallback position an anchor-positioned element lands in. Accommodating tethers is just one example, e.g. you might want a background gradient drawing outward from the anchor or other effects. We might not want this right away, but we probably want it eventually, so we should design a system that can easily accommodate it.

The current proposal uses a limited set of properties inside the @try blocks. In theory this list could be expanded. But

  • the more styling we allow, the more awkward this becomes, since the author can't organize their styles in more sophisticated ways
  • the more styling we allow, the worse the cascade problem becomes

Note: It's not totally worked out in Apple's proposal, but the fact that each fallback position can be identified and selected against lays out a path for extending styling as far as we want to go in the future.

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