Re: [css4-ui] ::tooltip

On Fri, Apr 13, 2012 at 10:18 AM, Brad Kemper <brad.kemper@gmail.com> wrote:
> On Apr 13, 2012, at 9:18 AM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>> Because attr() needs to have a specific type, and in that expression
>> the type is "string".  If attr() could return multiple types we can't
>> detect syntax errors with it.
>>
>> Also, null isn't a CSS value. ^_^
>
> OK, but it could just make it invalid if the attribute didn't exist, couldn't it?

It *could*, but that would be annoying in the cases where you *do*
just want the default value if it doesn't exist.

>> (You could, of course, instead do "content: attr(title, none);".  The
>> default value doesn't need to be of the declared type.)
>
> And that is useful?

I don't understand the question.

~TJ

Received on Friday, 13 April 2012 17:21:16 UTC