RE: min-width and max-width on <table>

Hi Boris,

Thanks for the feedback!

>> The CSS 2.1 spec states that min-width and max-width are undefined on
>> tables.

> Note that the same is true for 'width' except for fixed layout mode...

That's a good point to note. Looking at it again, the spec gives suggested methods to compute it but does not impose requirements.

>> What do you all think? Does implementing min-width and max-width on the
>> table tag in WebKit sound reasonable?

> It sounds reasonable; you just can't rely on the spec to define how it
> should behave, because no one really has that figured out yet.  It's
> _possible_ that Presto and Gecko are compatible here, of course.  I
> wouldn't bet on it.

That makes sense. From my preliminary tests, Presto and Gecko have been compatible, but I'll try some more complex cases to uncover any differences.

- Max
________________________________________
From: Boris Zbarsky [bzbarsky@MIT.EDU]
Sent: Monday, January 09, 2012 9:43 AM
To: www-style@w3.org
Subject: Re: min-width and max-width on <table>

On 1/6/12 6:44 PM, Max Vujovic wrote:
> The CSS 2.1 spec states that min-width and max-width are undefined on
> tables.

Note that the same is true for 'width' except for fixed layout mode...

> What do you all think? Does implementing min-width and max-width on the
> table tag in WebKit sound reasonable?

It sounds reasonable; you just can't rely on the spec to define how it
should behave, because no one really has that figured out yet.  It's
_possible_ that Presto and Gecko are compatible here, of course.  I
wouldn't bet on it.

-Boris

Received on Wednesday, 11 January 2012 22:21:17 UTC