Skip to content

[css-fonts-4] Is the fontFamily attribute parsed as CSS or not? #8154

Open
@andruud

Description

@andruud

A few interfaces define a fontFamily attribute:

  1. CSSFontFeatureValuesRule, which defines a read-write attribute and says: "The list of one or more font families for which a given set of feature values is defined."
  2. CSSFontPaletteValuesRule, which defines a readonly attribute (which makes the following text useless, I think): "The fontFamily and basePalette interfaces are parsed according to the appropriate CSS property syntax."

In (1), it is not stated that we're invoking the CSS parser, so it's not clear how to handle "the list".
In (2), it is stated, but then it doesn't actually matter since the attribute is readonly.

In any case, we should probably avoid invoking the CSS parser per the consensus-ish seen in #3776.

If possible, we should just avoid the problem by making fontFamily readonly in all cases.

@drott said to CC the following on this issue: @litherum @jfkthame @svgeesus, but given #3776 maybe @tabatkins and @emilio also care about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions