Skip to content

[css-fonts-5] make metric value optional for font-size-adjust #6388

@fantasai

Description

@fantasai

As I was working in the edits for #6160 I noticed that the grammar is a bit more locked down than we'd normally allow, so I'd like us to consider:

  • Making the metric value optional (defaulting to from-font), so all that's required is a keyword of which metric we care about. This would make things like font-size-adjust: cap valid (and useful).
  • Maybe making the two components reorderable? Unless we plan to extend to allow multiple keyword-value pairs in the future, this would fit better with our usual grammar patterns. This would make things like font-size-adjust: 0.4 cap valid in addition to font-size-adjust: cap 0.4. (I'm less sure about this one.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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