You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The ''element-ref()'' function does essentially the same thing as the ''element()'' function - it allows the author to use an element as an image. The difference is in how it references the element - rather than taking a selector, it just takes an identifier, which is mapped to some element by the host language.</p>
247
-
<p>The ''element-ref()'' function takes a single argument, which must be an IDENT. The host language for the document may expose a method of associating elements with identifiers for the purpose of this function; CSS does not define how this occurs. The identifiers for this function exist in a unique namespace and must not overlap with other identifiers used elsewhere in CSS. If an element is associated with the identifier passed to the function, the function represents an image in an identical manner to the ''element()'' function, with the element associated with the identifier in place of the element matched by the selector. If no element is associated with the identifier passed to the function, the function represents a fully transparent image with no intrinsic dimensions. If the element associated with the identifier, or whether an element is associated with the identifier at all, changes, the image represented by the function must change accordingly.</p>
247
+
<p>The ''element-ref()'' function takes a single argument, which must be an IDENT. The host language for the document may expose a method of giving elements a <dfn>specified element-ref() identifier</dfn> associating the element with an identifier; CSS does not define how this occurs. The identifiers for this function exist in a unique namespace and must not overlap with other identifiers used elsewhere in CSS. If an element is associated with the identifier passed to the function, the function represents an image in an identical manner to the ''element()'' function, with the element associated with the identifier in place of the element matched by the selector. If no element is associated with the identifier passed to the function, the function represents a fully transparent image with no intrinsic dimensions. If the element associated with the identifier, or whether an element is associated with the identifier at all, changes, the image represented by the function must change accordingly.</p>
248
248
<p>If the argument passed to ''element-ref()'' isn't an IDENT, it is a syntax error.</p>
0 commit comments