[whatwg] [WF2] Readonly and default pseudoclass matching

Quoting Matthew Raymond <mattraymond at earthlink.net>:
>>>   That's just it. It's invalid in WF2 to use |readonly| on radio
>>> buttons and checkboxes.
>>
>> Excuse me?
>>
>> <html>
>> <style>
>>    input[type="checkbox"] { width: 100px; }
>>    input[type="checkbox"]:read-only { width: 200px; }
>> </style>
>> <input type="checkbox" disabled="disabled">
>> </html>
>>
>> Now, what's invalid here?  What's the width of the checkbox?
>
>   The width of the checkbox is 100 pixels. You should have used the
> :disabled pseudo-class from CSS3-UI:
>
> | input[type="checkbox"]:disabled { width: 200px; }

Boris his point is that if you can not edit it it should match :read-only. So
anything that matches :disabled will match :disabled:read-only but not the
other way around.

However, taking <https://bugzilla.mozilla.org/show_bug.cgi?id=271720#c33> into
account it might be that more pseudo-classes will eventually come up. 
All these
things should be clarified though imho and if possible fast.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>

Received on Wednesday, 27 July 2005 03:11:15 UTC