W3C home > Mailing lists > Public > www-svg@w3.org > January 2005

Re: sXBL and CSS

From: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Date: Tue, 18 Jan 2005 12:46:05 +0100
Message-ID: <006801c4fd53$4ab930a0$084cb280@epfl.ch>
To: <www-svg@w3.org>


> If I had this document:
>
>   <svg ...>
>     <xbl:xbl>
>       <xbl:definition element="ex:styles">
>         <style type="text/css">
>           circle { fill: red; }
>         </style>
>       </xbl:definition>
>     </xbl:xbl>
>
>     <circle cx="100" cy="100" r="50"/>
>
>     <style type="text/css">
>       circle { fill: blue; }
>     </style>
>
>     <ex:styles/>
>
>     <circle cx="100" cy="300" r="50"/>
>   </svg>
>
> what colours should the two circles be?

Since there is no shadow content in the sXBL definition, restriction 3.11
does not apply. Both styles will be then loaded and, by the cascade rules
for resolving conflicts, the one which is loaded last is the one that
"wins". Since the style that is loaded last is the sXBL instantiated one, my
guess is that both circles will be red.

Rodrigo
Received on Tuesday, 18 January 2005 16:02:35 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:29 GMT