W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Re: Text selector [was Re: breaking overflow]

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 6 Jan 2010 19:10:40 -0800
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Bobby Jack <bobbykjack@yahoo.co.uk>, Boris Zbarsky <bzbarsky@mit.edu>, www-style list <www-style@w3.org>
Message-Id: <FC922927-9F6E-42E1-917A-64E2621BFB1E@gmail.com>
To: robert@ocallahan.org

On Jan 6, 2010, at 11:43 AM, Robert O'Callahan wrote:

> On Thu, Jan 7, 2010 at 5:39 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> >>> Here is a way to use a mono-spaced font for numbers:
> >>>
> >>> p::text("\d+") { font-family: "Courier New", Courier, monospace; }
> This one is indeed a pure styling issue.  It could perhaps be
> addressed another way, though, by having something targetting
> number-styling directly, either as a specialized selector or as a
> number-style property or similar.
> You could do this with proposed extensions to font-variant, and a suitable font, using "font-variant-numeric: tabular-nums".

Can it also make those same numbers green, except for the ones with a minus sign in front of them, which would be red?

Received on Thursday, 7 January 2010 03:11:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:42 UTC