W3C home > Mailing lists > Public > www-style@w3.org > April 2011

RE: [css3-ui][html5] Form control orientation and styling

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Wed, 13 Apr 2011 18:18:54 +0000
To: Boris Zbarsky <bzbarsky@MIT.EDU>, Tab Atkins Jr. <jackalmage@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E2AC015F2@TK5EX14MBXC113.redmond.corp.microsoft.com>
[Boris Zbarsky:]
> On 4/13/11 1:20 PM, Tab Atkins Jr. wrote:
> > A property in CSS can be altered based on MQ, for example, so you can
> > reactively change the orientation of the slider.
> That's true, but the size could change due to things that MQ can't select
> on (font-size changes, say).  So if we're really trying to detect size
> changes then MQ just gives us an imperfect proxy.

Agreed. The scenario I'm really after is 'style the following vertical slider
controls this way' e.g. as you might want to do in a UA or user stylesheet. 
An orientation property does not help with that. Yet, if the control has
pseudo-elements and CSS properties are physically oriented you need a way
to switch your style. 

In other words I'd like to express something like:

input[type="range"]:horizontal {

input[type="range"]:vertical {

...without making :horizontal or :vertical depend on the width and height properties.
If that makes sense ?

Received on Wednesday, 13 April 2011 18:19:24 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:45 UTC