layout/reftests/tab-size/tab-size-change-1b.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html class="reftest-wait">
michael@0 3 <head>
michael@0 4 <style type="text/css">
michael@0 5 body {
michael@0 6 font-family: serif;
michael@0 7 padding: 2px;
michael@0 8 }
michael@0 9 span {
michael@0 10 padding: 2px;
michael@0 11 }
michael@0 12 </style>
michael@0 13 <script type="text/javascript">
michael@0 14 function do_test() {
michael@0 15 var elems = ["one","two","three","four","five","six","seven","eight","nine","ten"];
michael@0 16 for (key in elems) {
michael@0 17 var e = document.getElementById(elems[key]);
michael@0 18 e.innerHTML = elems[key];
michael@0 19 }
michael@0 20 document.documentElement.removeAttribute('class');
michael@0 21 };
michael@0 22 document.addEventListener("MozReftestInvalidate", do_test, false);
michael@0 23 </script>
michael@0 24 </head>
michael@0 25 <!-- Test for modification of text with preformatted tabs, see
michael@0 26 https://bugzilla.mozilla.org/show_bug.cgi?id=631035#c38.
michael@0 27 In the first line, the tabs remain at the same offsets but widths will change;
michael@0 28 in the second line, their offsets will also change. -->
michael@0 29 <body>
michael@0 30 <div style="white-space: pre">
michael@0 31 <span id="one">iii</span>&#9;<span id="two">iii</span>&#9;<span id="three">mmmmm</span>&#9;<span id="four">mmmm</span>&#9;<span id="five">mmmm</span>
michael@0 32 <span id="six">x</span>&#9;<span id="seven">x</span>&#9;<span id="eight">x</span>&#9;<span id="nine">x</span>&#9;<span id="ten">x</span>
michael@0 33 </div>
michael@0 34 </body>
michael@0 35 </html>

mercurial