Skip to content

Commit f7901d1

Browse files
committed
Added "specified element-ref() identifier" as an explicit hook for HTML to refer to.
1 parent 426871c commit f7901d1

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

css3-images/Overview.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -483,19 +483,21 @@ <h4 class=no-toc id=the-element-ref-function><span class=secno>4.3.2.
483483

484484
<p>The &lsquo;<code class=css>element-ref()</code>&rsquo; function takes
485485
a single argument, which must be an IDENT. The host language for the
486-
document may expose a method of associating elements with identifiers
487-
for the purpose of this function; CSS does not define how this occurs.
488-
The identifiers for this function exist in a unique namespace and must
489-
not overlap with other identifiers used elsewhere in CSS. If an element
490-
is associated with the identifier passed to the function, the function
491-
represents an image in an identical manner to the &lsquo;<code
492-
class=css>element()</code>&rsquo; function, with the element associated
493-
with the identifier in place of the element matched by the selector. If
494-
no element is associated with the identifier passed to the function,
495-
the function represents a fully transparent image with no intrinsic
496-
dimensions. If the element associated with the identifier, or whether
497-
an element is associated with the identifier at all, changes, the image
498-
represented by the function must change accordingly.</p>
486+
document may expose a method of giving elements a <dfn
487+
id=specified-element-ref-identifier>specified element-ref()
488+
identifier</dfn> associating the element with an identifier; CSS does
489+
not define how this occurs. The identifiers for this function exist in
490+
a unique namespace and must not overlap with other identifiers used
491+
elsewhere in CSS. If an element is associated with the identifier
492+
passed to the function, the function represents an image in an
493+
identical manner to the &lsquo;<code class=css>element()</code>&rsquo;
494+
function, with the element associated with the identifier in place of
495+
the element matched by the selector. If no element is associated with
496+
the identifier passed to the function, the function represents a fully
497+
transparent image with no intrinsic dimensions. If the element
498+
associated with the identifier, or whether an element is associated
499+
with the identifier at all, changes, the image represented by the
500+
function must change accordingly.</p>
499501

500502
<p>If the argument passed to &lsquo;<code
501503
class=css>element-ref()</code>&rsquo; isn't an IDENT, it is a syntax

css3-images/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ <h4 class=no-toc>The ''element()'' function</h4>
244244
<div>
245245
<h4 class=no-toc>The ''element-ref()'' function</h4>
246246
<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>
248248
<p>If the argument passed to ''element-ref()'' isn't an IDENT, it is a syntax error.</p>
249249
<div class=example>
250250
TODO: Create html example using canvas

0 commit comments

Comments
 (0)