W3C home > Mailing lists > Public > www-style@w3.org > November 2011

[css3-gcpm] No need to call out attr() in bookmark-label and bookmark-target

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 1 Nov 2011 17:36:42 -0700
Message-ID: <CAAWBYDD88stNb7WSxv7gMSSyu_aTz6E8w9sfjFkX2EB15M5wyQ@mail.gmail.com>
To: www-style list <www-style@w3.org>
In the definitions for 'bookmark-label' and 'bookmark-target', the
property definition line explicitly talks about the attr() function.
There's no need to do so - attr() resolves to a particular type based
on its type argument.  So bookmark-label, for example, only needs to
say that it accepts <string>, and then any use of "attr(foo as
string)" or "attr(foo)" will be valid, but "attr(foo as color)" won't
be.  A similar consideration applies for bookmark-target and the <url>
type.

~TJ
Received on Wednesday, 2 November 2011 00:44:19 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:06 UTC