1 function testComputedStyle(a_value, c_value)
3 shouldBe("window.getComputedStyle(ancestor).textAlignLast", "'" + a_value + "'");
4 shouldBe("window.getComputedStyle(child).textAlignLast", "'" + c_value + "'");
8 function ownValueTest(a_value, c_value)
10 debug("Value of ancestor is '" + a_value + ", while child is '" + c_value + "':");
11 ancestor.style.textAlignLast = a_value;
12 child.style.textAlignLast = c_value;
13 testComputedStyle(a_value, c_value);
16 function inheritanceTest(a_value)
18 debug("Value of ancestor is '" + a_value + "':");
19 ancestor.style.textAlignLast = a_value;
20 testComputedStyle(a_value, a_value);
23 description("This test checks that the value of text-align-last is properly inherited to the child.");
25 ancestor = document.getElementById('ancestor');
26 child = document.getElementById('child');
28 inheritanceTest("start");
29 inheritanceTest("end");
30 inheritanceTest("left");
31 inheritanceTest("right");
32 inheritanceTest("center");
33 inheritanceTest("justify");
34 inheritanceTest("auto");
36 ownValueTest("start", "end");
37 ownValueTest("left", "right");