Dear @w3c, @w3cdevs, @w3ctag, @W3CAB, @timberners_lee, @TechCrunch, @Oovrix, @thenextweb, @ChromiumDev, @mozilla, @MozDevNet here's what I think should be added to #CSS functions: get(property) - return the current value of property either applied or inherited.
1
Also add: parent(property) - return the value of a certain property of the immediate parent.
These two functions will ease dimension management and a whole lot of other routine rules.
It will make UI Design easier and faster. #frontenddev #uidesign #CSS #webDev
1
See github.com/w3c/csswg-drafts/… for a @csswg discussion on obtaining a value from the parent - in general, referring to value of properties from other elements run into the risk of infinite loops, which using CSS variables helps to circumvent
Mar 17, 2022 · 10:52 AM UTC

