W3C home > Mailing lists > Public > www-style@w3.org > September 2015

Re: Styling <input type=text>

From: Manuel Strehl <svg@manuel-strehl.de>
Date: Wed, 30 Sep 2015 16:23:39 +0200
To: www-style@w3.org
Message-ID: <1134218caf66624e786b62114c33072c@xa8.serverdomain.org>
 From a webdev point of view: definitively! Trying to get e.g. border 
shadows in sync when using HTML5 types on <input> is rather cumbersome.

It might be worthwhile to look into the list of -vendor-appearance 
values. So, something like

     :appearance(textfield) {}

comes to mind. (OK, when that changes the -vendor-appearance inside, 
that might be not so wise, but you get the idea.)

--Manuel

Am 30.9.2015 16:06, schrieb Anne van Kesteren:
> For the user agent stylesheet, there's no good way to address <input
> type=text>, since there's many values that make the <input> element
> end up in the Text state.
> 
> The only way seems to be something along the lines of
> 
>   input:not([type=hidden i]):not([type=search i]):not([type=tel i])...
> 
> which gets verbose (enough that I don't want to complete it) and is
> hard to maintain. Is this something we should try to tackle?
> 
> See https://github.com/whatwg/html/pull/212 for context.
Received on Wednesday, 30 September 2015 14:24:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:57 UTC