W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2009

[whatwg] False orthogonal nature :read-only and :disabled in WF2

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 27 Apr 2009 03:38:43 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0904270338120.10370@hixie.dreamhostps.com>
On Thu, 12 Feb 2009, Rikkert Koppes wrote:
>
> Either I am rather confused or there are some misunderstandings still. Some
> observations:
> 
> Ian Hickson wrote:
> > > > Having them be orthogonal is far more useful to authors. For example,
> > > > imagine the following stylesheet:
> > > >       
> And
> > I've made HTML5 say that :read-write doesn't apply to disabled controls.
> > 
> >   
> (1) If :read-write does not apply to disabled controls, :read-only does (since
> it applies to all other html elements - meaning they are mutually exclusive).
> Hence :disabled implies :read-only (not vice versa for the record) and hence
> :disabled and :read-only are not orthogonal.
> 
> The spec now says :read-write does not apply to input elements that do NOT
> have the readonly attribute specified AND that are NOT disabled, or in other
> words (by mutual exclusivity), :read-only applies to input elements that have
> the readonly attribute specified OR are disabled.

Your understanding is correct. Unfortunately, CSS3 UI doesn't support my 
desired orthogonality as I understand it.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 26 April 2009 20:38:43 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:11 UTC