W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] [WF2] Readonly and default pseudoclass matching

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Wed, 27 Jul 2005 12:11:15 +0200
Message-ID: <20050727121115.5bs0skd7nz9q4g88@webmail.annevankesteren.nl>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC