- From: Sergey Malkin via GitHub <sysbot+gh@w3.org>
- Date: Wed, 11 Apr 2018 16:52:08 +0000
- To: public-css-archive@w3.org
We can't read mind of designer about which property is more important. Maybe idea was to give font just a bit more weight, but making font narrow or wide is essential to the design. Here is my theory of why original CSS authors ordered font properties this way in font matching rules. When UA chooses fonts among sequence of fonts in font-family property, there is less chance to break layout between user machines if you choose fonts of similar widths rather than of different weight. Then, style has higher priority because changing style has more pronounced stylistic difference than weight. Current WPT tests for css-fonts-4 cover preference of stretch over weight: https://github.com/w3c/web-platform-tests/tree/master/css/css-fonts/matching. Test for font variations also cover matching priority of font properties: https://github.com/w3c/web-platform-tests/blob/master/css/css-fonts/variations/at-font-face-font-matching.html -- GitHub Notification of comment by SergeyMalkin Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2537#issuecomment-380521610 using your GitHub account
Received on Wednesday, 11 April 2018 16:52:12 UTC