Skip to content

[css-fonts-5] Computed value of font-size-adjust: from-font #9050

Open
@jfkthame

Description

@jfkthame

The current spec says that the computed value of font-size-adjust is

the keyword none, or a pair of a metric keyword and a <number>

and for the from-font keyword it confirms that this

Computes to the <number> corresponding to the specified metric of the first available font.

As I'm looking at implementing this in Gecko, the question arose as to whether the behavior in the spec is really what is desired here.

Note that the behavior currently implemented in WebKit (and expected by a WPT testcase) is different. Using current Safari Technology Preview:

> document.body.style.fontSizeAdjust = "from-font"
< "from-font"
> window.getComputedStyle(document.body).fontSizeAdjust
< "from-font"

we see that the computed value is the from-font keyword; it is not resolved to a <number> at computed-value time.

@litherum @svgeesus Should the spec be changed to reflect this, or should we file a bug against WebKit and proceed with implementing what the spec says?

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