W3C home > Mailing lists > Public > www-style@w3.org > December 2011

Re: [css3-lists] scoping and display: list-item

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 7 Dec 2011 08:35:27 -0800
Message-ID: <CAAWBYDAd5z2WainY_t0O-skPquHkAw+RLOTmzSQ50QXpwVtFgQ@mail.gmail.com>
To: Simon Sapin <simon.sapin@kozea.fr>
Cc: www-style@w3.org
On Wed, Dec 7, 2011 at 8:07 AM, Simon Sapin <simon.sapin@kozea.fr> wrote:
> Speaking of scope: elements with "display: list-item" increment the
> list-item counter. Is that with the same scoping rules as counter-increment?
> Namely, if the counter is not in scope at this point, a new counter is
> created with the usual scoping rules.

That functionality is actually implemented *via* those properties,
down in the UA stylesheet.

> Side question: are pseudo-elements (::before, ::after) allowed to have
> "display: list-item" or the counter-* properties? What about ::marker?

Yes to all.

Received on Wednesday, 7 December 2011 16:36:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:08 UTC