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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/independent-inheritance-fast-path.html

Issue 2628503002: Made text-align property independent. (Closed)
Patch Set: Added trailing comma to textAlign entry in independent_properties. Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSProperties.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script> 2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script> 3 <script src="../../../resources/testharnessreport.js"></script>
4 <div id="testContainer"> 4 <div id="testContainer">
5 <div id="outer"> 5 <div id="outer">
6 <div id="inner"> 6 <div id="inner">
7 <div id="innermost"></div> 7 <div id="innermost"></div>
8 </div> 8 </div>
9 </div> 9 </div>
10 </div> 10 </div>
11 <script> 11 <script>
12 12
13 var independent_properties = [ 13 var independent_properties = [
14 // Property name, Value 1, Value 2 14 // Property name, Value 1, Value 2
15 ["pointerEvents", "auto", "all"], 15 ["pointerEvents", "auto", "all"],
16 ["visibility", "visible", "hidden"], 16 ["visibility", "visible", "hidden"],
17 ["whiteSpace", "normal", "nowrap"], 17 ["whiteSpace", "normal", "nowrap"],
18 ["borderCollapse", "separate", "collapse"], 18 ["borderCollapse", "separate", "collapse"],
19 ["emptyCells", "show", "hide"], 19 ["emptyCells", "show", "hide"],
20 ["captionSide", "left", "right"], 20 ["captionSide", "left", "right"],
21 ["listStylePosition", "outside", "inside"], 21 ["listStylePosition", "outside", "inside"],
22 ["webkitBoxDirection", "normal", "reverse"], 22 ["webkitBoxDirection", "normal", "reverse"],
23 ["webkitPrintColorAdjust", "economy", "exact"], 23 ["webkitPrintColorAdjust", "economy", "exact"],
24 ["textAlign", "start", "left"],
24 ]; 25 ];
25 26
26 independent_properties.forEach(function(test_data) 27 independent_properties.forEach(function(test_data)
27 { 28 {
28 var propertyName = test_data[0]; 29 var propertyName = test_data[0];
29 var value1 = test_data[1]; 30 var value1 = test_data[1];
30 var value2 = test_data[2]; 31 var value2 = test_data[2];
31 32
32 test(function(t) 33 test(function(t)
33 { 34 {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 assert_equals(getComputedStyle(outer)[propertyName], value2); 71 assert_equals(getComputedStyle(outer)[propertyName], value2);
71 assert_equals(getComputedStyle(inner)[propertyName], value1); 72 assert_equals(getComputedStyle(inner)[propertyName], value1);
72 assert_equals(getComputedStyle(innermost)[propertyName], value1); 73 assert_equals(getComputedStyle(innermost)[propertyName], value1);
73 outer.offsetTop; // Force recalc. 74 outer.offsetTop; // Force recalc.
74 75
75 // Clear for next test. 76 // Clear for next test.
76 outer.remove(); 77 outer.remove();
77 }, "Changing " + propertyName + ", an independent inherited property, propag ates correctly with a single style recalc."); 78 }, "Changing " + propertyName + ", an independent inherited property, propag ates correctly with a single style recalc.");
78 }) 79 })
79 </script> 80 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698