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

On Fri, Feb 24, 2012 at 1:32 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> 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?).

Ah, gotcha.  Yeah, rule application's a bit hard.  Man, poking around
in previously-unspecified areas of the platform is annoying.

~TJ

Received on Friday, 24 February 2012 21:51:03 UTC