- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Wed, 01 Sep 2010 14:25:20 -0400
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- CC: Lea Verou <leaverou@gmail.com>, www-style@w3.org
On 9/1/10 12:56 PM, Tab Atkins Jr. wrote:
> I like this idea. It shouldn't violate the restrictions we're placing
> on this version of calc() any. An attr() that uses the 'integer' or
> 'number' types can be used anywhere, and one that uses 'length' or one
> of the unit types can be used anywhere a length can go in the grammar.
I must be missing something here. Say I have this rule:
* { width: calc(attr(border) * 10px); }
and this HTML document:
<table border=1"></table>
<div border="1"></div>
What are the computed widths of the div and table, and why?
-Boris
Received on Wednesday, 1 September 2010 18:25:54 UTC