Re: [csswg-drafts] [css-values] Computed value of a negative calc unit that doesn't allow negative lengths.

@dbaron That has the forward-compatibility problems noted by @fantasai in <https://github.com/w3c/csswg-drafts/issues/434#issuecomment-310183908> - if a property initially accepts only computed-value-time units, it would be clamped at computed-value time, but if it later starts accepting used-value-time units, we'd have to move it to clamping at used-value time, which is observably different.

Thus the proposal to clamp at both spots - computed value clamping if possible, used-value clamping otherwise.  That way a `width: calc(-50px)` would clamp "early", at computed-value time, but a `width: calc(10px - 10%)` would clamp "late", at used-value time.

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

Received on Monday, 4 December 2017 20:09:33 UTC