[css-forms] Some thoughts

For some time now, I have been thinking about a CSS specification which 
defines exactly what is and what isn't allowed when someone wants to 
style web forms.

This specification would build on the CSS3 Basic User Interface Module 
[1], especially, the 'appearance' property. For every value of that 
property which is related to forms could be specified what properties 
apply and how they would affect the element.

For example, how can one style:

   <input type="checkbox" name="test">

Besides specifying this, the specification needs to introduce some new 
pseudo-elements, which could look like: '::button', '::input'. These 
would be useful for styling this element:

   <input type="file" name="test">

Most user agents render the above element as two "boxes", a button and 
input field. To style both independently, pseuo-elements are needed.

Another model that could be defined is the behavior of the SELECT element.

[1] <http://www.w3.org/TR/2003/WD-css3-ui-20030703/>

  Anne van Kesteren

Received on Friday, 9 April 2004 06:51:14 UTC