@@ -506,7 +506,7 @@ Note: No change from [[css3-images]].
506
506
507
507
<div class='example'>
508
508
509
- As a somewhat silly example, a <code> <p> </code > element can be reused as a background elsewhere in the document:
509
+ As a somewhat silly example, a <{p} > element can be reused as a background elsewhere in the document:
510
510
511
511
<pre class="lang-html">
512
512
<style>
@@ -546,7 +546,7 @@ Note: No change from [[css3-images]].
546
546
</pre>
547
547
548
548
HTML also defines that a handful of elements,
549
- such as <code> < canvas> </code> , <code> < img> </code> , and <code> < video> </code > ,
549
+ such as <{ canvas}> , <{ img}> , and <{ video} > ,
550
550
provide a paint source.
551
551
This means that CSS can, for example,
552
552
reference a canvas that's being drawn into,
@@ -660,8 +660,7 @@ Paint Sources</h4>
660
660
without having to do layout or rendering,
661
661
and so may be used as images even when they're <a lt='element-not-rendered'>not rendered</a> .
662
662
663
- In HTML, the <code> <img></code> , <code> <video></code> , and <code> <canvas></code> elements provide paint sources
664
- (defined in each element's section in <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/'>HTML5</a> ).
663
+ In HTML, the <{img}> , <{video}> , and <{canvas}> elements provide paint sources.
665
664
666
665
In SVG, any element that provides a <a href='https://www.w3.org/TR/SVG/pservers.html'>paint server</a> provides a paint source.
667
666
<span class='note'> Note: In SVG1.1,
@@ -694,7 +693,7 @@ Using Out-Of-Document Sources: the <code>ElementSources</code> interface</h4>
694
693
695
694
The ''element()'' function normally selects elements within a document,
696
695
but elements that provide a <a>paint source</a> don't necessarily need to be in-document.
697
- For example, an HTML <code> < canvas> </code > element can be created, maintained, and drawn into entirely in script,
696
+ For example, an HTML <{ canvas} > element can be created, maintained, and drawn into entirely in script,
698
697
with no need for it to be inserted into the document directly.
699
698
700
699
All that's needed is a way to refer to the element,
0 commit comments