Re: [css-houdini-drafts] [css-properties-values-api] var() references to <length> type properties with font-relative lengths

Oh dang, this is a difficult question.  I didn't anticipate this 
adding a new cyclic dependency.  (Good thing `currentcolor` is 
converted at used-value time, or else it'd cause the same problem with
 `color`.)

We'll need to make an arbitrary decision here.  I think my preferred 
solution is to lean on normal variable dependency-cycle resolution - 
custom properties containing a font-relative length (this requires 
them to be typed, with a `<length>` member) add an edge to the 
dependency graph marking them as depending on `font-size`, so in your 
example, the `var()` reference would be treated as invalid.

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

Received on Friday, 30 September 2016 19:22:23 UTC