W3C home > Mailing lists > Public > www-style@w3.org > October 2005

CSS: OS metrics units, need some advice

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sun, 16 Oct 2005 11:56:10 -0700
Message-ID: <004001c5d283$460245f0$3201a8c0@Terra>
To: <www-style@w3.org>

I am trying to build a system of input widgets for HTML based solely
on DOM/CSS primitives in HTMLayout engine.

For rendering OS native shapes for inputs I am using special
URL schema - url(theme:button-normal), for example <INPUT type="button"> 
looks like:

/* text button */
input[type="button"], button
 padding:0.5em 1em;
 white-space: nowrap;
input[type="button"]:hover, button:hover
input[type="button"]:hover:active, button:hover:active
input[type="button"]:disabled, button:disabled

Here is <select> in various incarnations:

So far so good but the only one question remains:

==> How to define in CSS OS specific metrics?

For example I need to define somehow width of "dropdown button"
in inline dropdown <select>.

Now I am using special function metrics

select[type="select-dropdown"] > button
   width:metrics( width, theme:combobox-button);
   height: 100%;

More generic question:

==> do we need in CSS os-specific metrics or/and shapes at all?

Speaking about styling input elements - answer is definitely yes. Active 
form elements
need to meet user's expectations in most cases.

Andrew Fedoniouk.
Received on Sunday, 16 October 2005 18:56:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:21 UTC