CSS3 draft and ::outside

I've been attempting to implement a lot of CSS3 stuff in my
dissertation project, and I have a few questions about some things in
the CSS3 draft (so expect me to ask more questions soon!).

My question is about inheritance and the ::outside pseudo-element. Say
that there exists a simple DOM such as:

<BODY>
<P>Some paragraph text.</P>
</BODY>

And the CSS3 stylesheet applied to this is:

P {
 color: inherit;
}

P::outside {
 color: red;
}

BODY {
 color: black;
}

Would the paragraph text be rendered in red or black? I'm personally
expecting it to be red, although this might not be the intended
inheritance.

Additionally, does this sort of situation apply in similar ways with
::after, ::before? I guess that if anything they would inherit from
their "real" element, such as the above DOM with the following
stylesheet applied:

And the CSS3 stylesheet applied to this is:

P {
 color: green;
}

P::before {
 color: inherit;
 content: "Some text before the paragraph text";
}

BODY {
 color: black;
}

In this case I would expect the content inserted by P::before to be
rendered in green text.

Thanks,

- John

Received on Sunday, 26 March 2006 11:44:07 UTC