Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/tab-size/reftest.list
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
-->
<html><head>
<title>CSS Test: Testing the layout of TAB characters with various 'tab-size' length values</title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<link rel="match" href="tab-size-length-ref.html">
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family:Ahem; src:url(../fonts/Ahem.ttf);
}
* {
font:20px/20px Ahem;
}
html,body {
color:black; background-color:white;
}
</style>
</head>
<body>
<pre style="-moz-tab-size: 20px">A	B	C</pre>
<pre style="-moz-tab-size: 50px">A	B	C</pre>
<pre style="-moz-tab-size: 2ch">A	B	C</pre>
<pre style="-moz-tab-size: 3em">A	B	C</pre>
<pre style="-moz-tab-size: calc(10px + 2em)">A	B	C</pre>
<pre style="-moz-tab-size: calc(2em)">A	B	C</pre>
<pre style="-moz-tab-size: calc(3.5 - 1)">A	B	C</pre>
<pre style="-moz-tab-size: 0.8ch">A	B	C</pre>
<pre style="-moz-tab-size: 0px">A	B	C</pre>
<pre style="-moz-tab-size: calc(-2em)">A	B	C</pre>
<pre style="-moz-tab-size: calc(1px - 2px)">A	B	C</pre>
<pre style="-moz-tab-size: calc(-2.5)">A	B	C</pre>
<pre style="-moz-tab-size: -2em">A	B	C</pre>
<pre style="-moz-tab-size: 100%">A	B	C</pre>
<pre style="-moz-tab-size: calc(10% + 2em)">A	B	C</pre>
<pre style="-moz-tab-size: 0">A	B	C</pre>
<pre style="-moz-tab-size: 0.0">A	B	C</pre>
<pre style="-moz-tab-size: 1">A	B	C</pre>
<pre style="-moz-tab-size: 3">A	B	C</pre>
<pre style="-moz-tab-size: 3.4">A	B	C</pre>
<pre style="-moz-tab-size: -1.5">A	B	C</pre>
</body>
</html>