W3C home > Mailing lists > Public > www-style@w3.org > May 2012

Re: [css-variables] Cycling between values with variables

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 15 May 2012 07:48:56 +0200
Message-ID: <CAAWBYDAem0bU5g3qHU_D3bes2QfSnDRj8J+CFL4xbSGM7Oj2uw@mail.gmail.com>
To: "Kang-Hao (Kenny) Lu" <kennyluck@csail.mit.edu>
Cc: WWW Style <www-style@w3.org>
On Tue, May 15, 2012 at 5:58 AM, Kang-Hao (Kenny) Lu
<kennyluck@csail.mit.edu> wrote:
> I think it's worth finding out what the the algorithm for coloring
> comments on hacks.mozilla.org blog posts[1] is, but I haven't been able
> to do so.
>
> [1] say,
> http://hacks.mozilla.org/2012/05/getting-snappy-performance-optimisations-in-firefox-13/#comments

It looks pretty simple, actually.  Every comment in tree order
alternates between medium blue and light blue.  Comments from the
author are white, but don't interrupt the coloring.

I'm not sure how to do that without something like a counter, unfortunately.

~TJ
Received on Tuesday, 15 May 2012 05:49:46 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:15 UTC