W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2016

[csswg-drafts] [css-fonts-4] font-feature-settings don’t cascade

From: Nick Sherman via GitHub <sysbot+gh@w3.org>
Date: Thu, 29 Sep 2016 19:21:14 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-180138508-1475176873-sysbot+gh@w3.org>
nicksherman has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-fonts-4] font-feature-settings don’t cascade ==
Currently, font-feature-settings cancel each other out, making it 
impossible to apply them with abstract logic.

For example, say I want to achieve the following:
- Every `div` uses stylistic set 1.
- Every `p` uses stylistic set 2.
- Every `p` inside a `div` uses both stylistic sets 1 and 2.

Currently, this requires some repetition:

`div { font-feature-settings: "ss01";}`
`p { font-feature-settings: "ss02";}`
`div p { font-feature-settings: "ss01", "ss02";}`

Ideally – keeping in the cascading spirit of CSS – 
font-feature-settings could be inherited and combined, avoiding 
redundancy while allowing more logical abstraction. Like so:

`div { font-feature-settings: "ss01";}`
`p { font-feature-settings: "ss02";}`



Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/552 using your GitHub 
account
Received on Thursday, 29 September 2016 19:21:22 UTC

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