Re: [csswg-drafts] Dynamic values support?

Unfortunately, this sort of thing isn't possible in general. Lots of properties depend on each other, both within a single element and *especially* between elements, with the between-element dependencies often being quite complex. Introducing *more* dependencies into this graph can easily make the entire thing intractable; even when there is a unique solution (rather than zero or multiple possible solutions), it's often not obtainable thru the efficient layout algorithms we use today, instead requiring a more generic constraint-satisfying search algorithm, which can run into exponential time blow-ups.

The JS you write is less of a performance hit than what would happen if we recast the entire style system to handle this sort of thing. ^_^

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2965#issuecomment-409654045 using your GitHub account

Received on Wednesday, 1 August 2018 17:23:20 UTC