- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 08 Apr 2021 22:48:49 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-values-4] inherit() function: like var() for parent value, for any property`, and agreed to the following: * `RESOLVED: adopt an 'inherit' function to values-5` <details><summary>The full IRC log of that discussion</summary> <Rossen_> Topic: [css-values-4] inherit() function: like var() for parent value, for any property<br> <Rossen_> github: https://github.com/w3c/csswg-drafts/issues/2864<br> <dlibby_> leaverou: numerous request to extend var() to arbitrary properties, can't do this generally due to cycles. seems to be a less powerful pattern that may be possible<br> <dlibby_> leaverou: we can use it to get the value from the parent<br> <dlibby_> leaverou: should we do work to pursue this? I volunteer if consensus that it is a good idea<br> <dlibby_> leaverou: I can point to many use cases, in case they are not obvious.<br> <Rossen_> q?<br> <Rossen_> ack hober<br> <dlibby_> emilio: seems implementable, but we want it to work like var() at the token level<br> <dlibby_> emilio: you need to define for each property how it serializes, etc.. it's a lot of work<br> <dlibby_> leaverou: would be equivalent to the token sequence<br> <dlibby_> emilio: but what sequence? font-stretch as an example. you need to get interoperable serialization for all properties<br> <dlibby_> leaverou: don't you need that anyways?<br> <dlibby_> emilio: yes, just pointing out it is a lot of work<br> <dlibby_> Rossen_: this is indiciative of how long it might take to implement<br> <dlibby_> emilio: seems fine to implement<br> <castastrophe> q+<br> <fantasai> [what emilio is saying is that as a prerequisite to this, we need to get interop on serialization of all properties, which is something we don't have yet]<br> <fantasai> [that requires a bunch of spec work, QA work, and implementer follow-up to fix all the inconsistencies]<br> <dlibby_> castastrophe: for container queries, computing ancestors comes down to a 'contract' as things are flagged as cascading 'down'<br> <leaverou_> q?<br> <TabAtkins> q+ TabAtkins<br> <dlibby_> castastrophe: can we use a similar mechanism (!inherited) to indicate such a pattern<br> <Rossen_> ack castastrophe<br> <TabAtkins> ack TabAtkins<br> <dlibby_> emilio: i don't think that is necessary, as long as you inherit with the same property, you already need the complete ancestor style<br> <smfr> q+<br> <dlibby_> TabAtkins: shouldn't need that since there is no circularity<br> <Rossen_> ack smfr<br> <leaverou_> q?<br> <dlibby_> smfr: concerned about impl complexity vs. usefulness. in the example, you could say inherit z-index to a font property<br> <dlibby_> leaverou: there are use cases that you have to use a mixture of properties<br> <dlibby_> emilio: this would be implemented via existing serialization rules, so this doesn't explode, you don't convert between properties, use serialization syntax, then reparse token stream<br> <dlibby_> leaverou: in most cases you'll probably end up with an invalid declaration<br> <dlibby_> Rossen_: hearing consensus on what we want to achieve, but some warning on how long this might take<br> <dlibby_> Rossen_: any other points on the topic?<br> <dlibby_> leaverou: proposed resolution - add an inherit function to values-4 to get the value of parent properties<br> <dlibby_> RESOLVED: adopt an 'inherit' function to values-5<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2864#issuecomment-816280875 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 8 April 2021 22:48:51 UTC