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

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 UTC