| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>CSS Flexible Box Test: order_check</title> | 4 <title>CSS Flexible Box Test: order_check</title> |
| 5 <link rel="author" title="Intel" href="http://www.intel.com" /> | 5 <link rel="author" title="Intel" href="http://www.intel.com" /> |
| 6 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#propdef-order" /> | 6 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#propdef-order" /> |
| 7 <link rel="stylesheet" href="support/test-style.css"> | 7 <link rel="stylesheet" href="support/test-style.css"> |
| 8 <meta name="flags" content="" /> | 8 <meta name="flags" content="" /> |
| 9 <meta name="assert" content="Check if the web engine can indentify order pro
perty." /> | 9 <meta name="assert" content="Check if the web engine can indentify order pro
perty." /> |
| 10 <style> | 10 <style> |
| 11 #test{ | 11 #test{ |
| 12 height: 200px; | 12 height: 200px; |
| 13 width: 200px; | 13 width: 200px; |
| 14 display: flex; | 14 display: flex; |
| 15 } | 15 } |
| 16 div#test02{ | 16 div#test02{ |
| 17 order: -1; | 17 order: -1; |
| 18 } | 18 } |
| 19 </style> | 19 </style> |
| 20 <script src="../../../resources/testharness.js"></script> | 20 <script src="/resources/testharness.js"></script> |
| 21 <script src="../../../resources/testharnessreport.js"></script> | 21 <script src="/resources/testharnessreport.js"></script> |
| 22 </head> | 22 </head> |
| 23 <body> | 23 <body> |
| 24 <div id=log></div> | 24 <div id=log></div> |
| 25 <div id=test><div id=test01>1</div><div id=test02>2</div><div id=test03>3</d
iv></div> | 25 <div id=test><div id=test01>1</div><div id=test02>2</div><div id=test03>3</d
iv></div> |
| 26 <script type="text/javascript"> | 26 <script type="text/javascript"> |
| 27 var t = async_test(document.title, {timeout:500}); | 27 var t = async_test(document.title, {timeout:500}); |
| 28 t.step(function () { | 28 t.step(function () { |
| 29 assert_equals(document.getElementById("test01").offsetTop, document.
getElementById("test02").offsetTop, "Rectangle 1 and 2 have the same offsetTop v
alue"); | 29 assert_equals(document.getElementById("test01").offsetTop, document.
getElementById("test02").offsetTop, "Rectangle 1 and 2 have the same offsetTop v
alue"); |
| 30 assert_equals((document.getElementById("test02").offsetLeft >= docum
ent.getElementById("test01").offsetLeft), false, "Rectangle 2 have a smaller off
setLeft value than 1."); | 30 assert_equals((document.getElementById("test02").offsetLeft >= docum
ent.getElementById("test01").offsetLeft), false, "Rectangle 2 have a smaller off
setLeft value than 1."); |
| 31 }); | 31 }); |
| 32 t.done(); | 32 t.done(); |
| 33 </script> | 33 </script> |
| 34 </body> | 34 </body> |
| 35 </html> | 35 </html> |
| OLD | NEW |