W3C home > Mailing lists > Public > www-html@w3.org > February 2006

Re: hreflang

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Mon, 06 Feb 2006 20:58:36 +0100
Message-ID: <43E7AA6C.5000506@students.cs.uu.nl>
To: Oskar Welzl <lists@welzl.info>
Cc: www-html@w3.org

Oskar Welzl schreef:
> I still believe that styling links with CSS is the main way of
> reasonably using metainfo like @hreflang; you know, rotating little
> pizzas after links to italian documents ...
>   

:).

> My question ist:
> Am I simply wrong about this? Is there a version of CSS on its way that
> will combine the function of ~= and |= and understand qualifiers before
> XHTML2 will see the light of day?
>   

Good point, I thought |= worked like that, but it doesn’t.

I suppose that a couple of cleverly crafted ^= or *= rules can be used 
to match the languages and qualifiers. In practice it is maybe more 
likely that document authors will use only single language-identifiers 
for @hreflang.

[hreflang="nl"],
[hreflang^="nl-"],
[hreflang^="nl;"],
[hreflang^="nl,"],
[hreflang*=",nl-"],
[hreflang*=",nl;"],
[hreflang*=",nl,"],
[hreflang$=",nl"] {
    background-image: url('dutch_flag.png');
}


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.
Received on Monday, 6 February 2006 20:28:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:05 GMT