- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Fri, 04 Nov 2011 16:57:04 -0700
- To: www-style@w3.org
On 10/18/2011 02:08 PM, Kang-Hao (Kenny) Lu wrote: > I found an edge case where, I believe, the spec doesn't match > implementations. Consider: > > <div style="display: table-row; white-space:pre;"> <span class="display: > table-row;">A</span> </div> > > (Notice the beginning and the trailing spaces inside<div>. See also > online version[1]) > > rule 1.3 > > # If a child C of a tabular container P is an anonymous inline box that contains only white space, > # and its immediately preceding and following siblings, if any, are proper table descendants of P and are > # either 'table-caption' or internal table boxes, then it is treated as if it had 'display: none'. A box D is a > # proper table descendant of A if D can be a descendant of A without causing the generation of any > # intervening 'table' or 'inline-table' boxes. > > doesn't apply here because <span> is not a proper descendant of<div>. > IE 9, Gecko nightly and Safari (but not Opera) do display the beginning > and trailing space and don't match the spec. This applies to nested > 'table-row-group' as well. If they do display the beginning and trailing spaces, then they're matching the spec, because a table row is not a proper table descendant of a table row. Right? Not sure what I'm missing here... ~fantasai
Received on Friday, 4 November 2011 23:57:50 UTC