6 text-rendering:optimizeLegibility;
11 function setupBlock(description
, style
)
13 var descriptionBlock
= document
.createElement("b");
14 descriptionBlock
.innerHTML
= description
;
15 document
.body
.appendChild(descriptionBlock
);
17 var block
= document
.createElement("div");
19 block
.setAttribute("style", style
);
20 block
.innerHTML
= document
.getElementById("template").innerHTML
;
21 document
.body
.appendChild(block
);
28 setupBlock("Default tab size (8).", null);
29 setupBlock("Tab size = -10, should fall back to the default.", "tab-size: -10;");
30 setupBlock("Tab size = 2.", "tab-size: 2;");
32 var dynamicBlock
= setupBlock("Tab size becomes 2 dynamically.", null);
34 if (window
.testRunner
)
35 testRunner
.waitUntilDone();
36 window
.setTimeout(function() {
37 dynamicBlock
.style
.setProperty("tab-size", "2");
38 if (window
.testRunner
)
39 testRunner
.notifyDone();
44 <body onload=
"test();">
45 <div id=
"template" style=
"display:none;">
47 <pre>		x
</pre>
48 <pre>	x
	x
</pre>
49 <pre>xx
	xx
	x
</pre>
50 <pre>xxxxxxxxx
	xx
	x
</pre>