Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / inherit-initial-shorthand-values.html
blobfbc93530d342a5635e711dd490413ff33b1dd1d1
1 <script src="../../resources/js-test.js"></script>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 <style>
7 #test {
9 </style>
10 <body>
11 </body>
12 <p>
13 Test that e matched declaration cache handles explicitly inherited properties correctly.
14 <p>
15 <script>
16 var shorthandNames = [
17 "background",
18 "background-position",
19 "background-repeat",
20 "border",
21 "border-bottom",
22 "border-color",
23 // getPropertyValue() functionality not supported, see http://webkit.org/b/103245.
24 // "border-image",
25 "border-left",
26 "border-radius",
27 "border-right",
28 "border-spacing",
29 "border-style",
30 "border-top",
31 "border-width",
32 "list-style",
33 "font",
34 "margin",
35 "outline",
36 "overflow",
37 "padding",
38 "webkit-animation",
39 "webkit-border-after",
40 "webkit-border-before",
41 "webkit-border-end",
42 "webkit-border-start",
43 "webkit-columns",
44 "webkit-column-rule",
45 "webkit-flex-flow",
46 "webkit-flex",
47 "webkit-marginCollapse",
48 "webkit-marquee",
49 "webkit-mask",
50 "webkit-mask-position",
51 "webkit-mask-repeat",
52 "webkit-text-emphasis",
53 "webkit-text-stroke",
54 "webkit-transition",
55 "webkit-transform-origin"
58 var style = document.styleSheets[0].rules[0].style;
59 function test(shorthand) {
60 var result = [];
61 style[shorthand] = "inherit";
62 result.push(style[shorthand]);
63 style[shorthand] = "initial";
64 result.push(style[shorthand]);
65 return result.join(", ");
68 for (var i = 0; i < shorthandNames.length; ++i) {
69 shouldBeEqualToString("test('" + shorthandNames[i] + "')", "inherit, initial");
71 </script>