Re: Box model: min-margin and max-margin, max-padding and min-padding

On Sunday 2004-10-03 12:36 -0700, Andrew Fedoniouk wrote:
> For me, using current CSS Recommendations, is still not obvious: does
> http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes imply DOM
> transformation or not?

I think it's pretty clear that it doesn't since it links to the
definition of anonymous here:
  http://www.w3.org/TR/2004/CR-CSS21-20040225/visuren.html#anonymous
which refers to anonymous boxes.

> What are these 'objects' exactly? Personal opinions and internal details of
> different implementations are not normative. Right?

We should remove the use of the word "elements" and replace it by
"boxes".  That should be added to the issues list.

> I personally would like to know for what extent we are going to *emulate*
> <TABLE> in CSS?
> 
> 1) Current HTML behavior of
> <table>garbage<tr>garbage<td>cell</td>garbage</tr>garbage</table>
> is completely different from what defined in CSS's "anonymous boxes"
> section.

Irrelevant.  That's parsing-level error-handling.

> 2) colspan/rowspan attributes anyone?

That should be in CSS3.

> 3) <table dir=right-to-left> changes *order* of columns.
> (flow:right-to-left !) .

Already supported in CSS2 ('direction' property).

> Here is an example of different understanding of "hidden" DOM
> transformations in different implementations:
> 
> <html><head><style>
>     body > span { color:red; }
>     *:first-child { color:green; }
> </style></head>
> <body>
>   One <span>Two</span> Three
>   <p>Four Five Six</p>
> </body>
> </html>
> 
> Try to load this in Mozilla and Opera to see what I mean.

What in the world does this have to do with hidden DOM transformations?
The span element is the first child element of the body element, so it's
green (two rules match, and declarations in the one with specificity
(0,0,1,0) beat those in the one with specificity (0,0,0,2)).

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >

Received on Sunday, 3 October 2004 20:23:43 UTC