W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2018

[csswg-drafts] [css-fonts-4] font-stretch computed value.

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Mon, 23 Apr 2018 08:48:02 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-316717521-1524473281-sysbot+gh@w3.org>
emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts-4] font-stretch computed value. ==
https://drafts.csswg.org/css-fonts-4/#font-stretch-prop says:

> Computed Value: as specified.

I think the computed value should be a `<percentage>`, perhaps with a `getComputedStyle` quirk to keep the keyword serialization in the case where the percentage matches one of the keywords?

That being said, the following page shows `100%` on Chrome, so it means that they managed to ship it without the quirk, which is simpler:

<!doctype html>
<div id="test" style="font-stretch: normal"></div>

I don't have Edge or Safari around to test this (Epiphany builds without var fonts).

We plan implementing Chrome's behavior here unless we need the old behavior for compat.

cc @drott @litherum @FremyCompany 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2605 using your GitHub account
Received on Monday, 23 April 2018 08:48:10 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:28 UTC