Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / tab-min-size.html
blobf070ece39b22aafaae0c801275555607926df5a2
1 <!DOCTYPE html>
2 <style>
3 span {
4 font-family: monospace;
5 tab-size: 2;
6 white-space: pre;
7 width: intrinsic;
9 </style>
10 <div><span id="one-tab"><span>&Tab;</span>word</span></div>
11 <div><span id="two-tabs"><span>&Tab;</span><span>&Tab;</span>word</span></div>
12 <script src="../../resources/js-test.js"></script>
13 <script>
14 description('Tab characters should never be zero-width.');
16 var oneTabLineWidth = document.getElementById("one-tab").getBoundingClientRect().width;
17 var twoTabLineWidth = document.getElementById("two-tabs").getBoundingClientRect().width;
19 if (oneTabLineWidth == twoTabLineWidth) {
20 testFailed("oneTabLineWidth should not be equal to twoTabLineWidth.");
21 } else {
22 testPassed("oneTabLineWidth is not equal to twoTabLineWidth.");
24 </script>