|
16 | 16 |
|
17 | 17 | <h1>CSS Image Values and Replaced Content Module Level 3</h1> |
18 | 18 |
|
19 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 27 February |
| 19 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 February |
20 | 20 | 2012</h2> |
21 | 21 |
|
22 | 22 | <dl> |
23 | 23 | <dt>This Version: |
24 | 24 |
|
25 | 25 | <dd><a |
26 | 26 | href="http://dev.w3.org/csswg/css3-images/">http://dev.w3.org/csswg/css3-images/</a> |
27 | | - <!-- <dd><a href="http://www.w3.org/TR/2012/ED-css3-images-20120227/">http://www.w3.org/TR/2012/WD-css3-images-20120227/</a>--> |
| 27 | + <!-- <dd><a href="http://www.w3.org/TR/2012/ED-css3-images-20120228/">http://www.w3.org/TR/2012/WD-css3-images-20120228/</a>--> |
28 | 28 |
|
29 | 29 |
|
30 | 30 | <dt>Latest Version: |
@@ -722,16 +722,6 @@ <h3 id=element-reference><span class=secno>3.3. </span> Using Elements as |
722 | 722 | The host language defines the dimensions and appearance of paint |
723 | 723 | sources.</p> |
724 | 724 |
|
725 | | - <p>If any properties on the element would inherit their value from the |
726 | | - element's parent, they must instead be set to their initial value.</p> |
727 | | - |
728 | | - <p class=note>Note: even if the property that caused the element to not |
729 | | - be rendered was inherited, and switching off that inheritance would |
730 | | - cause the element to be rendered again, by this point we're not relying |
731 | | - on the rendered appearance of the element, but rather on the paint |
732 | | - source it provides, which is layout-independent. Thus, there is no |
733 | | - circular dependency created.</p> |
734 | | - |
735 | 725 | <div class=example> |
736 | 726 | <p>For example, the ‘<code class=css>element()</code>’ |
737 | 727 | function can reference an SVG <pattern> element in an HTML document:</p> |
@@ -905,6 +895,26 @@ <h4 class=no-num id=paint-sources> Paint Sources</h4> |
905 | 895 | are sized equivalently to the CSS ‘<code class=css>px</code>’ |
906 | 896 | unit. |
907 | 897 | </dl> |
| 898 | + |
| 899 | + <p>Because paint sources have an intrinsic appearance, it's not necessary |
| 900 | + for the element providing them to be in a document - for example, one can |
| 901 | + simply create an element with JavaScript and directly assign it to the |
| 902 | + CSSElementMap in HTML. However, some paint sources (such as an SVG |
| 903 | + <code><pattern></code>) depend on style information for their |
| 904 | + appearance, and it's currently largely undefined how styling information |
| 905 | + is assigned to an element fragment that's not part of a document. (For |
| 906 | + example, does the fragment receive styles from the active document? What |
| 907 | + if it has its own <code><style></code> or <code><link |
| 908 | + rel=stylesheet></code> in it?) This specification explicitly does not |
| 909 | + define how such a fragment is styled; it is expected that CSS will define |
| 910 | + it in sufficient detail in the future. |
| 911 | + |
| 912 | + <p>For now, it is recommended that such fragments be inserted into a |
| 913 | + document before being referenced. For example, a <code><pattern></code> |
| 914 | + element may be placed into a ‘<code |
| 915 | + class=css>display:none</code>’ <code><svg></code> element's |
| 916 | + <code><defs></code> element within a document; this has no rendering or |
| 917 | + layout effects on the document, but the style inheritance is well-defined.</p> |
908 | 918 | <!-- ====================================================================== --> |
909 | 919 |
|
910 | 920 | <h4 class=no-num id=element-cycles> Cycle Detection</h4> |
|
0 commit comments