Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css-grid-layout / non-grid-columns-rows-get-set-multiple-expected.txt
1 Test that setting and getting grid-template-columns and grid-template-rows works as expected
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Test getting |grid-template-columns| and |grid-template-rows| set through CSS
7 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('grid-template-columns') is "7px 11px"
8 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('grid-template-rows') is "17px 2px"
9 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('grid-template-columns') is "53% 99%"
10 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('grid-template-rows') is "27% 52%"
11 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('grid-template-columns') is "auto auto"
12 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('grid-template-rows') is "auto auto"
13 PASS window.getComputedStyle(gridWithEMElement, '').getPropertyValue('grid-template-columns') is "100px 120px"
14 PASS window.getComputedStyle(gridWithEMElement, '').getPropertyValue('grid-template-rows') is "150px 170px"
15 PASS window.getComputedStyle(gridWithThreeItems, '').getPropertyValue('grid-template-columns') is "15px auto 100px"
16 PASS window.getComputedStyle(gridWithThreeItems, '').getPropertyValue('grid-template-rows') is "120px 18px auto"
17 PASS window.getComputedStyle(gridWithPercentAndViewportPercent, '').getPropertyValue('grid-template-columns') is "50% 120px"
18 PASS window.getComputedStyle(gridWithPercentAndViewportPercent, '').getPropertyValue('grid-template-rows') is "35% 168px"
19 PASS window.getComputedStyle(gridWithFitContentAndFitAvailable, '').getPropertyValue('grid-template-columns') is "none"
20 PASS window.getComputedStyle(gridWithFitContentAndFitAvailable, '').getPropertyValue('grid-template-rows') is "none"
21 PASS window.getComputedStyle(gridWithMinMaxContent, '').getPropertyValue('grid-template-columns') is "min-content max-content"
22 PASS window.getComputedStyle(gridWithMinMaxContent, '').getPropertyValue('grid-template-rows') is "max-content min-content"
23 PASS window.getComputedStyle(gridWithMinMaxAndFixed, '').getPropertyValue('grid-template-columns') is "minmax(45px, 30%) 15px"
24 PASS window.getComputedStyle(gridWithMinMaxAndFixed, '').getPropertyValue('grid-template-rows') is "120px minmax(35%, 10px)"
25 PASS window.getComputedStyle(gridWithMinMaxAndMinMaxContent, '').getPropertyValue('grid-template-columns') is "minmax(min-content, 30%) 15px"
26 PASS window.getComputedStyle(gridWithMinMaxAndMinMaxContent, '').getPropertyValue('grid-template-rows') is "120px minmax(35%, max-content)"
27 PASS window.getComputedStyle(gridWithFractionFraction, '').getPropertyValue('grid-template-columns') is "1fr 2fr"
28 PASS window.getComputedStyle(gridWithFractionFraction, '').getPropertyValue('grid-template-rows') is "3fr 4fr"
29 PASS window.getComputedStyle(gridWithFractionMinMax, '').getPropertyValue('grid-template-columns') is "minmax(min-content, 45px) 2fr"
30 PASS window.getComputedStyle(gridWithFractionMinMax, '').getPropertyValue('grid-template-rows') is "3fr minmax(14px, max-content)"
31 PASS window.getComputedStyle(gridWithCalcCalc, '').getPropertyValue('grid-template-columns') is "200px 100px"
32 PASS window.getComputedStyle(gridWithCalcCalc, '').getPropertyValue('grid-template-rows') is "150px 75px"
33 PASS window.getComputedStyle(gridWithCalcAndFixed, '').getPropertyValue('grid-template-columns') is "50% 80px"
34 PASS window.getComputedStyle(gridWithCalcAndFixed, '').getPropertyValue('grid-template-rows') is "88px 25%"
35 PASS window.getComputedStyle(gridWithCalcAndMinMax, '').getPropertyValue('grid-template-columns') is "calc(30px + 20%) minmax(min-content, 80px)"
36 PASS window.getComputedStyle(gridWithCalcAndMinMax, '').getPropertyValue('grid-template-rows') is "minmax(25%, max-content) calc(-7px + 10%)"
37 PASS window.getComputedStyle(gridWithCalcInsideMinMax, '').getPropertyValue('grid-template-columns') is "minmax(calc(23px + 10%), 400px) 120px"
38 PASS window.getComputedStyle(gridWithCalcInsideMinMax, '').getPropertyValue('grid-template-rows') is "150px minmax(5%, calc(-125px + 50%))"
39
40 Test the initial value
41 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is 'none'
42 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'none'
43
44 Test getting and setting grid-template-rows and grid-template-columns through JS
45 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "18px 22px"
46 PASS element.style.gridTemplateColumns is "18px 22px"
47 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "66px 70px"
48 PASS element.style.gridTemplateRows is "66px 70px"
49 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "55% 80%"
50 PASS element.style.gridTemplateColumns is "55% 80%"
51 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "40% 63%"
52 PASS element.style.gridTemplateRows is "40% 63%"
53 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "auto auto"
54 PASS element.style.gridTemplateColumns is "auto auto"
55 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "auto auto"
56 PASS element.style.gridTemplateRows is "auto auto"
57 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "auto 160px 22px"
58 PASS element.style.gridTemplateColumns is "auto 16em 22px"
59 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "56% 100px auto"
60 PASS element.style.gridTemplateRows is "56% 10em auto"
61 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "160px minmax(16px, 20px)"
62 PASS element.style.gridTemplateColumns is "16em minmax(16px, 20px)"
63 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "minmax(10%, 15%) auto"
64 PASS element.style.gridTemplateRows is "minmax(10%, 15%) auto"
65 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "160px 2fr"
66 PASS element.style.gridTemplateColumns is "16em 2fr"
67 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "14fr auto"
68 PASS element.style.gridTemplateRows is "14fr auto"
69 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "50% 96px"
70 PASS element.style.gridTemplateColumns is "50% 12vw"
71 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "5% 510px"
72 PASS element.style.gridTemplateRows is "5% 85vh"
73
74 Test getting wrong values set from CSS
75 PASS getComputedStyle(gridWithNoneAndAuto, '').getPropertyValue('grid-template-columns') is 'none'
76 PASS getComputedStyle(gridWithNoneAndAuto, '').getPropertyValue('grid-template-rows') is 'none'
77 PASS getComputedStyle(gridWithNoneAndFixed, '').getPropertyValue('grid-template-columns') is 'none'
78 PASS getComputedStyle(gridWithNoneAndFixed, '').getPropertyValue('grid-template-rows') is 'none'
79
80 Test setting and getting wrong values from JS
81 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
82 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
83 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
84 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
85 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
86 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
87 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
88 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
89 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
90 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
91 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
92 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
93 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
94 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
95 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
96 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
97 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
98 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
99
100 Test setting grid-template-columns and grid-template-rows to 'inherit' through JS
101 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "50px 1fr (last)"
102 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "101% (middle) 45px"
103 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "50px 1fr (last)"
104 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "101% (middle) 45px"
105
106 Test setting grid-template-columns and grid-template-rows to 'initial' through JS
107 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "150% (middle) 55px"
108 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "1fr (line) 2fr (line)"
109 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is 'none'
110 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'none'
111 PASS successfullyParsed is true
112
113 TEST COMPLETE
114