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

Ian Hickson ian at hixie.ch
Sun Apr 26 20:38:43 PDT 2009


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list