[whatwg] [Rendering] zero width attributes on table, th, td should be ignored
Ian Hickson
ian at hixie.ch
Fri Jul 19 16:00:05 PDT 2013
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. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list