- From: WebMechanic via GitHub <sysbot+gh@w3.org>
- Date: Wed, 29 Jan 2020 09:16:36 +0000
- To: public-css-archive@w3.org
coming back to @tabatkins earlier remark: > But grabbing the inherited value of a property via a function or something shouldn't be problematic. Since multiple weights are a variable font thing anyways, I'd then suggest to use a property that already officially deals with it, instead of teaching and old dog new tricks. With regular `var()`s that'd be: ```css font-variation-settings: "wght" calc( var(--normal) + 250); ``` Not sure if this is also animatable (some would certainly want that). I remember a CodePen doing that, but there might've been some JS involved - I don't remember that ;) So if there were a "function or something", maybe sth. like this could get us much further: ```css font-variation-settings: "wght" calc( current() + 250); font-variation-settings: "wght" calc( current(wght) + 42 * 100); ``` I have no opinion onits name, but thing is: this is a **multi value** property like there are many in CSS. The syntax and smartness of this "gimme the current|inherited value" function will be interesting to draft and for implementors to code :) Cheers. -- GitHub Notification of comment by WebMechanic Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2764#issuecomment-579664826 using your GitHub account
Received on Wednesday, 29 January 2020 09:16:37 UTC