Re: [w3ctag/design-reviews] [CSS-Values-4] FYI review of Allow infinity, -infinity and NaN in CSS calc() (Issue #708)

@LeaVerou We've talked about this in CSS calls already (or in the issue tracker, I don't remember).

Yes, treating it as infinity is just an arbitrary fallback that's likely to produce something obviously wrong, so the author will hopefully realize it. It's similar to invalid colors turning into transparent black.

I didn't go for IACVT because that's a *big* stick and only necessary if we have no idea what the value's type is. For a math function, like a color function, that's not the case, so we can emit a slightly more relevant error value. initial/inherit can mask the error more easily.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/708#issuecomment-1033019915
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/708/1033019915@github.com>

Received on Tuesday, 8 February 2022 20:14:25 UTC