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

Re: Text selector [was Re: breaking overflow]

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 7 Jan 2010 08:43:10 +1300
Message-ID: <11e306601001061143q4fa527e7j84c15ff676cc3404@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Brad Kemper <brad.kemper@gmail.com>, Bobby Jack <bobbykjack@yahoo.co.uk>, Boris Zbarsky <bzbarsky@mit.edu>, www-style list <www-style@w3.org>
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".

"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
Received on Wednesday, 6 January 2010 19:43:37 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:31 UTC