Re: Text selector [was Re: breaking overflow]

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".

Rob
-- 
"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
53:5-6]

Received on Wednesday, 6 January 2010 19:43:37 UTC