Re: [whatwg] [Rendering] zero width attributes on table, th, td should be ignored

On Wed, 2 Jan 2013, L. David Baron wrote:
>
> http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#tables
> says:
> 
>   # The table element's width attribute maps to the dimension
>   # property 'width' on the table element.
> 
>   ...
> 
>   # The td and th elements' width attributes map to the dimension
>   # property 'width' on the element.
> 
> These rules should have an extra condition to say that any zero
> value (be it a zero integer or a zero percentage) is ignored rather
> than mapping to the 'width' property.

They already do: "maps to the dimension property" is defined in terms of 
"rules for parsing dimension values", which never returns a value less 
than 1; the value "0" is treated like an error.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 19 July 2013 23:00:32 UTC