W3C home > Mailing lists > Public > www-style@w3.org > April 2014

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

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 7 Apr 2014 19:17:42 -0700
To: Zack Weinberg <zackw@panix.com>
Cc: www-style list <www-style@w3.org>
Message-ID: <20140408021742.GA9401@crum.dbaron.org>
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)).


𝄞   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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:21 UTC