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

Re: Styling <input type=text>

From: Marat Tanalin <mtanalin@yandex.ru>
Date: Wed, 30 Sep 2015 18:15:15 +0300
To: Anne van Kesteren <annevk@annevk.nl>, "www-style@w3.org" <www-style@w3.org>
Cc: Domenic Denicola <d@domenic.me>
Message-Id: <419551443626115@web5m.yandex.ru>
30.09.2015, 17:09, "Anne van Kesteren" <annevk@annevk.nl>:
> 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])...

To match elements with unsupported values of an attribute, we could introduce a functional pseudoclass like `:unsupported-attr-value()` with an attribute name as argument. For example:

    INPUT:unsupported-attr-value(type) {
        /* Styles for INPUTs that have unsupported value of `type` attribute. */
    }
Received on Wednesday, 30 September 2015 15:15:48 UTC

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