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

Re: [css3] URI selectors

From: Afternoon <afternoon@uk2.net>
Date: Tue, 9 Dec 2003 03:52:58 +0000
Message-Id: <2DBD0E3E-29FB-11D8-A60D-000A957E8988@uk2.net>
To: www-style@w3.org


On 9 Dec 2003, at 3:18, Ernest Cline wrote:

> I'll grant that being able to do so would be nice in most cases,
> but any such syntax should require it to be explicitly stated somehow.
> perhaps it would be possible to borrow the prefixes from
> the attribute selectors to enable that sort of specificity somehow.
> If only domains were left to right just as the rest of a URL was,
> it would be very easy.

Yes, using the ^= etc operators would be a good solution, IMHO.

Maybe a syntax kind of like media queries:

	@scope (domain$=yahoo.com) and (path^=/news) {
		/* http://www.yahoo.com/news/article.html and so on match */
	}

Alternatively:

	@scope domain$="yahoo.com" and path^="/news", domain="news.yahoo.com" {
		/* etc... */
	}

Another:

	@scope url^="http://www.amazon." {
		/* covers all international Amazon sites */
	}

Ben


(q)	Ben Godfrey?
(a)	Web Developer and Designer
	See http://aftnn.org/ for details
Received on Monday, 8 December 2003 22:57:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:25 GMT