Skip to content

Commit 371ebb5

Browse files
committed
Added explanatory note to element() that the layout mustn't change if the element is regenerated for display.
Changed a "who's" to "whose".
1 parent f0bfb7d commit 371ebb5

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

css3-images/Overview.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<h1>CSS Image Values and Replaced Content Module Level 3</h1>
1717

18-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 26 April 2011</h2>
18+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 2 May 2011</h2>
1919

2020
<dl>
2121
<dt>Latest Version:
@@ -492,7 +492,7 @@ <h3 id=element-reference><span class=secno>4.3. </span> Using Elements as
492492
<p>If the argument to the &lsquo;<code class=css>element()</code>&rsquo;
493493
function is an ID selector, the function references the element matched by
494494
the selector. If it's an identifier, the function references the element
495-
who's <dfn id=css-element-reference-identifier>CSS element reference
495+
whose <dfn id=css-element-reference-identifier>CSS element reference
496496
identifier</dfn> is the given identifier. (CSS does not define how an
497497
element acquires a <a href="#css-element-reference-identifier"><i>CSS
498498
element reference identifier</i></a>; that is determined by the host
@@ -525,6 +525,14 @@ <h3 id=element-reference><span class=secno>4.3. </span> Using Elements as
525525
<p>If the argument passed to &lsquo;<code class=css>element()</code>&rsquo;
526526
isn't an ID selector or an ident, it is a syntax error.
527527

528+
<p>Implementations may either re-use existing bitmap data generated for the
529+
referenced element or regenerate the display of the element to maximize
530+
quality at the image's size (for example, if the implementation detects
531+
that the referenced element is an SVG fragment); in the latter case, the
532+
layout of the referenced element in the image must not be changed by the
533+
regeneration process. That is, the image must look identical to the
534+
referenced element, modulo rasterization quality.
535+
528536
<div class=example> TODO: copy an example from the MozHacks article</div>
529537
<!-- ====================================================================== -->
530538

css3-images/Overview.src.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ <h3 id='element-reference'>
281281

282282
<p>If the argument to the ''element()'' function is an ID selector, the
283283
function references the element matched by the selector. If it's an identifier,
284-
the function references the element who's <dfn>CSS element reference identifier</dfn>
284+
the function references the element whose <dfn>CSS element reference identifier</dfn>
285285
is the given identifier. (CSS does not define how an element acquires a
286286
<i>CSS element reference identifier</i>; that is determined by the host language.)
287287
If no element in the document matches the selector, or no element has the
@@ -309,6 +309,14 @@ <h3 id='element-reference'>
309309
<p>If the argument passed to ''element()'' isn't an ID selector or an ident,
310310
it is a syntax error.</p>
311311

312+
<p>Implementations may either re-use existing bitmap data generated for the
313+
referenced element or regenerate the display of the element to maximize quality
314+
at the image's size (for example, if the implementation detects that the referenced
315+
element is an SVG fragment); in the latter case, the layout of the referenced
316+
element in the image must not be changed by the regeneration process. That is,
317+
the image must look identical to the referenced element, modulo rasterization
318+
quality.</p>
319+
312320
<div class=example>
313321
TODO: copy an example from the MozHacks article
314322
</div>

0 commit comments

Comments
 (0)