Re: [CSS21] Is a replaced element allowed to be a table box?

Le 15/07/2012 17:14, Anton Prowse a écrit :
> So the question is, is there/really/  such a thing as a replaced
> table-cell?  Maybe other implementers could comment.  I got the
> impression that Simon Sapin had implemented this.

As I was reading mention of "replaced table cells" in the spec I was 
under the impression that I was supposed to implement this, but just 
hadn’t yet.

I just checked: on <img style="display: table-cell" src="foo.png"> 
WeasyPrint 0.11 will first create a TableCellBox object, but will later 
throw it away in <img>-specific code and make an InlineReplacedBox. Then 
it will be just as if 'display' had been 'inline': if the box is in a 
table, row group or row, an anonymous table cell will be created. If 
not, there will not be a table at all.

But most of this is accidental, don’t take it as what should happen.

-- 
Simon Sapin

Received on Sunday, 15 July 2012 16:01:40 UTC