W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

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

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Sat, 28 Jul 2018 09:30:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-408595070-1532770258-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Saturday, 28 July 2018 09:31:37 UTC