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

Re: [csswg-drafts] [css-fonts][cssom] Serialization of font properties when system font is specified

From: L. David Baron via GitHub <sysbot+gh@w3.org>
Date: Wed, 10 Jan 2018 02:31:25 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-356481278-1515551484-sysbot+gh@w3.org>
In hindsight (and I think I may have said this in one of the stylo discussions about system fonts) I think the mistake I made in the Gecko design I did in [bug 377947](https://bugzilla.mozilla.org/show_bug.cgi?id=377947) in 2007 was having the `-internal-system-font` property.  Instead of expanding `font: menu` into `-internal-system-font: menu; font-family: -moz-use-system-font; font-size: -moz-use-system-font; ...` I should have just done `font-family: system-font(menu); font-size: system-font(menu); ...`.

In fact, failing to do so is technically buggy since it doesn't correctly support:
```css
parent { font: menu }
child { font: icon; font-size: inherit }
```

-- 
GitHub Notification of comment by dbaron
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1586#issuecomment-356481278 using your GitHub account
Received on Wednesday, 10 January 2018 02:31:29 UTC

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