112112
113113 < h1 > CSS transforms</ h1 >
114114
115- < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 26 January
115+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 27 January
116116 2012</ h2 >
117117
118118 < dl >
119119 < dt > This version:
120120
121121 < dd > < a
122- href ="http://www.w3.org/TR/2012/ED-css3-2d-transforms-20120126 / "> http://dev.w3.org/csswg/css3-2d-transforms/</ a >
123- <!--http://www.w3.org/TR/2012/WD-css3-2d-transforms-20120126 -->
122+ href ="http://www.w3.org/TR/2012/ED-css3-2d-transforms-20120127 / "> http://dev.w3.org/csswg/css3-2d-transforms/</ a >
123+ <!--http://www.w3.org/TR/2012/WD-css3-2d-transforms-20120127 -->
124124
125125 < dt > Latest version:
126126
@@ -318,13 +318,16 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
318318
319319 < li > < a href ="#changes "> < span class =secno > 17. </ span > Changes</ a >
320320 < ul class =toc >
321- < li > < a href ="#changes_on_January_26_2012 "> < span class =secno > 17.1.
321+ < li > < a href ="#changes_on_January_27_2012 "> < span class =secno > 17.1.
322+ </ span > Changes by Simon Fraser on January 27 2012 </ a >
323+
324+ < li > < a href ="#changes_on_January_26_2012 "> < span class =secno > 17.2.
322325 </ span > Changes by Simon Fraser on January 26 2012 </ a >
323326
324- < li > < a href ="#changes_on_January_25_2012 "> < span class =secno > 17.2 .
327+ < li > < a href ="#changes_on_January_25_2012 "> < span class =secno > 17.3 .
325328 </ span > Changes by Simon Fraser on January 25 2012 </ a >
326329
327- < li > < a href ="#changes_from_January_24_2012 "> < span class =secno > 17.3 .
330+ < li > < a href ="#changes_from_January_24_2012 "> < span class =secno > 17.4 .
328331 </ span > Changes from January 24< sup > th</ sup > 2012 version </ a >
329332 </ ul >
330333
@@ -546,12 +549,53 @@ <h3 id=transform-3d-rendering><span class=secno>5.1. </span>3D Transform
546549 that element to render in front of elements with no translation in Z.
547550
548551 < div class =example >
552+ < p > This example shows the effect of three-dimensional transform applied to
553+ an element.</ p >
554+
555+ < pre >
556+ div { height: 150px; width: 150px; }
557+ .container { border: 1px solid black; }
558+ .transformed { transform: rotateY(50deg); }
559+ </ pre >
560+
549561 < pre >
562+ <div class="container">
563+ <div class="transformed"></div>
564+ </div>
550565</ pre >
551566
552- < p > Insert example of simple 3d transform.</ p >
567+ < p > The transform is a 50° rotation about the vertical Y axis. Note how
568+ this makes the gray box appear narrower, but not three-dimensional.</ p >
553569
554- < div class =figure > </ div >
570+ < div class =figure > < img alt ="Div with a rotateY transform. " height =190
571+ src ="examples/simple-3d-example.png " width =210 > </ div >
572+ </ div >
573+
574+ < div class =example >
575+ < p > This example shows how perspective can be used to cause
576+ three-dimensional transforms to appear more realistic.</ p >
577+
578+ < pre >
579+ div { height: 150px; width: 150px; }
580+ .container { perspective: 500px; border: 1px solid black; }
581+ .transformed { transform: rotateY(50deg); }
582+ </ pre >
583+
584+ < pre >
585+ <div class="container">
586+ <div class="transformed"></div>
587+ </div>
588+ </ pre >
589+
590+ < p > The inner element has the same transform as before, but its rendering
591+ is now influenced by the perspective property on its parent element.
592+ Perspective causes vertices that have positive Z coordinates (closer to
593+ the viewer) to be scaled up in X and Y, and those futher away (negative Z
594+ coordinates) to be scaled down.</ p >
595+
596+ < div class =figure > < img
597+ alt ="Div with a rotateY transform, and perspective on its container "
598+ height =190 src ="examples/simple-perspective-example.png " width =210 > </ div >
555599 </ div >
556600
557601 < p > An element with a three-dimensional transform that is contained in a
@@ -1924,7 +1968,14 @@ <h3 id=cssmatrix-interface><span class=secno>16.1. </span> CSSMatrix</h3>
19241968
19251969 < h2 id =changes > < span class =secno > 17. </ span > Changes</ h2 >
19261970
1927- < h3 id ="changes_on_January_26_2012 "> < span class =secno > 17.1. </ span > Changes
1971+ < h3 id ="changes_on_January_27_2012 "> < span class =secno > 17.1. </ span > Changes
1972+ by Simon Fraser on January 27 2012</ h3 >
1973+
1974+ < ul >
1975+ < li > Added two simple 3D examples.
1976+ </ ul >
1977+
1978+ < h3 id ="changes_on_January_26_2012 "> < span class =secno > 17.2. </ span > Changes
19281979 by Simon Fraser on January 26 2012</ h3 >
19291980
19301981 < ul >
@@ -1936,7 +1987,7 @@ <h3 id="changes_on_January_26_2012"><span class=secno>17.1. </span> Changes
19361987 normative text describing how 3D is rendered
19371988 </ ul >
19381989
1939- < h3 id ="changes_on_January_25_2012 "> < span class =secno > 17.2 . </ span > Changes
1990+ < h3 id ="changes_on_January_25_2012 "> < span class =secno > 17.3 . </ span > Changes
19401991 by Simon Fraser on January 25 2012</ h3 >
19411992
19421993 < ul >
@@ -1953,7 +2004,7 @@ <h3 id="changes_on_January_25_2012"><span class=secno>17.2. </span> Changes
19532004 15598</ a > , adding a note about unitless 0 in angles.
19542005 </ ul >
19552006
1956- < h3 id ="changes_from_January_24_2012 "> < span class =secno > 17.3 . </ span >
2007+ < h3 id ="changes_from_January_24_2012 "> < span class =secno > 17.4 . </ span >
19572008 Changes from < a
19582009 href ="http://www.w3.org/TR/2012/ED-css3-2d-transforms-20110124/ "> January
19592010 24< sup > th</ sup > 2012</ a > version</ h3 >
0 commit comments