[css3] URI selectors

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
http://hiveminds.info/
http://soopahman.com/

Received on Monday, 8 December 2003 15:02:28 UTC