W3C home > Mailing lists > Public > www-style@w3.org > March 2000

RE: Problem with @page within @media

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Wed, 1 Mar 2000 03:26:16 -0800 (PST)
Message-ID: <20000301112616.14486.qmail@web906.mail.yahoo.com>
To: www-style@w3.org
--- Bill dehOra <Wdehora@cromwellmedia.co.uk> wrote:
> 
> Wrt to pseudo, the ':' literal is part of a pseudo not a delimiter for
> it,
> in the same sense that '@' is part of an at rule. The same applies for
> class
> and elem identifiers as well.

Elem identifiers?

But anyway your statement is slightly misleading - the ':' literal is not
part of the pseudo in the sense that @ is part of an at-rule because :/*
*/class is valid; i.e., there are two tokens, DELIM and IDENT, whereas
@page is one token, so @/* */page is not valid.

Similarly for .class (a DELIM and an IDENT). Not so for ID however, #id is
one token because ID is forced to share the inappropriate HASH token, and
as a result #id is one token, and so #/* */id is not valid. There are
other similar anomalies in the grammar; for example, the definition of the
FUNCTION is AIR {ident}'(', and a complete function is typified by
FUNCTION IDENT DELIM; e.g., attr(value). This means that attr(/* */) is
valid, but attr/* */() is not.

I also find the tokenization of many of the punctuation characters a
little  strange - AIR '(' and '[' are tokenized, but other similar
characters or not. It seems to me that these tokens are superfluous and
potentially confusing, since many similar characters are matched by the
catch-all DELIM (e.g., ':'). I think that either _all_ of the single
character tokens should be given their own token, or none should.

=====
----------------------------------------------------------
From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Received on Wednesday, 1 March 2000 06:21:06 GMT

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