W3C home > Mailing lists > Public > www-style@w3.org > July 2012

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sun, 15 Jul 2012 18:01:12 +0200
Message-ID: <5002E948.9090402@kozea.fr>
To: Anton Prowse <prowse@moonhenge.net>
CC: www-style@w3.org, Gérard Talbot <www-style@gtalbot.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:56 GMT