[Webkit-unassigned] [Bug 26609] Support CSS3 attr() function
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jun 22 10:43:26 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26609
kai at granus.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #31653| |review?
Flag| |
------- Comment #1 from kai at granus.net 2009-06-22 10:43 PDT -------
Created an attachment (id=31653)
--> (https://bugs.webkit.org/attachment.cgi?id=31653&action=view)
A first attempt to implement the CSS3 attr() function
This patch is meant as a first attempt of an implementation. There are sure
many things to change before landing it.
The up to three parameters of CSS3-attr() are fully supported, but attr() can
not yet be used with all properties to which it would apply.
The patch introduces the concept of a "derived" value to CSSPrimitiveValue and
CSSStyleSelector. The derived value is a new CSSPrimitiveValue, which is
created only if the original value is of the newly added sub class
CSSAttrValue. The derived value is then of the type required by the attr()
function, for instance CSSImageValue.
Note that the patch includes namespace support for the attribute name (first
parameter of attr()). For this I had to change CSSGrammar.y. Probably this
wont be the final change, because so far it does not support and empty prefix
(that is, an attribute name of the form "|name").
Please advice how to proceed to get this landed eventually.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list