- From: Chris Eppstein <chris@eppsteins.net>
- Date: Thu, 8 Mar 2012 11:38:07 -0800
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- Cc: www-style@w3.org
Received on Thursday, 8 March 2012 19:38:38 UTC
Really doesn't seem that that big of a challenge. Provide a fallback value as a second argument which would default to 0. width: calc(100px / (50% - 100px), 10px) chris On Thu, Mar 8, 2012 at 11:29 AM, Tab Atkins Jr. <jackalmage@gmail.com>wrote: > On Thu, Mar 8, 2012 at 11:21 AM, Chris Eppstein <chris@eppsteins.net> > wrote: > > On Thu, Mar 8, 2012 at 11:13 AM, Tab Atkins Jr. <jackalmage@gmail.com> > > wrote: > >> We don't have this yet; unit algebra means you can run into division by > >> zero that can't be detected until computed or used value time, so it's > too > >> late to treat as a syntax error. > > > > Can you provide an example of this? > > width: calc(100px / (50% - 100px) ) > > If layout ends up with 100% = 200px, this will produce a division by zero. > > ~TJ >
Received on Thursday, 8 March 2012 19:38:38 UTC