W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: foo {content:title} - a proposal

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Wed, 13 Mar 2013 10:42:49 +0000
Message-ID: <CA+ri+Vn4YnFdLWBeMA-z-cUS439VjxEv1i9fGJ4fhxxG1KZxpA@mail.gmail.com>
To: www-style@w3.org, wai-xtech@w3.org
Cc: Leif Halvard Silli <xn--mlform-iua.no@xn--mlform-iua.no.no>
Leif wrote:


> Motivation: Since the <label> example above isnít keyboard accessible
> today, Steve is proposing to change the HTML5 spec.[1]
>
> [1] http://lists.w3.org/Archives/Public/public-html/2013Mar/0084


Please note:

I am only proposing a change to author advice/requirements to match
current, foreseeable future and historical user agent implementation
realities.



with regards

SteveF <http://www.paciellogroup.com/resources/wat-ie-about.html>
--
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>
 <http://www.paciellogroup.com/resources/wat-ie-about.html>


On 13 March 2013 05:55, Leif Halvard Silli <
xn--mlform-iua.no@xn--mlform-iua.no.no> wrote:

> Dear CSS Working Group,  (with CC to wai-xtech@w3.org)
>
> According to HTML5, the title attribute in the following <label>
> element example, applies to each of <label>ís child elements as well:
>
>   <label title="Advisory text.">
>      <input type="text" />
>      <span></span>
>   </label>
>
> Thus, imagine that, in order to display the title 'inside' the <input>
> element, one could do this:
>
>     input:focus::after { content:title; }
>
> Or, more realistically (given all the problems with generated content
> for void elements), that we could render the title inside the <span>
> element, when <input> has focus:
>
>     input:focus + span::before { content:title; }
>
> Result, from CSS consumerís point of view:
>
>   <label title="Advisory text.">
>      <input type="text" />
>      <span><::before>Advisory text</::before></span>
>   </labebl>
>
> Since all browsers have a method for knowing what each elementís title
> is, perhaps this proposal isnít so off?
>
> Motivation: Since the <label> example above isnít keyboard accessible
> today, Steve is proposing to change the HTML5 spec.[1]
>
> [1] http://lists.w3.org/Archives/Public/public-html/2013Mar/0084
> --
> leif halvard silli
Received on Wednesday, 13 March 2013 10:44:01 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:06 GMT