csswg/css3-images Overview.html,1.126,1.127 Overview.src.html,1.133,1.134

Update of /sources/public/csswg/css3-images
In directory hutz:/tmp/cvs-serv16255

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Broke apart the element() issues, added demos to each.


Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-images/Overview.html,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -d -r1.126 -r1.127
--- Overview.html	4 Aug 2011 01:04:08 -0000	1.126
+++ Overview.html	4 Aug 2011 21:14:09 -0000	1.127
@@ -471,9 +471,56 @@
 
   <div class=example> TODO: copy an example from the MozHacks article</div>
 
-  <p class=issue>How does this work for inline elements, or elements broken
-   across lines/columns/pages/etc? How does this work for "internal" elements
-   like &lt;option>?</p>
+  <p class=issue>For transforms, transforms <strong>on the element</strong>
+   don't affect the geometry/size of the image (as normal), but do affect the
+   appearance (<a href="data:text/html;charset=utf-8,&lt;!DOCTYPE
+   html>%0A&lt;p id%3Dfoo>&lt;span
+   id%3Dbar>foofoofoo&lt;br>bar&lt;%2Fspan>&lt;%2Fp>%0A&lt;div>&lt;%2Fdiv>%0A&lt;style>%0Aspan
+   { border%3A thick solid red%3B }%0Ap { border%3A thin solid black%3B
+   width%3A 50px%3B -moz-transform%3Arotate(30deg)%3B}%0Adiv { %0A border%3A
+   thick solid black%3B%0A width%3A 200px%3B%0A height%3A 200px%3B%0A
+   background%3A -moz-element(%23foo)%3B%0A}%0A&lt;%2Fstyle>">demo</a>) (this
+   looks kinda weird, but whatever). Transforms on an ancestor are ignored
+   (<a href="data:text/html;charset=utf-8,&lt;!DOCTYPE html>%0A&lt;p
+   id%3Dfoo>&lt;span
+   id%3Dbar>foofoofoo&lt;br>bar&lt;%2Fspan>&lt;%2Fp>%0A&lt;div>&lt;%2Fdiv>%0A&lt;style>%0Aspan
+   { border%3A thick solid red%3B }%0Ap { border%3A thin solid black%3B
+   width%3A 50px%3B -moz-transform%3Arotate(30deg)%3B}%0Adiv { %0A border%3A
+   thick solid black%3B%0A width%3A 200px%3B%0A height%3A 200px%3B%0A
+   background%3A -moz-element(%23bar)%3B%0A}%0A&lt;%2Fstyle>">demo</a>).
+
+  <p class=issue>For inline elements, the image is sized to the bounding box
+   of the individual pieces, if they're broken across a line (see above
+   demos).
+
+  <p class=issue>Elements broken across columns also size themselves
+   according to the bounding box (<a
+   href="data:text/html;charset=utf-8,&lt;!DOCTYPE html>%0A&lt;p id%3Dfoo>foo
+   foo foo &lt;span id%3Dbar>foo foo&lt;%2Fspan> foo foo
+   foo&lt;%2Fp>%0A&lt;div>&lt;%2Fdiv>%0A&lt;style>%0Aspan { border%3A thick
+   solid red%3B }%0Ap { border%3A thin solid black%3B width%3A 100px%3B
+   -moz-column-width%3A40px%3B}%0Adiv { %0A border%3A thick solid black%3B%0A
+   width%3A 200px%3B%0A height%3A 200px%3B%0A background%3A
+   -moz-element(%23bar)%3B%0A}%0A&lt;%2Fstyle>">demo</a>).
+
+  <p class=issue>What happens with elements broken across regions? Pages?
+
+  <p class=issue>An &lt;option> element still has a proper renderer (not
+   what's displayed when you're folded up; the display in the tray when it
+   comes out), and thus works fine in element() (<a
+   href="data:text/html;charset=utf-8,&lt;!DOCTYPE html>%0A&lt;select
+   id%3Dfoo>%0A &lt;option id%3Dbar>one&lt;%2Foption>%0A &lt;option
+   id%3Dbaz>two&lt;%2Foption>%0A&lt;%2Fselect>%0A&lt;input type%3Dradio
+   name%3Da id%3Dselect>&lt;label for%3Dselect>select&lt;%2Flabel>%0A |
+   &lt;input type%3Dradio name%3Da id%3Doption1>&lt;label
+   for%3Doption1>option1&lt;%2Flabel>%0A | &lt;input type%3Dradio name%3Da
+   id%3Doption2>&lt;label
+   for%3Doption2>option2&lt;%2Flabel>%0A&lt;div>&lt;%2Fdiv>%0A&lt;style>%0Adiv
+   { %0A border%3A thick solid black%3B%0A width%3A 200px%3B%0A height%3A
+   200px%3B%0A}%0A%0A%23select%3Achecked ~ div { background%3A
+   -moz-element(%23foo)%3B }%0A%23option1%3Achecked ~ div { background%3A
+   -moz-element(%23bar)%3B }%0A%23option2%3Achecked ~ div { background%3A
+   -moz-element(%23baz)%3B }%0A&lt;%2Fstyle>">demo</a>).)</p>
   <!-- ====================================================================== -->
 
   <h4 class="no-num no-toc" id=element-cycles> Detecting and Resolving

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-images/Overview.src.html,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -d -r1.133 -r1.134
--- Overview.src.html	4 Aug 2011 01:04:08 -0000	1.133
+++ Overview.src.html	4 Aug 2011 21:14:10 -0000	1.134
@@ -298,7 +298,15 @@
 		TODO: copy an example from the MozHacks article
 	</div>
 
-	<p class=issue>How does this work for inline elements, or elements broken across lines/columns/pages/etc?  How does this work for "internal" elements like &lt;option>?</p>
+	<p class=issue>For transforms, transforms <strong>on the element</strong> don't affect the geometry/size of the image (as normal), but do affect the appearance (<a href="data:text/html;charset=utf-8,&lt;!DOCTYPE html>%0A&lt;p id%3Dfoo>&lt;span id%3Dbar>foofoofoo&lt;br>bar&lt;%2Fspan>&lt;%2Fp>%0A&lt;div>&lt;%2Fdiv>%0A&lt;style>%0Aspan { border%3A thick solid red%3B }%0Ap { border%3A thin solid black%3B width%3A 50px%3B -moz-transform%3Arotate(30deg)%3B}%0Adiv { %0A border%3A thick solid black%3B%0A width%3A 200px%3B%0A height%3A 200px%3B%0A background%3A -moz-element(%23foo)%3B%0A}%0A&lt;%2Fstyle>">demo</a>) (this looks kinda weird, but whatever).  Transforms on an ancestor are ignored (<a href="data:text/html;charset=utf-8,&lt;!DOCTYPE html>%0A&lt;p id%3Dfoo>&lt;span id%3Dbar>foofoofoo&lt;br>bar&lt;%2Fspan>&lt;%2Fp>%0A&lt;div>&lt;%2Fdiv>%0A&lt;style>%0Aspan { border%3A thick solid red%3B }%0Ap { border%3A thin solid black%3B width%3A 50px%3B -moz-transform%3Arotate(30deg)%3B}%0Adiv { %0A border%3A thick slid black%3B%0A width%3A 200px%3B%0A height%3A 200px%3B%0A background%3A -moz-element(%23bar)%3B%0A}%0A&lt;%2Fstyle>">demo</a>).</p>
+
+	<p class=issue>For inline elements, the image is sized to the bounding box of the individual pieces, if they're broken across a line (see above demos).</p>
+
+	<p class=issue>Elements broken across columns also size themselves according to the bounding box (<a href="data:text/html;charset=utf-8,&lt;!DOCTYPE html>%0A&lt;p id%3Dfoo>foo foo foo &lt;span id%3Dbar>foo foo&lt;%2Fspan> foo foo foo&lt;%2Fp>%0A&lt;div>&lt;%2Fdiv>%0A&lt;style>%0Aspan { border%3A thick solid red%3B }%0Ap { border%3A thin solid black%3B width%3A 100px%3B -moz-column-width%3A40px%3B}%0Adiv { %0A border%3A thick solid black%3B%0A width%3A 200px%3B%0A height%3A 200px%3B%0A background%3A -moz-element(%23bar)%3B%0A}%0A&lt;%2Fstyle>">demo</a>).</p>
+
+	<p class=issue>What happens with elements broken across regions?  Pages?</p>
+
+	<p class=issue>An &lt;option> element still has a proper renderer (not what's displayed when you're folded up; the display in the tray when it comes out), and thus works fine in element() (<a href="data:text/html;charset=utf-8,&lt;!DOCTYPE html>%0A&lt;select id%3Dfoo>%0A &lt;option id%3Dbar>one&lt;%2Foption>%0A &lt;option id%3Dbaz>two&lt;%2Foption>%0A&lt;%2Fselect>%0A&lt;input type%3Dradio name%3Da id%3Dselect>&lt;label for%3Dselect>select&lt;%2Flabel>%0A | &lt;input type%3Dradio name%3Da id%3Doption1>&lt;label for%3Doption1>option1&lt;%2Flabel>%0A | &lt;input type%3Dradio name%3Da id%3Doption2>&lt;label for%3Doption2>option2&lt;%2Flabel>%0A&lt;div>&lt;%2Fdiv>%0A&lt;style>%0Adiv { %0A border%3A thick solid black%3B%0A width%3A 200px%3B%0A height%3A 200px%3B%0A}%0A%0A%23select%3Achecked ~ div { background%3A -moz-element(%23foo)%3B }%0A%23option1%3Achecked ~ div { background%3A -moz-element(%23bar)%3B }%0A%23option2%3Achecked ~ div { background%3A -moz-element(%23baz)%3B }%0A&lt;%2Fstyle>">demo</a>).)</p>
 
 <!-- ====================================================================== -->
 

Received on Thursday, 4 August 2011 21:14:13 UTC