W3C home > Mailing lists > Public > www-style@w3.org > December 2003

[css3] URI selectors

From: Chris Moschini <cmoschini@myrealbox.com>
Date: Mon, 08 Dec 2003 15:01:42 -0500
To: www-style@w3.org
Message-ID: <1070913702.939d9260cmoschini@myrealbox.com>

A newer technique on the Web is to mark the body tag on each page of your site with the root
of your domain - for example:

<body id="www-w3c-org">

This way if a user would prefer your site (and only your site) to be blue on purple, they can
do it with their User Stylesheet.

But, it's more useful as a personal Accessibility fix - the most obvious being font size. If
the fonts on your site are always too small, the user can scale them with:

#www-w3c-org { font-size: 150%; }

Good. Unfortunately the gracious IDs provided to users in this way are generally only on sites
that have taken great care to accomodated the user already. The sites that really need this
kind of personalization available are sites that have made no such consideration.

For this reason, why not offer as part of the CSS3 spec a selector that can differentiate
between URIs? Something like:

uri( "www.w3c.org" ), url( "www.w3.org" ) { font-size: 150%; }

It could be a huge boon to accessibility.

-Chris "SoopahMan" Moschini
Received on Monday, 8 December 2003 15:02:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:10 UTC