W3C home > Mailing lists > Public > www-style@w3.org > March 2006

CSS3 draft and ::outside

From: John Beisley <greatred@gmail.com>
Date: Sat, 25 Mar 2006 16:13:15 +0000
Message-ID: <8781a3d50603250813n76b27174he8c6ef8f2622b185@mail.gmail.com>
To: www-style@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:44 GMT