Re: [csswg-drafts] [css-pseudo-4] new generated content pseudo :between/:separator

Something like this could also be used for some cases of list styling:
```css
li {display :inline;}
ul::between { content: ", "; }
ul::after { content: "."; }
:lang(jp) ul::between { content: "、"; }
:lang(jp) ul::after { content: "。"; }
```

You can do that with existing selectors though.

If what you're trying to put separators between is a bunch of buttons or a bunch of links (without a wrapping element), it's true that  `::after` would insert the separator inside of the buttons/links, which is not what you'd want.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2960#issuecomment-408595070 using your GitHub account

Received on Saturday, 28 July 2018 09:31:34 UTC