Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>text-align-true</title> |
michael@0 | 5 | <meta charset="utf-8"> |
michael@0 | 6 | <style type="text/css"> |
michael@0 | 7 | p { |
michael@0 | 8 | overflow:hidden; |
michael@0 | 9 | width:8em; |
michael@0 | 10 | white-space:nowrap; |
michael@0 | 11 | margin:0; |
michael@0 | 12 | } |
michael@0 | 13 | .test1 p { |
michael@0 | 14 | text-align: true right; |
michael@0 | 15 | -moz-text-align-last: end; |
michael@0 | 16 | } |
michael@0 | 17 | .test2 p { |
michael@0 | 18 | text-align: true right; |
michael@0 | 19 | } |
michael@0 | 20 | .test3 p { |
michael@0 | 21 | text-align: end true; |
michael@0 | 22 | } |
michael@0 | 23 | .test4 p { |
michael@0 | 24 | text-align: true left; |
michael@0 | 25 | } |
michael@0 | 26 | .test5 p { |
michael@0 | 27 | text-align: left; |
michael@0 | 28 | -moz-text-align-last: true right; |
michael@0 | 29 | } |
michael@0 | 30 | </style> |
michael@0 | 31 | </head> |
michael@0 | 32 | <body> |
michael@0 | 33 | <div class=test1> |
michael@0 | 34 | <p>Lorem ipsum dolor sit amet.</p> |
michael@0 | 35 | <p dir="rtl">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> |
michael@0 | 36 | </div> |
michael@0 | 37 | |
michael@0 | 38 | <div class=test2> |
michael@0 | 39 | <p>Lorem ipsum dolor sit amet.</p> |
michael@0 | 40 | <p dir="rtl">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> |
michael@0 | 41 | </div> |
michael@0 | 42 | |
michael@0 | 43 | <div class=test3> |
michael@0 | 44 | <p>Lorem ipsum dolor sit amet.</p> |
michael@0 | 45 | <p dir="rtl">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> |
michael@0 | 46 | </div> |
michael@0 | 47 | |
michael@0 | 48 | <div class=test4> |
michael@0 | 49 | <p>Lorem ipsum dolor sit amet.</p> |
michael@0 | 50 | <p dir="rtl">ישים אל לבו חובתו אשר הוא מתעלם ממנה.</p> |
michael@0 | 51 | </div> |
michael@0 | 52 | |
michael@0 | 53 | <div class=test5> |
michael@0 | 54 | <p>Lorem ipsum dolor sit amet.</p> |
michael@0 | 55 | </div> |
michael@0 | 56 | |
michael@0 | 57 | <script> |
michael@0 | 58 | var elem = document.querySelector('.test5 p'); |
michael@0 | 59 | var a = window.getComputedStyle(elem,null).getPropertyValue("text-align"); |
michael@0 | 60 | document.body.appendChild(document.createTextNode(a +"|")); |
michael@0 | 61 | a = window.getComputedStyle(elem,null).getPropertyValue("-moz-text-align-last"); |
michael@0 | 62 | document.body.appendChild(document.createTextNode(a)); |
michael@0 | 63 | |
michael@0 | 64 | document.documentElement.removeAttribute('class'); |
michael@0 | 65 | </script> |
michael@0 | 66 | |
michael@0 | 67 | </body> |
michael@0 | 68 | </html> |