Re: Styling <input type=text>

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