Re: display:none and mixed SVG and HTML

On Thu, Feb 2, 2012 at 7:24 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 2/2/12 10:02 AM, Tab Atkins Jr. wrote:
>>
>> The other alternative that's still CSS friendly is to define some
>> property that makes elements ignore display:none somehow and continue
>> to generate boxes and have rendering effects.  This property would be
>> set appropriately on svg|* in the UA stylesheet.
>
> Except would we really want to set it on root <svg> in an HTML document?
>
> And we wouldn't want to allow pages to set it on arbitrary content, I
> suspect...
>
> But apart from that, this sounds pretty equivalent to Brian's proposal.
>  Hence that proposal.

Sure, the root SVG doesn't need it.  Make the selector "svg svg|*", then.

I see no reason not to allow it on arbitrary content.  It would be
useful.  That's the whole reason I proposed it as a property.

~TJ

Received on Friday, 3 February 2012 15:29:54 UTC