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

Re: [css3-images] Referencing <svg> element directly with element()

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 24 Feb 2012 16:32:39 -0500
Message-ID: <4F4801F7.5010707@mit.edu>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style@w3.org
On 2/24/12 4:04 PM, Tab Atkins Jr. wrote:
> Hm, why do you say that?  Inheritance is well-defined even if it's not
> in the document

But rule application is not.

Specifically, if you have a disconnected document fragment, which rules 
should be applying to the elements in it?  Should inline styles be 
applying?  None of that stuff is really defined anywhere.

getComputedStyle sort of makes up something, but it involves applying 
applying rules across documents and whatnot.  It's also not really all 
that workable in the face of dynamic changes.

> Rendering an SVG paint server shouldn't require any information gained
> from being in a displayed document, either.

SVG assumes that styles can be computed in a sane way for all elements.

Other specs don't define such sane ways of computing styles, yet.

Maybe they should....  There are a lot of details to work out, though 
(scoped stylesheets in disconnected fragments; how should those work?).

-Boris
Received on Friday, 24 February 2012 21:33:07 GMT

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