Re: Syntax for Ranges?

On Saturday 29 October 2005 10:18, L. David Baron wrote:
> On Friday 2005-10-28 22:22 -0400, Kelly Miller wrote:
> > I was just sitting there thinking about min-height and max-height,
> > and I was thinking:  why not have a syntax for unit ranges?  Maybe
> > something like this:
> >
> > height: range(18px,30em) - No smaller than 18px, no larger than
> > 30em. height: range(18px) - No smaller than 18px.
> > height: range(,30em) - No larger than 30em.
> >
> > The syntax is the same as the one used in regular expression
> > syntax, but I think it'd work here.  Anyone got any
> > suggestions/ideas?
>
> See http://lists.w3.org/Archives/Public/www-style/1999Jul/0053 for a
> previous similar suggestion.

It is no doubt possible to define 'height' as a shorthand for 
'max-height' and 'min-height', but I don't see the need. In finding the 
optimum of compactness, readability, learnability, memorability, etc., 
I think this shorthand hinders more than it helps.



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

Received on Wednesday, 2 November 2005 12:27:02 UTC