W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2017

[csswg-drafts] [css-fonts] Should font-synthesis be reset by font shorthand?

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Tue, 14 Feb 2017 04:45:00 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-207417167-1487047498-sysbot+gh@w3.org>
upsuper has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-fonts] Should font-synthesis be reset by font shorthand? ==
The spec doesn't mention `font-synthesis` as a subproperty of `font` 
shorthand, but given its name, it probably should be.

Gecko resets `font-synthesis` when setting `font`, while WebKit 
doesn't.

Test code:
```html
<!DOCTYPE html>
<div style="font-synthesis: style; font: 14px sans-serif;"></div>
<script>
  alert(document.querySelector('div').style.fontSynthesis);
</script>
```

cc @nattokirai @litherum 

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/1032 using your GitHub 
account
Received on Tuesday, 14 February 2017 04:45:25 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:29 UTC