[csswg-drafts] [css-lists] Clarify whether ::before and ::after pseudo-elements can be list-items. (#3766)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-lists] Clarify whether ::before and ::after pseudo-elements can be list-items. ==
The following renders differently across browsers:

```html
<!doctype html>
<style>
  li::before, li::after { content: "Before"; display: list-item; }
  li::after { content: "After"; }
</style>
<ol>
  <li>Foo
```

List item is defined in https://drafts.csswg.org/css-lists/#list-item / https://drafts.csswg.org/css-lists/#declaring-a-list-item, but it doesn't clarify if ::before or ::after are supposed to increment the list item counter.

cc @MatsPalmgren @fantasai @tabatkins 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3766 using your GitHub account

Received on Tuesday, 26 March 2019 17:47:42 UTC