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

[css3-values] Implied types in attr()

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 10 Oct 2011 14:58:50 -0700
Message-ID: <CAAWBYDDasgHLxCjTk0gC-Qy_kmrt+Q_DqcuaukEB58d7=Dd8Pg@mail.gmail.com>
To: www-style list <www-style@w3.org>
Right now, the attr() section has an issue about implying the type of
attr() expressions when the property it's used in only accepts a
single type:

# Ideally, it shouldn't be necessary to specify
# the type if it is obvious. For example, this
# should be valid: ‘background-image: attr(href);’.
# This could be described as: "If the property only
# accepts one type of value (aside from ‘inherit’
# and ‘initial’), that type is implied".

This seems technically unworkable, as it would prevent us from ever
expanding such properties to accept multiple types of values in the
future without potentially breaking attr() usage in the wild.

We suggest just dropping the issue.  Any objections?

~TJ & Fantasai
Received on Monday, 10 October 2011 21:59:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:05 UTC