Re: Styling <input type=text>

30.09.2015, 21:07, "Henrik Andersson" <henke@henke37.cjb.net>:
> Marat Tanalin skrev:
>> š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. */
>> ššššš}
>
> Except that wont work here. There is at least one supported type that
> will lead to this behavior.

I'm not sure what you mean, but having a pseudoclass for unsupported attribute value does not make us losing ability to use multiple comma-separated selectors, e.g.:

    INPUT:unsupported-attr-value(type),
    INPUT:not([type]),
    INPUT[type="text"] {
        /* Styles for text fields. */
    }

Received on Wednesday, 30 September 2015 21:11:32 UTC