W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] Suggestion: New "input-redirect" CSS property.

From: Matthew Thomas <mpt@myrealbox.com>
Date: Sat, 28 Aug 2004 17:23:22 +1200
Message-ID: <611BC864-F8B2-11D8-8A8C-000A95AD3972@myrealbox.com>
On 27 Aug, 2004, at 3:34 PM, Sander wrote:
> ...
> I'm happy enough with the current proposal, but in the past I have 
> purposefully used label to take benefit of the focus transfer (though 
> it was also the semantically right thing to do). Specifically, I had 
> to deal with a design (which was a given - I had no power to change 
> it) with a "subscribe" input (email) with a header/label sitting 
> directly underneath a column of navigational links. This header and 
> the navigational links were styled nearly identical. The navigational 
> links
> were of course meant to be clicked - but the header for the 
> subscription box wasn't? So it became a label. It still sucks, as the 
> visibility of the cursor isn't very high,

So this isn't just a bad design, but a design you knew was bad 
beforehand, one which could have been fixed by a single line of CSS 
(and/or a single-line onclick handler).

>> I don't see why. The reason to use <label> has nothing to do with 
>> focus passing, it has to do with semantic markup, aiding 
>> accessibility tools, and so forth.
> Focus passing is probably the _one_ 'reason' which has any effect at 
> all to convince the many clueless authors out there to start using 
> labels.

That's why, as I said earlier, UAs should style <label> with the same 
typeface as native UI labels by default. That would be more obviously 
label-like than non-native focus behavior.

Matthew Thomas
Received on Friday, 27 August 2004 22:23:22 UTC

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