Fixed invalid use of padding
authorPhilippe Le Hégaret <plh@w3.org>
Thu, 25 Jun 2009 21:07:25 +0000
changeset 149 aac6384f32d4
parent 148 3f60217e7943
child 150 d0dfc84bf3ce
Fixed invalid use of padding
testsuite/Styling/Padding001.xml
testsuite/Styling/Padding002.xml
testsuite/Styling/Padding003.xml
testsuite/Styling/Padding004.xml
--- a/testsuite/Styling/Padding001.xml	Fri Jun 12 18:10:37 2009 +0000
+++ b/testsuite/Styling/Padding001.xml	Thu Jun 25 21:07:25 2009 +0000
@@ -9,12 +9,16 @@
       <ttm:desc>Test tts:padding attribute with one value.</ttm:desc>
       <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
     </metadata>
-    <styling>
-    	<style xml:id="s1" tts:padding="20px"/>
-    </styling>
+    <layout>
+      <region xml:id="r1">
+	<style tts:origin="0px 0px"/>
+	<style tts:extent="200px 100px"/>
+    	<style tts:padding="20px"/>
+      </region>
+    </layout>
   </head>
   <body>
-    <div style="s1" tts:backgroundColor="green">
+    <div region="r1" tts:backgroundColor="green">
       <p begin="0s" end="10s" tts:textAlign='left'>All the edges are padded <br />by 20 pixels.</p>
     </div>
   </body>
--- a/testsuite/Styling/Padding002.xml	Fri Jun 12 18:10:37 2009 +0000
+++ b/testsuite/Styling/Padding002.xml	Thu Jun 25 21:07:25 2009 +0000
@@ -9,12 +9,16 @@
       <ttm:desc>Test tts:padding attribute with two values.</ttm:desc>
       <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
     </metadata>
-    <styling>
-    	<style xml:id="s1" tts:padding="10px 30px"/>
-    </styling>
+    <layout>
+      <region xml:id="r1">
+	<style tts:origin="0px 0px"/>
+	<style tts:extent="200px 100px"/>
+    	<style tts:padding="10px 30px"/>
+      </region>
+    </layout>
   </head>
   <body>
-    <div style="s1" tts:backgroundColor="green">
+    <div region="r1" tts:backgroundColor="green">
       <p begin="0s" end="5s" tts:textAlign='left'>The before and after edges <br />are padded by 10 pixels.</p>
 
       <p begin="5s" end="10s" tts:textAlign='right'>The start and end edges <br />are padded by 30 pixels.</p>
--- a/testsuite/Styling/Padding003.xml	Fri Jun 12 18:10:37 2009 +0000
+++ b/testsuite/Styling/Padding003.xml	Thu Jun 25 21:07:25 2009 +0000
@@ -9,12 +9,16 @@
       <ttm:desc>Test tts:padding attribute with three values.</ttm:desc>
       <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
     </metadata>
-    <styling>
-    	<style xml:id="s1" tts:padding="10px 20px 40px"/>
-    </styling>
+    <layout>
+      <region xml:id="r1">
+	<style tts:origin="0px 0px"/>
+	<style tts:extent="200px 100px"/>
+    	<style tts:padding="10px 20px 40px"/>
+      </region>
+    </layout>
   </head>
   <body>
-    <div style="s1" tts:backgroundColor="green">
+    <div region="r1" tts:backgroundColor="green">
       <p begin="0s" end="5s" tts:textAlign='left'>The before edge <br />is padded by 10 pixels.</p>
 
       <p begin="5s" end="10s" tts:textAlign='right'>The start and end edges <br />are padded by 20 pixels.</p>
--- a/testsuite/Styling/Padding004.xml	Fri Jun 12 18:10:37 2009 +0000
+++ b/testsuite/Styling/Padding004.xml	Thu Jun 25 21:07:25 2009 +0000
@@ -9,12 +9,16 @@
       <ttm:desc>Test tts:padding attribute with four values.</ttm:desc>
       <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
     </metadata>
-    <styling>
-    	<style xml:id="s1" tts:padding="10px 20px 30px 40px"/>
-    </styling>
+    <layout>
+      <region xml:id="r1">
+	<style tts:origin="0px 0px"/>
+	<style tts:extent="200px 100px"/>
+    	<style tts:padding="10px 20px 30px 40px"/>
+      </region>
+    </layout>
   </head>
   <body>
-    <div style="s1" tts:backgroundColor="green">
+    <div region="r1" tts:backgroundColor="green">
       <p begin="0s" end="5s" tts:textAlign='left'>The before edge <br />is padded by 10 pixels.</p>
 
       <p begin="5s" end="10s" tts:textAlign='right'>The end edge <br />is padded by 20 pixels.</p>