Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Side by Side Diff: LayoutTests/fast/css3-text/css3-text-indent/getComputedStyle/script-tests/getComputedStyle-text-indent-inherited.js

Issue 22336008: Use the runtime flag and remove '-webkit-' prefix for CSS3 text-indent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 function testComputedStyle(ancestorValue, childValue) 1 function testComputedStyle(ancestorValue, childValue)
2 { 2 {
3 shouldBe("window.getComputedStyle(ancestor).getPropertyValue('text-indent')" , "'" + ancestorValue + "'"); 3 shouldBe("window.getComputedStyle(ancestor).getPropertyValue('text-indent')" , "'" + ancestorValue + "'");
4 shouldBe("window.getComputedStyle(child).getPropertyValue('text-indent')", "'" + childValue + "'"); 4 shouldBe("window.getComputedStyle(child).getPropertyValue('text-indent')", "'" + childValue + "'");
5 debug(''); 5 debug('');
6 } 6 }
7 7
8 function ownValueTest(ancestorValue, childValue) 8 function ownValueTest(ancestorValue, childValue)
9 { 9 {
10 debug("Value of ancestor is '" + ancestorValue + "', while child is '" + chi ldValue + "':"); 10 debug("Value of ancestor is '" + ancestorValue + "', while child is '" + chi ldValue + "':");
11 ancestor.style.textIndent = ancestorValue; 11 ancestor.style.textIndent = ancestorValue;
12 child.style.textIndent = childValue; 12 child.style.textIndent = childValue;
13 testComputedStyle(ancestorValue, childValue); 13 testComputedStyle(ancestorValue, childValue);
14 } 14 }
15 15
16 function inheritanceTest(ancestorValue) 16 function inheritanceTest(ancestorValue)
17 { 17 {
18 debug("Value of ancestor is '" + ancestorValue + "':"); 18 debug("Value of ancestor is '" + ancestorValue + "':");
19 ancestor.style.textIndent = ancestorValue; 19 ancestor.style.textIndent = ancestorValue;
20 testComputedStyle(ancestorValue, ancestorValue); 20 testComputedStyle(ancestorValue, ancestorValue);
21 } 21 }
22 22
23 description("This tests check that the value of text-indent is properly inherite d to the child."); 23 description("This test checks that the value of text-indent is properly inherite d to the child.");
24 24
25 ancestor = document.getElementById('ancestor'); 25 ancestor = document.getElementById('ancestor');
26 child = document.getElementById('child'); 26 child = document.getElementById('child');
27 27
28 inheritanceTest("10px"); 28 inheritanceTest("10px");
29 inheritanceTest("10px -webkit-each-line"); 29 inheritanceTest("10px each-line");
30 30
31 ownValueTest("10px -webkit-each-line", "10px"); 31 ownValueTest("10px each-line", "10px");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698