- From: Bert Bos <Bert.Bos@sophia.inria.fr>
- Date: Fri, 18 Dec 1998 13:33:16 +0100 (MET)
- To: Philipp Hoschka <Philipp.Hoschka@sophia.inria.fr>
- Cc: chris@w3.org, smil-editors@w3.org
Hello Philipp,
> I guess the message I pointed you to is a bit confused, since
> it doesn't give an exmaple where there's actually a problem.
>
> Here is one, using CSS syntax:
>
> > <smil>
> > <head>
> > <style>
> > [region="c1"] { position: absolute; top: 5px; left: 5px }
> > [region="c2"] { position: absolute; z-index: 6; top: 5px; left: 5px }
> > </style>
> > </head>
> > <body>
> > <img region="c1" ... />
> > <anchor z-index="7" coords="0,0,0,0" />
> > </img>
> > <img region="c2" src="img.gif" />
> > </body>
> > </smil>
>
> > _________________ global context local context
> > / /
> > /________________/ anchor 7 none ?
> > _________________
> > / /
> > /________________/ image "c2" 6 none ?
> > _________________
> > / /
> > /________________/ image "c1" auto none ?
Indeed. The absence of a z-index for "c1" means that the anchor is not
positioned relative to c1, but to some ancestor of c1...
[...]
> So the solution/answer to the request from SYMM would be:
>
> "Just define a different default value than CSS2 (i.e. 0 instead of audio).
> Btw, you're already doing this. Then you can add a local z-index attribute
> to the anchor element
> You would have to add an additional rule to your 'default stylesheet',
> namely
>
> * {z-index:0}
>
> and while you're at it, also add the following missing rules
>
> * {top:0}
> * {left:0}
>
> "
That indeed seems to solve the problem.
>
> Do you have a way to make this an official response of the WG
> to this requirement raised in the Note ?
I'll suggest it.
>
> Am i right in assuming that this would not make rendering a SMIL
> document with a CSS2 based renderer more difficult ?
I don't see why it should.
Bert
--
Bert Bos ( W 3 C ) http://www.w3.org/
http://www.w3.org/people/bos/ W3C/INRIA
bert@w3.org 2004 Rt des Lucioles / BP 93
+33 (0)4 92 38 76 92 06902 Sophia Antipolis Cedex, France
Received on Friday, 18 December 1998 07:33:25 UTC