- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 24 Apr 2013 11:23:35 -0700
- To: "Sam L'ecuyer" <sam@cateches.is>
- Cc: www-style list <www-style@w3.org>
(Please don't top-post your replies, as it makes it hard to follow threads. Please see our mailing-list etiquette guide: <http://wiki.csswg.org/tools/www-style>.) On Wed, Apr 24, 2013 at 11:19 AM, <sam@cateches.is> wrote: > What about my other suggestion, where we nest pseudo-elements? > >> .headline[data-content-level="premium"]::after(1) /* Icon */ >> .headline[data-content-level="premium"]::after(2)::after /* Text */ >> .headline[data-content-type="video"] ::after(2) /* Icon */ >> .headline[data-content-type="video"] ::after(2)::after /* Text */ > > That way, we'd be able to later define > > .headline[data-content-level="premium"]::after(2)::after(2) > > as perhaps another icon or something without having to shift all of the ordinals over by 1. I'm totally fine with nested pseudo-elements. Note, though, that this *does* nest them - they don't end up next to each other. ~TJ
Received on Wednesday, 24 April 2013 18:24:23 UTC