Re: Can we have more maths in calc()?

On Monday 2014-04-07 21:41 -0400, Zack Weinberg wrote:
> Are there any circumstances where  (expr) / <length> risks division by
> zero when the denominator is not syntactically detectable as zero? Not
> (expr) / (expr) where the denominator happens to be type length, but a
> literal <length>.

Use of font-size-dependent units combined with 'font-size: 0'
produces that result, and perhaps some other similar cases.  It's
certainly a more realistic problem with expressions of type length,
though (e.g., dividing by (5em - 60px)).

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Received on Tuesday, 8 April 2014 02:18:07 UTC