Re: Last Call comments for css3-ui

> 3.1.1 :default
...
> 3.1.2 :valid and :invalid

I think these pseudo-class names are unfortunate, as they suggest
alternative meanings to their specific use with form controls.

For example, *:valid seems to suggest "all valid elements", but in fact it
means elements that represent form controls whose contents are currently
valid. It might be prudent in the long run to avoid such name collisions
by using :form(valid) or some other mechanism.

This seems more relevant given the CSS3 Selectors candidate recommendation
which introduces so many structural pseudo-classes that truly do apply to
the *element* itself, such as :root, :nth-child, :empty, etc.

If a new pseudo-class was introduced to match empty form controls, such as
text boxes with no content, calling it :empty would clash, while calling
it :form(empty) would not, as well as being more descriptive.

(I have raised this point in the past regarding :visited / :link(visited),
but that example is already too entrenched to remove).

Best regards,

Michael Day

-- 
YesLogic Prince prints XML!
http://yeslogic.com

Received on Thursday, 24 July 2003 06:46:35 UTC