- a/LayoutTests/imported/w3c/ChangeLog +736 lines
Lines 1-3 a/LayoutTests/imported/w3c/ChangeLog_sec1
1
2021-08-16  Johnson Zhou  <qiaosong_zhou@apple.com>
2
3
        Imported CSS Typed OM from w3c
4
        https://bugs.webkit.org/show_bug.cgi?id=229177
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        * web-platform-tests/css/css-typed-om/CSSMatrixComponent-DOMMatrix-mutable-expected.txt: Added.
9
        * web-platform-tests/css/css-typed-om/CSSMatrixComponent-DOMMatrix-mutable.html: Added.
10
        * web-platform-tests/css/css-typed-om/META.yml: Added.
11
        * web-platform-tests/css/css-typed-om/declared-styleMap-accepts-inherit-expected.txt: Added.
12
        * web-platform-tests/css/css-typed-om/declared-styleMap-accepts-inherit.html: Added.
13
        * web-platform-tests/css/css-typed-om/factory-absolute-length-expected.txt: Added.
14
        * web-platform-tests/css/css-typed-om/factory-absolute-length.html: Added.
15
        * web-platform-tests/css/css-typed-om/factory-duration-expected.txt: Added.
16
        * web-platform-tests/css/css-typed-om/factory-duration.html: Added.
17
        * web-platform-tests/css/css-typed-om/factory-frequency-expected.txt: Added.
18
        * web-platform-tests/css/css-typed-om/factory-frequency.html: Added.
19
        * web-platform-tests/css/css-typed-om/idlharness-expected.txt: Added.
20
        * web-platform-tests/css/css-typed-om/idlharness.html: Added.
21
        * web-platform-tests/css/css-typed-om/resources/testhelper.js: Added.
22
        (epsilonForUnitType):
23
        (assert_color_channel_approx_equals):
24
        (assert_style_value_equals):
25
        (assert_style_value_array_equals):
26
        (createDivWithStyle):
27
        (createInlineStyleMap):
28
        (createElementWithInlineStyleMap):
29
        (createComputedStyleMap):
30
        (createElementWithComputedStyleMap):
31
        (createDeclaredStyleMap):
32
        (createRuleWithDeclaredStyleMap):
33
        (loadImageResource):
34
        (assert_matrix_approx_equals):
35
        * web-platform-tests/css/css-typed-om/rotate-by-added-angle-expected.txt: Added.
36
        * web-platform-tests/css/css-typed-om/rotate-by-added-angle-ref.html: Added.
37
        * web-platform-tests/css/css-typed-om/rotate-by-added-angle.html: Added.
38
        * web-platform-tests/css/css-typed-om/set-var-reference-thcrash-expected.txt: Added.
39
        * web-platform-tests/css/css-typed-om/set-var-reference-thcrash.html: Added.
40
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-ident.tentative-expected.txt: Added.
41
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-ident.tentative.html: Added.
42
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-image-expected.txt: Added.
43
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-image.html: Added.
44
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-numeric.tentative-expected.txt: Added.
45
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-numeric.tentative.html: Added.
46
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-tokens.tentative-expected.txt: Added.
47
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-tokens.tentative.html: Added.
48
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/positionvalue-normalization.tentative-expected.txt: Added.
49
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/positionvalue-normalization.tentative.html: Added.
50
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/transformvalue-normalization.tentative-expected.txt: Added.
51
        * web-platform-tests/css/css-typed-om/stylevalue-normalization/transformvalue-normalization.tentative.html: Added.
52
        * web-platform-tests/css/css-typed-om/stylevalue-objects/parse-expected.txt: Added.
53
        * web-platform-tests/css/css-typed-om/stylevalue-objects/parse-invalid-expected.txt: Added.
54
        * web-platform-tests/css/css-typed-om/stylevalue-objects/parse-invalid.html: Added.
55
        * web-platform-tests/css/css-typed-om/stylevalue-objects/parse.html: Added.
56
        * web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll-expected.txt: Added.
57
        * web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll-invalid-expected.txt: Added.
58
        * web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll-invalid.html: Added.
59
        * web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll.html: Added.
60
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/crashtests/cssTransform-Internal-value-expected.txt: Added.
61
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/crashtests/cssTransform-Internal-value.html: Added.
62
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssImageValue-expected.txt: Added.
63
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssImageValue.html: Added.
64
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssKeywordValue.tentative-expected.txt: Added.
65
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssKeywordValue.tentative.html: Added.
66
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssMathValue.tentative-expected.txt: Added.
67
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssMathValue.tentative.html: Added.
68
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssPositionValue-expected.txt: Added.
69
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssPositionValue.html: Added.
70
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-cssom-expected.txt: Added.
71
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-cssom.html: Added.
72
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-string-expected.txt: Added.
73
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-string.html: Added.
74
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssTransformValue.tentative-expected.txt: Added.
75
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssTransformValue.tentative.html: Added.
76
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnitValue.tentative-expected.txt: Added.
77
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnitValue.tentative.html: Added.
78
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnparsedValue-expected.txt: Added.
79
        * web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnparsedValue.html: Added.
80
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssColorValue-expected.txt: Added.
81
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssColorValue.html: Added.
82
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssHSL-expected.txt: Added.
83
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssHSL.html: Added.
84
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-expected.txt: Added.
85
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-invalid-expected.txt: Added.
86
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-invalid.html: Added.
87
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-value-expected.txt: Added.
88
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-value.html: Added.
89
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue.html: Added.
90
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssMatrixComponent.tentative-expected.txt: Added.
91
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssMatrixComponent.tentative.html: Added.
92
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPerspective.tentative-expected.txt: Added.
93
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPerspective.tentative.html: Added.
94
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue-expected.txt: Added.
95
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue-invalid-expected.txt: Added.
96
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue-invalid.html: Added.
97
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue.html: Added.
98
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRGB-expected.txt: Added.
99
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRGB.html: Added.
100
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRotate.tentative-expected.txt: Added.
101
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRotate.tentative.html: Added.
102
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssScale.tentative-expected.txt: Added.
103
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssScale.tentative.html: Added.
104
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkew.tentative-expected.txt: Added.
105
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkew.tentative.html: Added.
106
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewX.tentative-expected.txt: Added.
107
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewX.tentative.html: Added.
108
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewY.tentative-expected.txt: Added.
109
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewY.tentative.html: Added.
110
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix-expected.txt: Added.
111
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix-relative-units-expected.txt: Added.
112
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix-relative-units.html: Added.
113
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix.html: Added.
114
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue-toMatrix-expected.txt: Added.
115
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue-toMatrix.html: Added.
116
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue.tentative-expected.txt: Added.
117
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue.tentative.html: Added.
118
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTranslate.tentative-expected.txt: Added.
119
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTranslate.tentative.html: Added.
120
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-empty-expected.txt: Added.
121
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-empty.html: Added.
122
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-expected.txt: Added.
123
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-indexed-getter-setter-expected.txt: Added.
124
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-indexed-getter-setter.html: Added.
125
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-iterable-expected.txt: Added.
126
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-iterable.html: Added.
127
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-length-expected.txt: Added.
128
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-length.html: Added.
129
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue.html: Added.
130
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-expected.txt: Added.
131
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-invalid-expected.txt: Added.
132
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-invalid.html: Added.
133
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-variable-expected.txt: Added.
134
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-variable.html: Added.
135
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue.html: Added.
136
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/add-two-types.tentative-expected.txt: Added.
137
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/add-two-types.tentative.html: Added.
138
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/arithmetic.tentative-expected.txt: Added.
139
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/arithmetic.tentative.html: Added.
140
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/create-a-type.tentative-expected.txt: Added.
141
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/create-a-type.tentative.html: Added.
142
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathInvert-type-expected.txt: Added.
143
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathInvert-type.html: Added.
144
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathNegate-type-expected.txt: Added.
145
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathNegate-type.html: Added.
146
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathValue.tentative-expected.txt: Added.
147
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathValue.tentative.html: Added.
148
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue-expected.txt: Added.
149
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue-value-expected.txt: Added.
150
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue-value.html: Added.
151
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.html: Added.
152
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssnumericvalue-multiply-two-types.tentative-expected.txt: Added.
153
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssnumericvalue-multiply-two-types.tentative.html: Added.
154
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/equals.tentative-expected.txt: Added.
155
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/equals.tentative.html: Added.
156
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/numeric-factory.tentative-expected.txt: Added.
157
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/numeric-factory.tentative.html: Added.
158
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/parse.tentative-expected.txt: Added.
159
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/parse.tentative.html: Added.
160
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/resources/testhelper.js: Added.
161
        (assert_numeric_type_equals):
162
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/to.tentative-expected.txt: Added.
163
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/to.tentative.html: Added.
164
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/toSum.tentative-expected.txt: Added.
165
        * web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/toSum.tentative.html: Added.
166
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative-expected.txt: Added.
167
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative.html: Added.
168
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-auto-min-size-expected.txt: Added.
169
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-auto-min-size.html: Added.
170
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-expected.txt: Added.
171
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-invalid-expected.txt: Added.
172
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-invalid.html: Added.
173
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-position-expected.txt: Added.
174
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-position.html: Added.
175
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-shorthand-expected.txt: Added.
176
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-shorthand.html: Added.
177
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get.html: Added.
178
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll-shorthand-expected.txt: Added.
179
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll-shorthand.html: Added.
180
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll.tentative-expected.txt: Added.
181
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll.tentative.html: Added.
182
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/has.tentative-expected.txt: Added.
183
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/has.tentative.html: Added.
184
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/iterable.tentative-expected.txt: Added.
185
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/iterable.tentative.html: Added.
186
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/append.tentative-expected.txt: Added.
187
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/append.tentative.html: Added.
188
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/clear-expected.txt: Added.
189
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/clear.html: Added.
190
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/declared.tentative-expected.txt: Added.
191
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/declared.tentative.html: Added.
192
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-expected.txt: Added.
193
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-invalid-expected.txt: Added.
194
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-invalid.html: Added.
195
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-shorthand-expected.txt: Added.
196
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-shorthand.html: Added.
197
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete.html: Added.
198
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-expected.txt: Added.
199
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-invalid-expected.txt: Added.
200
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-invalid.html: Added.
201
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-shorthand-expected.txt: Added.
202
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-shorthand.html: Added.
203
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get.html: Added.
204
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll-shorthand-expected.txt: Added.
205
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll-shorthand.html: Added.
206
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll.tentative-expected.txt: Added.
207
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll.tentative.html: Added.
208
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/has.tentative-expected.txt: Added.
209
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/has.tentative.html: Added.
210
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/iterable.tentative-expected.txt: Added.
211
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/iterable.tentative.html: Added.
212
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set-shorthand-expected.txt: Added.
213
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set-shorthand.html: Added.
214
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set.tentative-expected.txt: Added.
215
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set.tentative.html: Added.
216
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/append.tentative-expected.txt: Added.
217
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/append.tentative.html: Added.
218
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/clear-expected.txt: Added.
219
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/clear.html: Added.
220
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-expected.txt: Added.
221
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-invalid-expected.txt: Added.
222
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-invalid.html: Added.
223
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-shorthand-expected.txt: Added.
224
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-shorthand.html: Added.
225
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete.html: Added.
226
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-expected.txt: Added.
227
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-invalid-expected.txt: Added.
228
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-invalid.html: Added.
229
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-shorthand-expected.txt: Added.
230
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-shorthand.html: Added.
231
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get.html: Added.
232
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll-shorthand-expected.txt: Added.
233
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll-shorthand.html: Added.
234
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll.tentative-expected.txt: Added.
235
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll.tentative.html: Added.
236
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/has.tentative-expected.txt: Added.
237
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/has.tentative.html: Added.
238
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/iterable.tentative-expected.txt: Added.
239
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/iterable.tentative.html: Added.
240
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set-shorthand-expected.txt: Added.
241
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set-shorthand.html: Added.
242
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set.tentative-expected.txt: Added.
243
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set.tentative.html: Added.
244
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/accent-color-expected.txt: Added.
245
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/accent-color.html: Added.
246
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/alignment-baseline-expected.txt: Added.
247
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/alignment-baseline.html: Added.
248
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/all-expected.txt: Added.
249
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/all.html: Added.
250
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-delay-expected.txt: Added.
251
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-delay.html: Added.
252
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-direction-expected.txt: Added.
253
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-direction.html: Added.
254
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-duration-expected.txt: Added.
255
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-duration.html: Added.
256
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-expected.txt: Added.
257
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-fill-mode-expected.txt: Added.
258
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-fill-mode.html: Added.
259
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-iteration-count-expected.txt: Added.
260
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-iteration-count.html: Added.
261
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-name-expected.txt: Added.
262
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-name.html: Added.
263
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-play-state-expected.txt: Added.
264
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-play-state.html: Added.
265
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-timing-function-expected.txt: Added.
266
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-timing-function.html: Added.
267
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation.html: Added.
268
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backdrop-filter-expected.txt: Added.
269
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backdrop-filter.html: Added.
270
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backface-visibility-expected.txt: Added.
271
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backface-visibility.html: Added.
272
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-attachment-expected.txt: Added.
273
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-attachment.html: Added.
274
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-blend-mode-expected.txt: Added.
275
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-blend-mode.html: Added.
276
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-clip-expected.txt: Added.
277
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-clip.html: Added.
278
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-color-expected.txt: Added.
279
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-color.html: Added.
280
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-expected.txt: Added.
281
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-image-expected.txt: Added.
282
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-image.html: Added.
283
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-origin-expected.txt: Added.
284
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-origin.html: Added.
285
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-position-expected.txt: Added.
286
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-position.html: Added.
287
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-repeat-expected.txt: Added.
288
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-repeat.html: Added.
289
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-size-expected.txt: Added.
290
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-size.html: Added.
291
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background.html: Added.
292
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/baseline-shift-expected.txt: Added.
293
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/baseline-shift.html: Added.
294
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/block-size-expected.txt: Added.
295
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/block-size.html: Added.
296
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-collapse-expected.txt: Added.
297
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-collapse.html: Added.
298
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-color-expected.txt: Added.
299
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-color.html: Added.
300
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-outset-expected.txt: Added.
301
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-outset.html: Added.
302
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-repeat-expected.txt: Added.
303
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-repeat.html: Added.
304
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-slice-expected.txt: Added.
305
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-slice.html: Added.
306
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-source-expected.txt: Added.
307
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-source.html: Added.
308
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-width-expected.txt: Added.
309
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-width.html: Added.
310
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-radius-expected.txt: Added.
311
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-radius.html: Added.
312
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-style-expected.txt: Added.
313
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-style.html: Added.
314
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-width-expected.txt: Added.
315
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-width.html: Added.
316
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/bottom-expected.txt: Added.
317
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/bottom.html: Added.
318
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-shadow-expected.txt: Added.
319
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-shadow.html: Added.
320
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-sizing-expected.txt: Added.
321
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-sizing.html: Added.
322
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/break-expected.txt: Added.
323
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/break.html: Added.
324
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caption-side-expected.txt: Added.
325
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caption-side.html: Added.
326
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caret-color-expected.txt: Added.
327
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caret-color.html: Added.
328
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/center-coordinate-expected.txt: Added.
329
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/center-coordinate.html: Added.
330
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clear-expected.txt: Added.
331
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clear.html: Added.
332
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-expected.txt: Added.
333
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-path-expected.txt: Added.
334
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-path.html: Added.
335
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-rule-expected.txt: Added.
336
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-rule.html: Added.
337
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip.html: Added.
338
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color-expected.txt: Added.
339
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color-interpolation-expected.txt: Added.
340
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color-interpolation.html: Added.
341
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color.html: Added.
342
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-count-expected.txt: Added.
343
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-count.html: Added.
344
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-color-expected.txt: Added.
345
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-color.html: Added.
346
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-style-expected.txt: Added.
347
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-style.html: Added.
348
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-width-expected.txt: Added.
349
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-width.html: Added.
350
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-span-expected.txt: Added.
351
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-span.html: Added.
352
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-width-expected.txt: Added.
353
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-width.html: Added.
354
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/contain-expected.txt: Added.
355
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/contain.html: Added.
356
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/coordinate-expected.txt: Added.
357
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/coordinate.html: Added.
358
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-increment-expected.txt: Added.
359
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-increment.html: Added.
360
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-reset-expected.txt: Added.
361
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-reset.html: Added.
362
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-set-expected.txt: Added.
363
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-set.html: Added.
364
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/cursor-expected.txt: Added.
365
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/cursor.html: Added.
366
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/d-expected.txt: Added.
367
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/d.html: Added.
368
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/direction-expected.txt: Added.
369
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/direction.html: Added.
370
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/display-expected.txt: Added.
371
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/display.html: Added.
372
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/dominant-baseline-expected.txt: Added.
373
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/dominant-baseline.html: Added.
374
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/empty-cells-expected.txt: Added.
375
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/empty-cells.html: Added.
376
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-color-expected.txt: Added.
377
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-color.html: Added.
378
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-expected.txt: Added.
379
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-opacity-expected.txt: Added.
380
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-opacity.html: Added.
381
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-rule-expected.txt: Added.
382
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-rule.html: Added.
383
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill.html: Added.
384
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/filter-expected.txt: Added.
385
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/filter.html: Added.
386
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-basis-expected.txt: Added.
387
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-basis.html: Added.
388
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-direction-expected.txt: Added.
389
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-direction.html: Added.
390
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-expected.txt: Added.
391
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-flow-expected.txt: Added.
392
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-flow.html: Added.
393
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-grow-expected.txt: Added.
394
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-grow.html: Added.
395
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-shrink-expected.txt: Added.
396
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-shrink.html: Added.
397
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-wrap-expected.txt: Added.
398
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-wrap.html: Added.
399
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex.html: Added.
400
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/float-expected.txt: Added.
401
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/float.html: Added.
402
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-color-expected.txt: Added.
403
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-color.html: Added.
404
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-opacity-expected.txt: Added.
405
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-opacity.html: Added.
406
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-expected.txt: Added.
407
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-family-expected.txt: Added.
408
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-family.html: Added.
409
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-feature-settings-expected.txt: Added.
410
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-feature-settings.html: Added.
411
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-kerning-expected.txt: Added.
412
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-kerning.html: Added.
413
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-language-override-expected.txt: Added.
414
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-language-override.html: Added.
415
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-optical-sizing-expected.txt: Added.
416
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-optical-sizing.html: Added.
417
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-palette-expected.txt: Added.
418
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-palette.html: Added.
419
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-presentation-expected.txt: Added.
420
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-presentation.html: Added.
421
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size-adjust-expected.txt: Added.
422
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size-adjust.html: Added.
423
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size-expected.txt: Added.
424
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size.html: Added.
425
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-stretch-expected.txt: Added.
426
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-stretch.html: Added.
427
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-style-expected.txt: Added.
428
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-style.html: Added.
429
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-synthesis-expected.txt: Added.
430
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-synthesis.html: Added.
431
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-alternates-expected.txt: Added.
432
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-alternates.html: Added.
433
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-caps-expected.txt: Added.
434
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-caps.html: Added.
435
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-east-asian-expected.txt: Added.
436
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-east-asian.html: Added.
437
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-emoji-expected.txt: Added.
438
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-emoji.html: Added.
439
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-expected.txt: Added.
440
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-ligatures-expected.txt: Added.
441
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-ligatures.html: Added.
442
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-numeric-expected.txt: Added.
443
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-numeric.html: Added.
444
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant.html: Added.
445
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variation-settings-expected.txt: Added.
446
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variation-settings.html: Added.
447
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-weight-expected.txt: Added.
448
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-weight.html: Added.
449
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font.html: Added.
450
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/gap-expected.txt: Added.
451
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/gap.html: Added.
452
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-area-expected.txt: Added.
453
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-area.html: Added.
454
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows-expected.txt: Added.
455
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows.html: Added.
456
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-flow-expected.txt: Added.
457
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-flow.html: Added.
458
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-expected.txt: Added.
459
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-gap-expected.txt: Added.
460
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-gap.html: Added.
461
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-start-end-expected.txt: Added.
462
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-start-end.html: Added.
463
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-areas-expected.txt: Added.
464
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-areas.html: Added.
465
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-columns-rows-expected.txt: Added.
466
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-columns-rows.html: Added.
467
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-expected.txt: Added.
468
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template.html: Added.
469
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid.html: Added.
470
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/height-expected.txt: Added.
471
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/height.html: Added.
472
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/hyphens-expected.txt: Added.
473
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/hyphens.html: Added.
474
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/image-rendering-expected.txt: Added.
475
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/image-rendering.html: Added.
476
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/inline-size-expected.txt: Added.
477
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/inline-size.html: Added.
478
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/isolation-expected.txt: Added.
479
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/isolation.html: Added.
480
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/left-expected.txt: Added.
481
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/left.html: Added.
482
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/letter-spacing-expected.txt: Added.
483
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/letter-spacing.html: Added.
484
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/lighting-color-expected.txt: Added.
485
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/lighting-color.html: Added.
486
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-break-expected.txt: Added.
487
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-break.html: Added.
488
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height-expected.txt: Added.
489
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height-step-expected.txt: Added.
490
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height-step.html: Added.
491
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height.html: Added.
492
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-image-expected.txt: Added.
493
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-image.html: Added.
494
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-position-expected.txt: Added.
495
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-position.html: Added.
496
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-type-expected.txt: Added.
497
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-type.html: Added.
498
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/logical-expected.txt: Added.
499
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/logical.html: Added.
500
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/margin-expected.txt: Added.
501
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/margin.html: Added.
502
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/marker-expected.txt: Added.
503
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/marker.html: Added.
504
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-expected.txt: Added.
505
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-image-expected.txt: Added.
506
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-image.html: Added.
507
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-type-expected.txt: Added.
508
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-type.html: Added.
509
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask.html: Added.
510
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mix-blend-mode-expected.txt: Added.
511
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mix-blend-mode.html: Added.
512
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-fit-expected.txt: Added.
513
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-fit.html: Added.
514
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-position-expected.txt: Added.
515
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-position.html: Added.
516
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-anchor-expected.txt: Added.
517
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-anchor.html: Added.
518
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-distance-expected.txt: Added.
519
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-distance.html: Added.
520
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-expected.txt: Added.
521
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-path-expected.txt: Added.
522
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-path.html: Added.
523
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-position-expected.txt: Added.
524
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-position.html: Added.
525
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-rotate-expected.txt: Added.
526
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-rotate.html: Added.
527
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset.html: Added.
528
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/opacity-expected.txt: Added.
529
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/opacity.html: Added.
530
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/order-expected.txt: Added.
531
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/order.html: Added.
532
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/orphans-expected.txt: Added.
533
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/orphans.html: Added.
534
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-color-expected.txt: Added.
535
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-color.html: Added.
536
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-offset-expected.txt: Added.
537
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-offset.html: Added.
538
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-style-expected.txt: Added.
539
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-style.html: Added.
540
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-width-expected.txt: Added.
541
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-width.html: Added.
542
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-anchor-expected.txt: Added.
543
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-anchor.html: Added.
544
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-expected.txt: Added.
545
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-wrap-expected.txt: Added.
546
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-wrap.html: Added.
547
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow.html: Added.
548
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overscroll-behavior-expected.txt: Added.
549
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overscroll-behavior.html: Added.
550
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/padding-expected.txt: Added.
551
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/padding.html: Added.
552
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/page-expected.txt: Added.
553
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/page.html: Added.
554
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/paint-order-expected.txt: Added.
555
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/paint-order.html: Added.
556
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective-expected.txt: Added.
557
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective-origin-expected.txt: Added.
558
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective-origin.html: Added.
559
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective.html: Added.
560
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/pointer-events-expected.txt: Added.
561
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/pointer-events.html: Added.
562
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/position-expected.txt: Added.
563
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/position.html: Added.
564
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/quotes-expected.txt: Added.
565
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/quotes.html: Added.
566
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/radius-expected.txt: Added.
567
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/radius.html: Added.
568
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/resize-expected.txt: Added.
569
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/resize.html: Added.
570
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/resources/testsuite.js: Added.
571
        (assert_is_unit):
572
        (assert_is_calc_sum):
573
        (assert_is_equal_with_range_handling):
574
        (assert_is_unsupported):
575
        (input.new.CSSKeywordValue):
576
        (const.gTestSyntaxExamples.string_appeared_here.input.new.CSSUnitValue):
577
        (const.gTestSyntaxExamples.string_appeared_here.assert_is_unit):
578
        (const.gTestSyntaxExamples.string_appeared_here.new.CSSUnitValue):
579
        (testPropertyValid):
580
        (set testIsImageValidForProperty):
581
        (set testPropertyInvalid):
582
        (get createKeywordExample):
583
        (runPropertyTests):
584
        (runListValuedPropertyTests):
585
        (runUnsupportedPropertyTests):
586
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/right-expected.txt: Added.
587
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/right.html: Added.
588
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-behavior-expected.txt: Added.
589
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-behavior.html: Added.
590
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-margin-expected.txt: Added.
591
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-margin.html: Added.
592
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding-expected.txt: Added.
593
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html: Added.
594
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align-expected.txt: Added.
595
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align.html: Added.
596
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop-expected.txt: Added.
597
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop.html: Added.
598
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type-expected.txt: Added.
599
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html: Added.
600
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-gutter-expected.txt: Added.
601
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-gutter.html: Added.
602
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-width-expected.txt: Added.
603
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-width.html: Added.
604
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-image-threshold-expected.txt: Added.
605
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-image-threshold.html: Added.
606
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-margin-expected.txt: Added.
607
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-margin.html: Added.
608
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-outside-expected.txt: Added.
609
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-outside.html: Added.
610
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-rendering-expected.txt: Added.
611
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-rendering.html: Added.
612
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/speak-expected.txt: Added.
613
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/speak.html: Added.
614
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-color-expected.txt: Added.
615
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-color.html: Added.
616
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-opacity-expected.txt: Added.
617
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-opacity.html: Added.
618
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dasharray-expected.txt: Added.
619
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dasharray.html: Added.
620
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dashoffset-expected.txt: Added.
621
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dashoffset.html: Added.
622
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-expected.txt: Added.
623
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linecap-expected.txt: Added.
624
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linecap.html: Added.
625
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linejoin-expected.txt: Added.
626
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linejoin.html: Added.
627
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-miterlimit-expected.txt: Added.
628
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-miterlimit.html: Added.
629
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-opacity-expected.txt: Added.
630
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-opacity.html: Added.
631
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-width-expected.txt: Added.
632
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-width.html: Added.
633
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke.html: Added.
634
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/tab-size-expected.txt: Added.
635
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/tab-size.html: Added.
636
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/table-layout-expected.txt: Added.
637
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/table-layout.html: Added.
638
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align-expected.txt: Added.
639
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align-last-expected.txt: Added.
640
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align-last.html: Added.
641
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align.html: Added.
642
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-anchor-expected.txt: Added.
643
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-anchor.html: Added.
644
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-combine-upright-expected.txt: Added.
645
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-combine-upright.html: Added.
646
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-color-expected.txt: Added.
647
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-color.html: Added.
648
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-expected.txt: Added.
649
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-line-expected.txt: Added.
650
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-line.html: Added.
651
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-expected.txt: Added.
652
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink-expected.txt: Added.
653
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink.html: Added.
654
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip.html: Added.
655
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-style-expected.txt: Added.
656
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-style.html: Added.
657
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness-expected.txt: Added.
658
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness.html: Added.
659
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration.html: Added.
660
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-color-expected.txt: Added.
661
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-color.html: Added.
662
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-indent-expected.txt: Added.
663
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-indent.html: Added.
664
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-justify-expected.txt: Added.
665
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-justify.html: Added.
666
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-orientation-expected.txt: Added.
667
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-orientation.html: Added.
668
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-overflow-expected.txt: Added.
669
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-overflow.html: Added.
670
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-rendering-expected.txt: Added.
671
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-rendering.html: Added.
672
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-shadow-expected.txt: Added.
673
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-shadow.html: Added.
674
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-size-adjust-expected.txt: Added.
675
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-size-adjust.html: Added.
676
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-transform-expected.txt: Added.
677
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-transform.html: Added.
678
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset-expected.txt: Added.
679
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset.html: Added.
680
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-position-expected.txt: Added.
681
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-position.html: Added.
682
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/top-expected.txt: Added.
683
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/top.html: Added.
684
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/touch-action-expected.txt: Added.
685
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/touch-action.html: Added.
686
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-box-expected.txt: Added.
687
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-box.html: Added.
688
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-expected.txt: Added.
689
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-interpolated-expected.txt: Added.
690
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-interpolated.html: Added.
691
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-style-expected.txt: Added.
692
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-style.html: Added.
693
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform.html: Added.
694
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-delay-expected.txt: Added.
695
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-delay.html: Added.
696
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-duration-expected.txt: Added.
697
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-duration.html: Added.
698
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-expected.txt: Added.
699
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-property-expected.txt: Added.
700
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-property.html: Added.
701
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-timing-function-expected.txt: Added.
702
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-timing-function.html: Added.
703
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition.html: Added.
704
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/unicode-bidi-expected.txt: Added.
705
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/unicode-bidi.html: Added.
706
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/user-select-expected.txt: Added.
707
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/user-select.html: Added.
708
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vector-effect-expected.txt: Added.
709
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vector-effect.html: Added.
710
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vertical-align-expected.txt: Added.
711
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vertical-align.html: Added.
712
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/visibility-expected.txt: Added.
713
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/visibility.html: Added.
714
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/white-space-expected.txt: Added.
715
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/white-space.html: Added.
716
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/widows-expected.txt: Added.
717
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/widows.html: Added.
718
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/width-expected.txt: Added.
719
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/width.html: Added.
720
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/will-change-expected.txt: Added.
721
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/will-change.html: Added.
722
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-break-expected.txt: Added.
723
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-break.html: Added.
724
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-spacing-expected.txt: Added.
725
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-spacing.html: Added.
726
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-wrap-expected.txt: Added.
727
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-wrap.html: Added.
728
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/writing-mode-expected.txt: Added.
729
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/writing-mode.html: Added.
730
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/z-index-expected.txt: Added.
731
        * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/z-index.html: Added.
732
        * web-platform-tests/css/css-typed-om/width-by-max-px-em-expected.txt: Added.
733
        * web-platform-tests/css/css-typed-om/width-by-max-px-em.html: Added.
734
        * web-platform-tests/css/css-typed-om/width-by-min-px-em-expected.txt: Added.
735
        * web-platform-tests/css/css-typed-om/width-by-min-px-em.html: Added.
736
1
2021-08-16  Alex Christensen  <achristensen@webkit.org>
737
2021-08-16  Alex Christensen  <achristensen@webkit.org>
2
738
3
        Resource Timing: Duration is 0 in many cases
739
        Resource Timing: Duration is 0 in many cases
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/CSSMatrixComponent-DOMMatrix-mutable-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/CSSMatrixComponent-DOMMatrix-mutable-expected.txt_sec1
1
2
FAIL CSSMatrixComponent's matrix attribute is mutable Can't find variable: CSSMatrixTransformComponent
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/CSSMatrixComponent-DOMMatrix-mutable.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/CSSMatrixComponent-DOMMatrix-mutable.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSSMatrixComponent's matrix attribute is mutable</title>
4
<meta name="author" title="Shane Stephens">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<body>
8
  <div id="log"></div>
9
  <script>
10
    test(function() {
11
      var component = new CSSMatrixTransformComponent(new DOMMatrix());
12
      assert_equals(component.matrix.m11, 1, 'DOMMatrix expected to be initialized to identity');
13
      component.matrix.m11 = 2;
14
      assert_equals(component.matrix.m11, 2, 'modification of m11 component of DOMMatrix expected to succeed');
15
    });
16
  </script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/META.yml +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/META.yml_sec1
1
spec: https://drafts.css-houdini.org/css-typed-om/
2
suggested_reviewers:
3
  - darrnshn
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/declared-styleMap-accepts-inherit-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/declared-styleMap-accepts-inherit-expected.txt_sec1
1
2
FAIL Declared styleMap objects accept 'inherit' as a value Can't find variable: CSSKeywordValue
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/declared-styleMap-accepts-inherit.html +15 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/declared-styleMap-accepts-inherit.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>Declared styleMap objects accept 'inherit' as a value</title>
4
<meta name="author" title="Shane Stephens">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<body>
8
  <div id='element'></div>
9
  <div id="log"></div>
10
  <script>
11
    test(function() {
12
      element.attributeStyleMap.set('width', new CSSKeywordValue('inherit'));
13
      assert_equals(element.attributeStyleMap.get('width').value, 'inherit', 'inherit should be a valid value for styleMap properties');
14
    });
15
  </script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-absolute-length-expected.txt +9 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-absolute-length-expected.txt_sec1
1
2
FAIL CSS.cm() produces cm length CSS.cm is not a function. (In 'CSS.cm(10)', 'CSS.cm' is undefined)
3
FAIL CSS.mm() produces mm length CSS.mm is not a function. (In 'CSS.mm(20)', 'CSS.mm' is undefined)
4
FAIL CSS.Q() produces q length CSS.Q is not a function. (In 'CSS.Q(30)', 'CSS.Q' is undefined)
5
FAIL CSS.in() produces in length CSS.in is not a function. (In 'CSS.in(40)', 'CSS.in' is undefined)
6
FAIL CSS.pt() produces pt length CSS.pt is not a function. (In 'CSS.pt(50)', 'CSS.pt' is undefined)
7
FAIL CSS.pc() produces pc length CSS.pc is not a function. (In 'CSS.pc(60)', 'CSS.pc' is undefined)
8
FAIL CSS.px() produces px length CSS.px is not a function. (In 'CSS.px(70)', 'CSS.px' is undefined)
9
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-absolute-length.html +64 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-absolute-length.html_sec1
1
<!DOCTYPE html>
2
<html>
3
    <head>
4
        <title>CSSOM Test: Numeric Factory Functions for absolute length</title>
5
        <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
6
        <link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#numeric-factory">
7
        <meta name="assert" content="CSS factory functions produce expected CSSUnitValue">
8
        <script src="/resources/testharness.js"></script>
9
        <script src="/resources/testharnessreport.js"></script>
10
    </head>
11
    <body>
12
      <script>
13
          'use strict';
14
          test(function(){
15
              var length = CSS.cm(10);
16
              assert_true(length instanceof CSSUnitValue);
17
              assert_equals(length.value, 10);
18
              assert_equals(length.unit, 'cm');
19
          }, 'CSS.cm() produces cm length');
20
21
          test(function(){
22
              var length = CSS.mm(20);
23
              assert_true(length instanceof CSSUnitValue);
24
              assert_equals(length.value, 20);
25
              assert_equals(length.unit, 'mm');
26
          }, 'CSS.mm() produces mm length');
27
28
          test(function(){
29
              var length = CSS.Q(30);
30
              assert_true(length instanceof CSSUnitValue);
31
              assert_equals(length.value, 30);
32
              assert_equals(length.unit, 'q');
33
          }, 'CSS.Q() produces q length');
34
35
          test(function(){
36
              var length = CSS.in(40);
37
              assert_true(length instanceof CSSUnitValue);
38
              assert_equals(length.value, 40);
39
              assert_equals(length.unit, 'in');
40
          }, 'CSS.in() produces in length');
41
42
          test(function(){
43
              var length = CSS.pt(50);
44
              assert_true(length instanceof CSSUnitValue);
45
              assert_equals(length.value, 50);
46
              assert_equals(length.unit, 'pt');
47
          }, 'CSS.pt() produces pt length');
48
49
          test(function(){
50
              var length = CSS.pc(60);
51
              assert_true(length instanceof CSSUnitValue);
52
              assert_equals(length.value, 60);
53
              assert_equals(length.unit, 'pc');
54
          }, 'CSS.pc() produces pc length');
55
56
          test(function(){
57
              var length = CSS.px(70);
58
              assert_true(length instanceof CSSUnitValue);
59
              assert_equals(length.value, 70);
60
              assert_equals(length.unit, 'px');
61
          }, 'CSS.px() produces px length');
62
      </script>
63
    </body>
64
</html>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-duration-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-duration-expected.txt_sec1
1
2
FAIL CSS.s() produces s duration CSS.s is not a function. (In 'CSS.s(10)', 'CSS.s' is undefined)
3
FAIL CSS.ms() produces ms duration CSS.ms is not a function. (In 'CSS.ms(20)', 'CSS.ms' is undefined)
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-duration.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-duration.html_sec1
1
<!DOCTYPE html>
2
<html>
3
    <head>
4
        <title>CSSOM Test: Numeric Factory Functions for duration</title>
5
        <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
6
        <link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#numeric-factory">
7
        <meta name="assert" content="CSS factory functions produce expected CSSUnitValue">
8
        <script src="/resources/testharness.js"></script>
9
        <script src="/resources/testharnessreport.js"></script>
10
    </head>
11
    <body>
12
      <script>
13
          'use strict';
14
          test(function(){
15
              var duration = CSS.s(10);
16
              assert_true(duration instanceof CSSUnitValue);
17
              assert_equals(duration.value, 10);
18
              assert_equals(duration.unit, 's');
19
          }, 'CSS.s() produces s duration');
20
21
          test(function(){
22
              var duration = CSS.ms(20);
23
              assert_true(duration instanceof CSSUnitValue);
24
              assert_equals(duration.value, 20);
25
              assert_equals(duration.unit, 'ms');
26
          }, 'CSS.ms() produces ms duration');
27
      </script>
28
    </body>
29
</html>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-frequency-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-frequency-expected.txt_sec1
1
2
FAIL CSS.Hz() produces hz frequency CSS.Hz is not a function. (In 'CSS.Hz(10)', 'CSS.Hz' is undefined)
3
FAIL CSS.kHz() produces khz frequency CSS.kHz is not a function. (In 'CSS.kHz(20)', 'CSS.kHz' is undefined)
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-frequency.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/factory-frequency.html_sec1
1
<!DOCTYPE html>
2
<html>
3
    <head>
4
        <title>CSSOM Test: Numeric Factory Functions for frequency</title>
5
        <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
6
        <link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#numeric-factory">
7
        <meta name="assert" content="CSS factory functions produce expected CSSUnitValue">
8
        <script src="/resources/testharness.js"></script>
9
        <script src="/resources/testharnessreport.js"></script>
10
    </head>
11
    <body>
12
      <script>
13
          'use strict';
14
          test(function(){
15
              var frequency = CSS.Hz(10);
16
              assert_true(frequency instanceof CSSUnitValue);
17
              assert_equals(frequency.value, 10);
18
              assert_equals(frequency.unit, 'hz');
19
          }, 'CSS.Hz() produces hz frequency');
20
21
          test(function(){
22
              var frequency = CSS.kHz(20);
23
              assert_true(frequency instanceof CSSUnitValue);
24
              assert_equals(frequency.value, 20);
25
              assert_equals(frequency.unit, 'khz');
26
          }, 'CSS.kHz() produces khz frequency');
27
      </script>
28
    </body>
29
</html>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/idlharness-expected.txt +510 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/idlharness-expected.txt_sec1
1
2
PASS idl_test setup
3
PASS idl_test validation
4
PASS Partial interface Element: original interface defined
5
PASS Partial interface Element: member names are unique
6
PASS Partial interface CSSStyleRule: original interface defined
7
PASS Partial interface CSSStyleRule: member names are unique
8
PASS Partial interface mixin ElementCSSInlineStyle: original interface mixin defined
9
PASS Partial interface mixin ElementCSSInlineStyle: member names are unique
10
PASS Partial namespace CSS: original namespace defined
11
PASS Partial namespace CSS: member names are unique
12
PASS HTMLElement includes ElementCSSInlineStyle: member names are unique
13
PASS SVGElement includes ElementCSSInlineStyle: member names are unique
14
PASS MathMLElement includes ElementCSSInlineStyle: member names are unique
15
PASS SVGElement includes GlobalEventHandlers: member names are unique
16
PASS SVGElement includes DocumentAndElementEventHandlers: member names are unique
17
PASS SVGElement includes SVGElementInstance: member names are unique
18
PASS SVGElement includes HTMLOrSVGElement: member names are unique
19
PASS HTMLElement includes GlobalEventHandlers: member names are unique
20
PASS HTMLElement includes DocumentAndElementEventHandlers: member names are unique
21
PASS HTMLElement includes ElementContentEditable: member names are unique
22
PASS HTMLElement includes HTMLOrSVGElement: member names are unique
23
PASS Element includes ParentNode: member names are unique
24
PASS Element includes NonDocumentTypeChildNode: member names are unique
25
PASS Element includes ChildNode: member names are unique
26
PASS Element includes Slottable: member names are unique
27
PASS MathMLElement includes GlobalEventHandlers: member names are unique
28
PASS MathMLElement includes DocumentAndElementEventHandlers: member names are unique
29
PASS MathMLElement includes HTMLOrSVGElement: member names are unique
30
PASS CSSStyleValue interface: existence and properties of interface object
31
PASS CSSStyleValue interface object length
32
PASS CSSStyleValue interface object name
33
PASS CSSStyleValue interface: existence and properties of interface prototype object
34
PASS CSSStyleValue interface: existence and properties of interface prototype object's "constructor" property
35
PASS CSSStyleValue interface: existence and properties of interface prototype object's @@unscopables property
36
PASS CSSStyleValue interface: stringifier
37
FAIL CSSStyleValue interface: operation parse(USVString, USVString) assert_own_property: interface object missing static operation expected property "parse" missing
38
FAIL CSSStyleValue interface: operation parseAll(USVString, USVString) assert_own_property: interface object missing static operation expected property "parseAll" missing
39
PASS StylePropertyMapReadOnly interface: existence and properties of interface object
40
PASS StylePropertyMapReadOnly interface object length
41
PASS StylePropertyMapReadOnly interface object name
42
PASS StylePropertyMapReadOnly interface: existence and properties of interface prototype object
43
PASS StylePropertyMapReadOnly interface: existence and properties of interface prototype object's "constructor" property
44
PASS StylePropertyMapReadOnly interface: existence and properties of interface prototype object's @@unscopables property
45
FAIL StylePropertyMapReadOnly interface: iterable<USVString, [object Object]> undefined is not an object (evaluating 'iteratorDesc.writable')
46
PASS StylePropertyMapReadOnly interface: operation get(USVString)
47
FAIL StylePropertyMapReadOnly interface: operation getAll(USVString) assert_own_property: interface prototype object missing non-static operation expected property "getAll" missing
48
FAIL StylePropertyMapReadOnly interface: operation has(USVString) assert_own_property: interface prototype object missing non-static operation expected property "has" missing
49
FAIL StylePropertyMapReadOnly interface: attribute size assert_true: The prototype object must have a property "size" expected true got false
50
PASS StylePropertyMap interface: existence and properties of interface object
51
PASS StylePropertyMap interface object length
52
PASS StylePropertyMap interface object name
53
PASS StylePropertyMap interface: existence and properties of interface prototype object
54
PASS StylePropertyMap interface: existence and properties of interface prototype object's "constructor" property
55
PASS StylePropertyMap interface: existence and properties of interface prototype object's @@unscopables property
56
FAIL StylePropertyMap interface: operation set(USVString, (CSSStyleValue or USVString)...) assert_own_property: interface prototype object missing non-static operation expected property "set" missing
57
FAIL StylePropertyMap interface: operation append(USVString, (CSSStyleValue or USVString)...) assert_own_property: interface prototype object missing non-static operation expected property "append" missing
58
FAIL StylePropertyMap interface: operation delete(USVString) assert_own_property: interface prototype object missing non-static operation expected property "delete" missing
59
FAIL StylePropertyMap interface: operation clear() assert_own_property: interface prototype object missing non-static operation expected property "clear" missing
60
FAIL StylePropertyMap must be primary interface of styleMap assert_equals: wrong typeof object expected "object" but got "undefined"
61
FAIL Stringification of styleMap assert_equals: wrong typeof object expected "object" but got "undefined"
62
FAIL StylePropertyMap interface: styleMap must inherit property "set(USVString, (CSSStyleValue or USVString)...)" with the proper type assert_equals: wrong typeof object expected "object" but got "undefined"
63
FAIL StylePropertyMap interface: calling set(USVString, (CSSStyleValue or USVString)...) on styleMap with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
64
FAIL StylePropertyMap interface: styleMap must inherit property "append(USVString, (CSSStyleValue or USVString)...)" with the proper type assert_equals: wrong typeof object expected "object" but got "undefined"
65
FAIL StylePropertyMap interface: calling append(USVString, (CSSStyleValue or USVString)...) on styleMap with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
66
FAIL StylePropertyMap interface: styleMap must inherit property "delete(USVString)" with the proper type assert_equals: wrong typeof object expected "object" but got "undefined"
67
FAIL StylePropertyMap interface: calling delete(USVString) on styleMap with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
68
FAIL StylePropertyMap interface: styleMap must inherit property "clear()" with the proper type assert_equals: wrong typeof object expected "object" but got "undefined"
69
FAIL StylePropertyMapReadOnly interface: styleMap must inherit property "get(USVString)" with the proper type assert_equals: wrong typeof object expected "object" but got "undefined"
70
FAIL StylePropertyMapReadOnly interface: calling get(USVString) on styleMap with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
71
FAIL StylePropertyMapReadOnly interface: styleMap must inherit property "getAll(USVString)" with the proper type assert_equals: wrong typeof object expected "object" but got "undefined"
72
FAIL StylePropertyMapReadOnly interface: calling getAll(USVString) on styleMap with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
73
FAIL StylePropertyMapReadOnly interface: styleMap must inherit property "has(USVString)" with the proper type assert_equals: wrong typeof object expected "object" but got "undefined"
74
FAIL StylePropertyMapReadOnly interface: calling has(USVString) on styleMap with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
75
FAIL StylePropertyMapReadOnly interface: styleMap must inherit property "size" with the proper type assert_equals: wrong typeof object expected "object" but got "undefined"
76
PASS CSSUnparsedValue interface: existence and properties of interface object
77
PASS CSSUnparsedValue interface object length
78
PASS CSSUnparsedValue interface object name
79
PASS CSSUnparsedValue interface: existence and properties of interface prototype object
80
PASS CSSUnparsedValue interface: existence and properties of interface prototype object's "constructor" property
81
PASS CSSUnparsedValue interface: existence and properties of interface prototype object's @@unscopables property
82
FAIL CSSUnparsedValue interface: iterable<CSSUnparsedSegment> undefined is not an object (evaluating 'iteratorDesc.writable')
83
FAIL CSSUnparsedValue interface: attribute length assert_true: The prototype object must have a property "length" expected true got false
84
FAIL CSSVariableReferenceValue interface: existence and properties of interface object assert_own_property: self does not have own property "CSSVariableReferenceValue" expected property "CSSVariableReferenceValue" missing
85
FAIL CSSVariableReferenceValue interface object length assert_own_property: self does not have own property "CSSVariableReferenceValue" expected property "CSSVariableReferenceValue" missing
86
FAIL CSSVariableReferenceValue interface object name assert_own_property: self does not have own property "CSSVariableReferenceValue" expected property "CSSVariableReferenceValue" missing
87
FAIL CSSVariableReferenceValue interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSVariableReferenceValue" expected property "CSSVariableReferenceValue" missing
88
FAIL CSSVariableReferenceValue interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSVariableReferenceValue" expected property "CSSVariableReferenceValue" missing
89
FAIL CSSVariableReferenceValue interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSVariableReferenceValue" expected property "CSSVariableReferenceValue" missing
90
FAIL CSSVariableReferenceValue interface: attribute variable assert_own_property: self does not have own property "CSSVariableReferenceValue" expected property "CSSVariableReferenceValue" missing
91
FAIL CSSVariableReferenceValue interface: attribute fallback assert_own_property: self does not have own property "CSSVariableReferenceValue" expected property "CSSVariableReferenceValue" missing
92
FAIL CSSKeywordValue interface: existence and properties of interface object assert_own_property: self does not have own property "CSSKeywordValue" expected property "CSSKeywordValue" missing
93
FAIL CSSKeywordValue interface object length assert_own_property: self does not have own property "CSSKeywordValue" expected property "CSSKeywordValue" missing
94
FAIL CSSKeywordValue interface object name assert_own_property: self does not have own property "CSSKeywordValue" expected property "CSSKeywordValue" missing
95
FAIL CSSKeywordValue interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSKeywordValue" expected property "CSSKeywordValue" missing
96
FAIL CSSKeywordValue interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSKeywordValue" expected property "CSSKeywordValue" missing
97
FAIL CSSKeywordValue interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSKeywordValue" expected property "CSSKeywordValue" missing
98
FAIL CSSKeywordValue interface: attribute value assert_own_property: self does not have own property "CSSKeywordValue" expected property "CSSKeywordValue" missing
99
PASS CSSNumericValue interface: existence and properties of interface object
100
PASS CSSNumericValue interface object length
101
PASS CSSNumericValue interface object name
102
PASS CSSNumericValue interface: existence and properties of interface prototype object
103
PASS CSSNumericValue interface: existence and properties of interface prototype object's "constructor" property
104
PASS CSSNumericValue interface: existence and properties of interface prototype object's @@unscopables property
105
FAIL CSSNumericValue interface: operation add(CSSNumberish...) assert_own_property: interface prototype object missing non-static operation expected property "add" missing
106
FAIL CSSNumericValue interface: operation sub(CSSNumberish...) assert_own_property: interface prototype object missing non-static operation expected property "sub" missing
107
FAIL CSSNumericValue interface: operation mul(CSSNumberish...) assert_own_property: interface prototype object missing non-static operation expected property "mul" missing
108
FAIL CSSNumericValue interface: operation div(CSSNumberish...) assert_own_property: interface prototype object missing non-static operation expected property "div" missing
109
FAIL CSSNumericValue interface: operation min(CSSNumberish...) assert_own_property: interface prototype object missing non-static operation expected property "min" missing
110
FAIL CSSNumericValue interface: operation max(CSSNumberish...) assert_own_property: interface prototype object missing non-static operation expected property "max" missing
111
FAIL CSSNumericValue interface: operation equals(CSSNumberish...) assert_own_property: interface prototype object missing non-static operation expected property "equals" missing
112
FAIL CSSNumericValue interface: operation to(USVString) assert_own_property: interface prototype object missing non-static operation expected property "to" missing
113
FAIL CSSNumericValue interface: operation toSum(USVString...) assert_own_property: interface prototype object missing non-static operation expected property "toSum" missing
114
FAIL CSSNumericValue interface: operation type() assert_own_property: interface prototype object missing non-static operation expected property "type" missing
115
FAIL CSSNumericValue interface: operation parse(USVString) assert_own_property: interface object missing static operation expected property "parse" missing
116
PASS CSSUnitValue interface: existence and properties of interface object
117
PASS CSSUnitValue interface object length
118
PASS CSSUnitValue interface object name
119
PASS CSSUnitValue interface: existence and properties of interface prototype object
120
PASS CSSUnitValue interface: existence and properties of interface prototype object's "constructor" property
121
PASS CSSUnitValue interface: existence and properties of interface prototype object's @@unscopables property
122
PASS CSSUnitValue interface: attribute value
123
PASS CSSUnitValue interface: attribute unit
124
FAIL CSSUnitValue must be primary interface of unitValue assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
125
FAIL Stringification of unitValue assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
126
FAIL CSSUnitValue interface: unitValue must inherit property "value" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
127
FAIL CSSUnitValue interface: unitValue must inherit property "unit" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
128
FAIL CSSNumericValue interface: unitValue must inherit property "add(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
129
FAIL CSSNumericValue interface: calling add(CSSNumberish...) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
130
FAIL CSSNumericValue interface: unitValue must inherit property "sub(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
131
FAIL CSSNumericValue interface: calling sub(CSSNumberish...) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
132
FAIL CSSNumericValue interface: unitValue must inherit property "mul(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
133
FAIL CSSNumericValue interface: calling mul(CSSNumberish...) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
134
FAIL CSSNumericValue interface: unitValue must inherit property "div(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
135
FAIL CSSNumericValue interface: calling div(CSSNumberish...) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
136
FAIL CSSNumericValue interface: unitValue must inherit property "min(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
137
FAIL CSSNumericValue interface: calling min(CSSNumberish...) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
138
FAIL CSSNumericValue interface: unitValue must inherit property "max(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
139
FAIL CSSNumericValue interface: calling max(CSSNumberish...) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
140
FAIL CSSNumericValue interface: unitValue must inherit property "equals(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
141
FAIL CSSNumericValue interface: calling equals(CSSNumberish...) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
142
FAIL CSSNumericValue interface: unitValue must inherit property "to(USVString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
143
FAIL CSSNumericValue interface: calling to(USVString) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
144
FAIL CSSNumericValue interface: unitValue must inherit property "toSum(USVString...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
145
FAIL CSSNumericValue interface: calling toSum(USVString...) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
146
FAIL CSSNumericValue interface: unitValue must inherit property "type()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
147
FAIL CSSNumericValue interface: unitValue must inherit property "parse(USVString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
148
FAIL CSSNumericValue interface: calling parse(USVString) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
149
FAIL CSSStyleValue interface: unitValue must inherit property "parse(USVString, USVString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
150
FAIL CSSStyleValue interface: calling parse(USVString, USVString) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
151
FAIL CSSStyleValue interface: unitValue must inherit property "parseAll(USVString, USVString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
152
FAIL CSSStyleValue interface: calling parseAll(USVString, USVString) on unitValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: unitValue"
153
FAIL CSSMathValue interface: existence and properties of interface object assert_own_property: self does not have own property "CSSMathValue" expected property "CSSMathValue" missing
154
FAIL CSSMathValue interface object length assert_own_property: self does not have own property "CSSMathValue" expected property "CSSMathValue" missing
155
FAIL CSSMathValue interface object name assert_own_property: self does not have own property "CSSMathValue" expected property "CSSMathValue" missing
156
FAIL CSSMathValue interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSMathValue" expected property "CSSMathValue" missing
157
FAIL CSSMathValue interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSMathValue" expected property "CSSMathValue" missing
158
FAIL CSSMathValue interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSMathValue" expected property "CSSMathValue" missing
159
FAIL CSSMathValue interface: attribute operator assert_own_property: self does not have own property "CSSMathValue" expected property "CSSMathValue" missing
160
FAIL CSSMathSum interface: existence and properties of interface object assert_own_property: self does not have own property "CSSMathSum" expected property "CSSMathSum" missing
161
FAIL CSSMathSum interface object length assert_own_property: self does not have own property "CSSMathSum" expected property "CSSMathSum" missing
162
FAIL CSSMathSum interface object name assert_own_property: self does not have own property "CSSMathSum" expected property "CSSMathSum" missing
163
FAIL CSSMathSum interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSMathSum" expected property "CSSMathSum" missing
164
FAIL CSSMathSum interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSMathSum" expected property "CSSMathSum" missing
165
FAIL CSSMathSum interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSMathSum" expected property "CSSMathSum" missing
166
FAIL CSSMathSum interface: attribute values assert_own_property: self does not have own property "CSSMathSum" expected property "CSSMathSum" missing
167
FAIL CSSMathSum must be primary interface of mathSum assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
168
FAIL Stringification of mathSum assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
169
FAIL CSSMathSum interface: mathSum must inherit property "values" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
170
FAIL CSSMathValue interface: mathSum must inherit property "operator" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
171
FAIL CSSNumericValue interface: mathSum must inherit property "add(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
172
FAIL CSSNumericValue interface: calling add(CSSNumberish...) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
173
FAIL CSSNumericValue interface: mathSum must inherit property "sub(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
174
FAIL CSSNumericValue interface: calling sub(CSSNumberish...) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
175
FAIL CSSNumericValue interface: mathSum must inherit property "mul(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
176
FAIL CSSNumericValue interface: calling mul(CSSNumberish...) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
177
FAIL CSSNumericValue interface: mathSum must inherit property "div(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
178
FAIL CSSNumericValue interface: calling div(CSSNumberish...) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
179
FAIL CSSNumericValue interface: mathSum must inherit property "min(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
180
FAIL CSSNumericValue interface: calling min(CSSNumberish...) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
181
FAIL CSSNumericValue interface: mathSum must inherit property "max(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
182
FAIL CSSNumericValue interface: calling max(CSSNumberish...) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
183
FAIL CSSNumericValue interface: mathSum must inherit property "equals(CSSNumberish...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
184
FAIL CSSNumericValue interface: calling equals(CSSNumberish...) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
185
FAIL CSSNumericValue interface: mathSum must inherit property "to(USVString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
186
FAIL CSSNumericValue interface: calling to(USVString) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
187
FAIL CSSNumericValue interface: mathSum must inherit property "toSum(USVString...)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
188
FAIL CSSNumericValue interface: calling toSum(USVString...) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
189
FAIL CSSNumericValue interface: mathSum must inherit property "type()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
190
FAIL CSSNumericValue interface: mathSum must inherit property "parse(USVString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
191
FAIL CSSNumericValue interface: calling parse(USVString) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
192
FAIL CSSStyleValue interface: mathSum must inherit property "parse(USVString, USVString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
193
FAIL CSSStyleValue interface: calling parse(USVString, USVString) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
194
FAIL CSSStyleValue interface: mathSum must inherit property "parseAll(USVString, USVString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
195
FAIL CSSStyleValue interface: calling parseAll(USVString, USVString) on mathSum with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mathSum"
196
FAIL CSSMathProduct interface: existence and properties of interface object assert_own_property: self does not have own property "CSSMathProduct" expected property "CSSMathProduct" missing
197
FAIL CSSMathProduct interface object length assert_own_property: self does not have own property "CSSMathProduct" expected property "CSSMathProduct" missing
198
FAIL CSSMathProduct interface object name assert_own_property: self does not have own property "CSSMathProduct" expected property "CSSMathProduct" missing
199
FAIL CSSMathProduct interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSMathProduct" expected property "CSSMathProduct" missing
200
FAIL CSSMathProduct interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSMathProduct" expected property "CSSMathProduct" missing
201
FAIL CSSMathProduct interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSMathProduct" expected property "CSSMathProduct" missing
202
FAIL CSSMathProduct interface: attribute values assert_own_property: self does not have own property "CSSMathProduct" expected property "CSSMathProduct" missing
203
FAIL CSSMathNegate interface: existence and properties of interface object assert_own_property: self does not have own property "CSSMathNegate" expected property "CSSMathNegate" missing
204
FAIL CSSMathNegate interface object length assert_own_property: self does not have own property "CSSMathNegate" expected property "CSSMathNegate" missing
205
FAIL CSSMathNegate interface object name assert_own_property: self does not have own property "CSSMathNegate" expected property "CSSMathNegate" missing
206
FAIL CSSMathNegate interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSMathNegate" expected property "CSSMathNegate" missing
207
FAIL CSSMathNegate interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSMathNegate" expected property "CSSMathNegate" missing
208
FAIL CSSMathNegate interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSMathNegate" expected property "CSSMathNegate" missing
209
FAIL CSSMathNegate interface: attribute value assert_own_property: self does not have own property "CSSMathNegate" expected property "CSSMathNegate" missing
210
FAIL CSSMathInvert interface: existence and properties of interface object assert_own_property: self does not have own property "CSSMathInvert" expected property "CSSMathInvert" missing
211
FAIL CSSMathInvert interface object length assert_own_property: self does not have own property "CSSMathInvert" expected property "CSSMathInvert" missing
212
FAIL CSSMathInvert interface object name assert_own_property: self does not have own property "CSSMathInvert" expected property "CSSMathInvert" missing
213
FAIL CSSMathInvert interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSMathInvert" expected property "CSSMathInvert" missing
214
FAIL CSSMathInvert interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSMathInvert" expected property "CSSMathInvert" missing
215
FAIL CSSMathInvert interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSMathInvert" expected property "CSSMathInvert" missing
216
FAIL CSSMathInvert interface: attribute value assert_own_property: self does not have own property "CSSMathInvert" expected property "CSSMathInvert" missing
217
FAIL CSSMathMin interface: existence and properties of interface object assert_own_property: self does not have own property "CSSMathMin" expected property "CSSMathMin" missing
218
FAIL CSSMathMin interface object length assert_own_property: self does not have own property "CSSMathMin" expected property "CSSMathMin" missing
219
FAIL CSSMathMin interface object name assert_own_property: self does not have own property "CSSMathMin" expected property "CSSMathMin" missing
220
FAIL CSSMathMin interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSMathMin" expected property "CSSMathMin" missing
221
FAIL CSSMathMin interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSMathMin" expected property "CSSMathMin" missing
222
FAIL CSSMathMin interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSMathMin" expected property "CSSMathMin" missing
223
FAIL CSSMathMin interface: attribute values assert_own_property: self does not have own property "CSSMathMin" expected property "CSSMathMin" missing
224
FAIL CSSMathMax interface: existence and properties of interface object assert_own_property: self does not have own property "CSSMathMax" expected property "CSSMathMax" missing
225
FAIL CSSMathMax interface object length assert_own_property: self does not have own property "CSSMathMax" expected property "CSSMathMax" missing
226
FAIL CSSMathMax interface object name assert_own_property: self does not have own property "CSSMathMax" expected property "CSSMathMax" missing
227
FAIL CSSMathMax interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSMathMax" expected property "CSSMathMax" missing
228
FAIL CSSMathMax interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSMathMax" expected property "CSSMathMax" missing
229
FAIL CSSMathMax interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSMathMax" expected property "CSSMathMax" missing
230
FAIL CSSMathMax interface: attribute values assert_own_property: self does not have own property "CSSMathMax" expected property "CSSMathMax" missing
231
FAIL CSSMathClamp interface: existence and properties of interface object assert_own_property: self does not have own property "CSSMathClamp" expected property "CSSMathClamp" missing
232
FAIL CSSMathClamp interface object length assert_own_property: self does not have own property "CSSMathClamp" expected property "CSSMathClamp" missing
233
FAIL CSSMathClamp interface object name assert_own_property: self does not have own property "CSSMathClamp" expected property "CSSMathClamp" missing
234
FAIL CSSMathClamp interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSMathClamp" expected property "CSSMathClamp" missing
235
FAIL CSSMathClamp interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSMathClamp" expected property "CSSMathClamp" missing
236
FAIL CSSMathClamp interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSMathClamp" expected property "CSSMathClamp" missing
237
FAIL CSSMathClamp interface: attribute min assert_own_property: self does not have own property "CSSMathClamp" expected property "CSSMathClamp" missing
238
FAIL CSSMathClamp interface: attribute val assert_own_property: self does not have own property "CSSMathClamp" expected property "CSSMathClamp" missing
239
FAIL CSSMathClamp interface: attribute max assert_own_property: self does not have own property "CSSMathClamp" expected property "CSSMathClamp" missing
240
FAIL CSSNumericArray interface: existence and properties of interface object assert_own_property: self does not have own property "CSSNumericArray" expected property "CSSNumericArray" missing
241
FAIL CSSNumericArray interface object length assert_own_property: self does not have own property "CSSNumericArray" expected property "CSSNumericArray" missing
242
FAIL CSSNumericArray interface object name assert_own_property: self does not have own property "CSSNumericArray" expected property "CSSNumericArray" missing
243
FAIL CSSNumericArray interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSNumericArray" expected property "CSSNumericArray" missing
244
FAIL CSSNumericArray interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSNumericArray" expected property "CSSNumericArray" missing
245
FAIL CSSNumericArray interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSNumericArray" expected property "CSSNumericArray" missing
246
FAIL CSSNumericArray interface: iterable<CSSNumericValue> undefined is not an object (evaluating 'this.get_interface_object().prototype')
247
FAIL CSSNumericArray interface: attribute length assert_own_property: self does not have own property "CSSNumericArray" expected property "CSSNumericArray" missing
248
FAIL CSSTransformValue interface: existence and properties of interface object assert_own_property: self does not have own property "CSSTransformValue" expected property "CSSTransformValue" missing
249
FAIL CSSTransformValue interface object length assert_own_property: self does not have own property "CSSTransformValue" expected property "CSSTransformValue" missing
250
FAIL CSSTransformValue interface object name assert_own_property: self does not have own property "CSSTransformValue" expected property "CSSTransformValue" missing
251
FAIL CSSTransformValue interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSTransformValue" expected property "CSSTransformValue" missing
252
FAIL CSSTransformValue interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSTransformValue" expected property "CSSTransformValue" missing
253
FAIL CSSTransformValue interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSTransformValue" expected property "CSSTransformValue" missing
254
FAIL CSSTransformValue interface: iterable<CSSTransformComponent> undefined is not an object (evaluating 'this.get_interface_object().prototype')
255
FAIL CSSTransformValue interface: attribute length assert_own_property: self does not have own property "CSSTransformValue" expected property "CSSTransformValue" missing
256
FAIL CSSTransformValue interface: attribute is2D assert_own_property: self does not have own property "CSSTransformValue" expected property "CSSTransformValue" missing
257
FAIL CSSTransformValue interface: operation toMatrix() assert_own_property: self does not have own property "CSSTransformValue" expected property "CSSTransformValue" missing
258
FAIL CSSTransformValue must be primary interface of transformValue assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
259
FAIL Stringification of transformValue assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
260
FAIL CSSTransformValue interface: transformValue must inherit property "length" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
261
FAIL CSSTransformValue interface: transformValue must inherit property "is2D" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
262
FAIL CSSTransformValue interface: transformValue must inherit property "toMatrix()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
263
FAIL CSSStyleValue interface: transformValue must inherit property "parse(USVString, USVString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
264
FAIL CSSStyleValue interface: calling parse(USVString, USVString) on transformValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
265
FAIL CSSStyleValue interface: transformValue must inherit property "parseAll(USVString, USVString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
266
FAIL CSSStyleValue interface: calling parseAll(USVString, USVString) on transformValue with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
267
FAIL CSSTransformComponent interface: existence and properties of interface object assert_own_property: self does not have own property "CSSTransformComponent" expected property "CSSTransformComponent" missing
268
FAIL CSSTransformComponent interface object length assert_own_property: self does not have own property "CSSTransformComponent" expected property "CSSTransformComponent" missing
269
FAIL CSSTransformComponent interface object name assert_own_property: self does not have own property "CSSTransformComponent" expected property "CSSTransformComponent" missing
270
FAIL CSSTransformComponent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSTransformComponent" expected property "CSSTransformComponent" missing
271
FAIL CSSTransformComponent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSTransformComponent" expected property "CSSTransformComponent" missing
272
FAIL CSSTransformComponent interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSTransformComponent" expected property "CSSTransformComponent" missing
273
FAIL CSSTransformComponent interface: stringifier assert_own_property: self does not have own property "CSSTransformComponent" expected property "CSSTransformComponent" missing
274
FAIL CSSTransformComponent interface: attribute is2D assert_own_property: self does not have own property "CSSTransformComponent" expected property "CSSTransformComponent" missing
275
FAIL CSSTransformComponent interface: operation toMatrix() assert_own_property: self does not have own property "CSSTransformComponent" expected property "CSSTransformComponent" missing
276
FAIL CSSTranslate interface: existence and properties of interface object assert_own_property: self does not have own property "CSSTranslate" expected property "CSSTranslate" missing
277
FAIL CSSTranslate interface object length assert_own_property: self does not have own property "CSSTranslate" expected property "CSSTranslate" missing
278
FAIL CSSTranslate interface object name assert_own_property: self does not have own property "CSSTranslate" expected property "CSSTranslate" missing
279
FAIL CSSTranslate interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSTranslate" expected property "CSSTranslate" missing
280
FAIL CSSTranslate interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSTranslate" expected property "CSSTranslate" missing
281
FAIL CSSTranslate interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSTranslate" expected property "CSSTranslate" missing
282
FAIL CSSTranslate interface: attribute x assert_own_property: self does not have own property "CSSTranslate" expected property "CSSTranslate" missing
283
FAIL CSSTranslate interface: attribute y assert_own_property: self does not have own property "CSSTranslate" expected property "CSSTranslate" missing
284
FAIL CSSTranslate interface: attribute z assert_own_property: self does not have own property "CSSTranslate" expected property "CSSTranslate" missing
285
FAIL CSSTranslate must be primary interface of transformValue[0] assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
286
FAIL Stringification of transformValue[0] assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
287
FAIL CSSTranslate interface: transformValue[0] must inherit property "x" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
288
FAIL CSSTranslate interface: transformValue[0] must inherit property "y" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
289
FAIL CSSTranslate interface: transformValue[0] must inherit property "z" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
290
FAIL CSSTransformComponent interface: transformValue[0] must inherit property "is2D" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
291
FAIL CSSTransformComponent interface: transformValue[0] must inherit property "toMatrix()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: transformValue"
292
FAIL CSSRotate interface: existence and properties of interface object assert_own_property: self does not have own property "CSSRotate" expected property "CSSRotate" missing
293
FAIL CSSRotate interface object length assert_own_property: self does not have own property "CSSRotate" expected property "CSSRotate" missing
294
FAIL CSSRotate interface object name assert_own_property: self does not have own property "CSSRotate" expected property "CSSRotate" missing
295
FAIL CSSRotate interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSRotate" expected property "CSSRotate" missing
296
FAIL CSSRotate interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSRotate" expected property "CSSRotate" missing
297
FAIL CSSRotate interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSRotate" expected property "CSSRotate" missing
298
FAIL CSSRotate interface: attribute x assert_own_property: self does not have own property "CSSRotate" expected property "CSSRotate" missing
299
FAIL CSSRotate interface: attribute y assert_own_property: self does not have own property "CSSRotate" expected property "CSSRotate" missing
300
FAIL CSSRotate interface: attribute z assert_own_property: self does not have own property "CSSRotate" expected property "CSSRotate" missing
301
FAIL CSSRotate interface: attribute angle assert_own_property: self does not have own property "CSSRotate" expected property "CSSRotate" missing
302
FAIL CSSRotate must be primary interface of rotate assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: rotate"
303
FAIL Stringification of rotate assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: rotate"
304
FAIL CSSRotate interface: rotate must inherit property "x" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: rotate"
305
FAIL CSSRotate interface: rotate must inherit property "y" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: rotate"
306
FAIL CSSRotate interface: rotate must inherit property "z" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: rotate"
307
FAIL CSSRotate interface: rotate must inherit property "angle" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: rotate"
308
FAIL CSSTransformComponent interface: rotate must inherit property "is2D" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: rotate"
309
FAIL CSSTransformComponent interface: rotate must inherit property "toMatrix()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: rotate"
310
FAIL CSSScale interface: existence and properties of interface object assert_own_property: self does not have own property "CSSScale" expected property "CSSScale" missing
311
FAIL CSSScale interface object length assert_own_property: self does not have own property "CSSScale" expected property "CSSScale" missing
312
FAIL CSSScale interface object name assert_own_property: self does not have own property "CSSScale" expected property "CSSScale" missing
313
FAIL CSSScale interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSScale" expected property "CSSScale" missing
314
FAIL CSSScale interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSScale" expected property "CSSScale" missing
315
FAIL CSSScale interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSScale" expected property "CSSScale" missing
316
FAIL CSSScale interface: attribute x assert_own_property: self does not have own property "CSSScale" expected property "CSSScale" missing
317
FAIL CSSScale interface: attribute y assert_own_property: self does not have own property "CSSScale" expected property "CSSScale" missing
318
FAIL CSSScale interface: attribute z assert_own_property: self does not have own property "CSSScale" expected property "CSSScale" missing
319
FAIL CSSScale must be primary interface of scale assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: scale"
320
FAIL Stringification of scale assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: scale"
321
FAIL CSSScale interface: scale must inherit property "x" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: scale"
322
FAIL CSSScale interface: scale must inherit property "y" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: scale"
323
FAIL CSSScale interface: scale must inherit property "z" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: scale"
324
FAIL CSSTransformComponent interface: scale must inherit property "is2D" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: scale"
325
FAIL CSSTransformComponent interface: scale must inherit property "toMatrix()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: scale"
326
FAIL CSSSkew interface: existence and properties of interface object assert_own_property: self does not have own property "CSSSkew" expected property "CSSSkew" missing
327
FAIL CSSSkew interface object length assert_own_property: self does not have own property "CSSSkew" expected property "CSSSkew" missing
328
FAIL CSSSkew interface object name assert_own_property: self does not have own property "CSSSkew" expected property "CSSSkew" missing
329
FAIL CSSSkew interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSSkew" expected property "CSSSkew" missing
330
FAIL CSSSkew interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSSkew" expected property "CSSSkew" missing
331
FAIL CSSSkew interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSSkew" expected property "CSSSkew" missing
332
FAIL CSSSkew interface: attribute ax assert_own_property: self does not have own property "CSSSkew" expected property "CSSSkew" missing
333
FAIL CSSSkew interface: attribute ay assert_own_property: self does not have own property "CSSSkew" expected property "CSSSkew" missing
334
FAIL CSSSkew must be primary interface of skew assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skew"
335
FAIL Stringification of skew assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skew"
336
FAIL CSSSkew interface: skew must inherit property "ax" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skew"
337
FAIL CSSSkew interface: skew must inherit property "ay" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skew"
338
FAIL CSSTransformComponent interface: skew must inherit property "is2D" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skew"
339
FAIL CSSTransformComponent interface: skew must inherit property "toMatrix()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skew"
340
FAIL CSSSkewX interface: existence and properties of interface object assert_own_property: self does not have own property "CSSSkewX" expected property "CSSSkewX" missing
341
FAIL CSSSkewX interface object length assert_own_property: self does not have own property "CSSSkewX" expected property "CSSSkewX" missing
342
FAIL CSSSkewX interface object name assert_own_property: self does not have own property "CSSSkewX" expected property "CSSSkewX" missing
343
FAIL CSSSkewX interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSSkewX" expected property "CSSSkewX" missing
344
FAIL CSSSkewX interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSSkewX" expected property "CSSSkewX" missing
345
FAIL CSSSkewX interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSSkewX" expected property "CSSSkewX" missing
346
FAIL CSSSkewX interface: attribute ax assert_own_property: self does not have own property "CSSSkewX" expected property "CSSSkewX" missing
347
FAIL CSSSkewX must be primary interface of skewX assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skewX"
348
FAIL Stringification of skewX assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skewX"
349
FAIL CSSSkewX interface: skewX must inherit property "ax" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skewX"
350
FAIL CSSTransformComponent interface: skewX must inherit property "is2D" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skewX"
351
FAIL CSSTransformComponent interface: skewX must inherit property "toMatrix()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skewX"
352
FAIL CSSSkewY interface: existence and properties of interface object assert_own_property: self does not have own property "CSSSkewY" expected property "CSSSkewY" missing
353
FAIL CSSSkewY interface object length assert_own_property: self does not have own property "CSSSkewY" expected property "CSSSkewY" missing
354
FAIL CSSSkewY interface object name assert_own_property: self does not have own property "CSSSkewY" expected property "CSSSkewY" missing
355
FAIL CSSSkewY interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSSkewY" expected property "CSSSkewY" missing
356
FAIL CSSSkewY interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSSkewY" expected property "CSSSkewY" missing
357
FAIL CSSSkewY interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSSkewY" expected property "CSSSkewY" missing
358
FAIL CSSSkewY interface: attribute ay assert_own_property: self does not have own property "CSSSkewY" expected property "CSSSkewY" missing
359
FAIL CSSSkewY must be primary interface of skewY assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skewY"
360
FAIL Stringification of skewY assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skewY"
361
FAIL CSSSkewY interface: skewY must inherit property "ay" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skewY"
362
FAIL CSSTransformComponent interface: skewY must inherit property "is2D" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skewY"
363
FAIL CSSTransformComponent interface: skewY must inherit property "toMatrix()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: skewY"
364
FAIL CSSPerspective interface: existence and properties of interface object assert_own_property: self does not have own property "CSSPerspective" expected property "CSSPerspective" missing
365
FAIL CSSPerspective interface object length assert_own_property: self does not have own property "CSSPerspective" expected property "CSSPerspective" missing
366
FAIL CSSPerspective interface object name assert_own_property: self does not have own property "CSSPerspective" expected property "CSSPerspective" missing
367
FAIL CSSPerspective interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSPerspective" expected property "CSSPerspective" missing
368
FAIL CSSPerspective interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSPerspective" expected property "CSSPerspective" missing
369
FAIL CSSPerspective interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSPerspective" expected property "CSSPerspective" missing
370
FAIL CSSPerspective interface: attribute length assert_own_property: self does not have own property "CSSPerspective" expected property "CSSPerspective" missing
371
FAIL CSSPerspective must be primary interface of perspective assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: perspective"
372
FAIL Stringification of perspective assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: perspective"
373
FAIL CSSPerspective interface: perspective must inherit property "length" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: perspective"
374
FAIL CSSTransformComponent interface: perspective must inherit property "is2D" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: perspective"
375
FAIL CSSTransformComponent interface: perspective must inherit property "toMatrix()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: perspective"
376
FAIL CSSMatrixComponent interface: existence and properties of interface object assert_own_property: self does not have own property "CSSMatrixComponent" expected property "CSSMatrixComponent" missing
377
FAIL CSSMatrixComponent interface object length assert_own_property: self does not have own property "CSSMatrixComponent" expected property "CSSMatrixComponent" missing
378
FAIL CSSMatrixComponent interface object name assert_own_property: self does not have own property "CSSMatrixComponent" expected property "CSSMatrixComponent" missing
379
FAIL CSSMatrixComponent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSMatrixComponent" expected property "CSSMatrixComponent" missing
380
FAIL CSSMatrixComponent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSMatrixComponent" expected property "CSSMatrixComponent" missing
381
FAIL CSSMatrixComponent interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSMatrixComponent" expected property "CSSMatrixComponent" missing
382
FAIL CSSMatrixComponent interface: attribute matrix assert_own_property: self does not have own property "CSSMatrixComponent" expected property "CSSMatrixComponent" missing
383
FAIL CSSMatrixComponent must be primary interface of matrix assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: matrix"
384
FAIL Stringification of matrix assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: matrix"
385
FAIL CSSMatrixComponent interface: matrix must inherit property "matrix" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: matrix"
386
FAIL CSSTransformComponent interface: matrix must inherit property "is2D" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: matrix"
387
FAIL CSSTransformComponent interface: matrix must inherit property "toMatrix()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: matrix"
388
PASS CSSImageValue interface: existence and properties of interface object
389
PASS CSSImageValue interface object length
390
PASS CSSImageValue interface object name
391
PASS CSSImageValue interface: existence and properties of interface prototype object
392
PASS CSSImageValue interface: existence and properties of interface prototype object's "constructor" property
393
PASS CSSImageValue interface: existence and properties of interface prototype object's @@unscopables property
394
FAIL CSSColorValue interface: existence and properties of interface object assert_own_property: self does not have own property "CSSColorValue" expected property "CSSColorValue" missing
395
FAIL CSSColorValue interface object length assert_own_property: self does not have own property "CSSColorValue" expected property "CSSColorValue" missing
396
FAIL CSSColorValue interface object name assert_own_property: self does not have own property "CSSColorValue" expected property "CSSColorValue" missing
397
FAIL CSSColorValue interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSColorValue" expected property "CSSColorValue" missing
398
FAIL CSSColorValue interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSColorValue" expected property "CSSColorValue" missing
399
FAIL CSSColorValue interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSColorValue" expected property "CSSColorValue" missing
400
FAIL CSSColorValue interface: attribute colorSpace assert_own_property: self does not have own property "CSSColorValue" expected property "CSSColorValue" missing
401
FAIL CSSColorValue interface: operation to(CSSKeywordish) assert_own_property: self does not have own property "CSSColorValue" expected property "CSSColorValue" missing
402
FAIL CSSColorValue interface: operation parse(USVString) assert_own_property: self does not have own property "CSSColorValue" expected property "CSSColorValue" missing
403
FAIL CSSRGB interface: existence and properties of interface object assert_own_property: self does not have own property "CSSRGB" expected property "CSSRGB" missing
404
FAIL CSSRGB interface object length assert_own_property: self does not have own property "CSSRGB" expected property "CSSRGB" missing
405
FAIL CSSRGB interface object name assert_own_property: self does not have own property "CSSRGB" expected property "CSSRGB" missing
406
FAIL CSSRGB interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSRGB" expected property "CSSRGB" missing
407
FAIL CSSRGB interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSRGB" expected property "CSSRGB" missing
408
FAIL CSSRGB interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSRGB" expected property "CSSRGB" missing
409
FAIL CSSRGB interface: attribute r assert_own_property: self does not have own property "CSSRGB" expected property "CSSRGB" missing
410
FAIL CSSRGB interface: attribute g assert_own_property: self does not have own property "CSSRGB" expected property "CSSRGB" missing
411
FAIL CSSRGB interface: attribute b assert_own_property: self does not have own property "CSSRGB" expected property "CSSRGB" missing
412
FAIL CSSRGB interface: attribute alpha assert_own_property: self does not have own property "CSSRGB" expected property "CSSRGB" missing
413
FAIL CSSHSL interface: existence and properties of interface object assert_own_property: self does not have own property "CSSHSL" expected property "CSSHSL" missing
414
FAIL CSSHSL interface object length assert_own_property: self does not have own property "CSSHSL" expected property "CSSHSL" missing
415
FAIL CSSHSL interface object name assert_own_property: self does not have own property "CSSHSL" expected property "CSSHSL" missing
416
FAIL CSSHSL interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSHSL" expected property "CSSHSL" missing
417
FAIL CSSHSL interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSHSL" expected property "CSSHSL" missing
418
FAIL CSSHSL interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSHSL" expected property "CSSHSL" missing
419
FAIL CSSHSL interface: attribute h assert_own_property: self does not have own property "CSSHSL" expected property "CSSHSL" missing
420
FAIL CSSHSL interface: attribute s assert_own_property: self does not have own property "CSSHSL" expected property "CSSHSL" missing
421
FAIL CSSHSL interface: attribute l assert_own_property: self does not have own property "CSSHSL" expected property "CSSHSL" missing
422
FAIL CSSHSL interface: attribute alpha assert_own_property: self does not have own property "CSSHSL" expected property "CSSHSL" missing
423
FAIL CSSHWB interface: existence and properties of interface object assert_own_property: self does not have own property "CSSHWB" expected property "CSSHWB" missing
424
FAIL CSSHWB interface object length assert_own_property: self does not have own property "CSSHWB" expected property "CSSHWB" missing
425
FAIL CSSHWB interface object name assert_own_property: self does not have own property "CSSHWB" expected property "CSSHWB" missing
426
FAIL CSSHWB interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSHWB" expected property "CSSHWB" missing
427
FAIL CSSHWB interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSHWB" expected property "CSSHWB" missing
428
FAIL CSSHWB interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSHWB" expected property "CSSHWB" missing
429
FAIL CSSHWB interface: attribute h assert_own_property: self does not have own property "CSSHWB" expected property "CSSHWB" missing
430
FAIL CSSHWB interface: attribute w assert_own_property: self does not have own property "CSSHWB" expected property "CSSHWB" missing
431
FAIL CSSHWB interface: attribute b assert_own_property: self does not have own property "CSSHWB" expected property "CSSHWB" missing
432
FAIL CSSHWB interface: attribute alpha assert_own_property: self does not have own property "CSSHWB" expected property "CSSHWB" missing
433
FAIL CSSLCH interface: existence and properties of interface object assert_own_property: self does not have own property "CSSLCH" expected property "CSSLCH" missing
434
FAIL CSSLCH interface object length assert_own_property: self does not have own property "CSSLCH" expected property "CSSLCH" missing
435
FAIL CSSLCH interface object name assert_own_property: self does not have own property "CSSLCH" expected property "CSSLCH" missing
436
FAIL CSSLCH interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSLCH" expected property "CSSLCH" missing
437
FAIL CSSLCH interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSLCH" expected property "CSSLCH" missing
438
FAIL CSSLCH interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSLCH" expected property "CSSLCH" missing
439
FAIL CSSLCH interface: attribute l assert_own_property: self does not have own property "CSSLCH" expected property "CSSLCH" missing
440
FAIL CSSLCH interface: attribute c assert_own_property: self does not have own property "CSSLCH" expected property "CSSLCH" missing
441
FAIL CSSLCH interface: attribute h assert_own_property: self does not have own property "CSSLCH" expected property "CSSLCH" missing
442
FAIL CSSLCH interface: attribute alpha assert_own_property: self does not have own property "CSSLCH" expected property "CSSLCH" missing
443
FAIL CSSLab interface: existence and properties of interface object assert_own_property: self does not have own property "CSSLab" expected property "CSSLab" missing
444
FAIL CSSLab interface object length assert_own_property: self does not have own property "CSSLab" expected property "CSSLab" missing
445
FAIL CSSLab interface object name assert_own_property: self does not have own property "CSSLab" expected property "CSSLab" missing
446
FAIL CSSLab interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSLab" expected property "CSSLab" missing
447
FAIL CSSLab interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSLab" expected property "CSSLab" missing
448
FAIL CSSLab interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSLab" expected property "CSSLab" missing
449
FAIL CSSLab interface: attribute l assert_own_property: self does not have own property "CSSLab" expected property "CSSLab" missing
450
FAIL CSSLab interface: attribute a assert_own_property: self does not have own property "CSSLab" expected property "CSSLab" missing
451
FAIL CSSLab interface: attribute b assert_own_property: self does not have own property "CSSLab" expected property "CSSLab" missing
452
FAIL CSSLab interface: attribute alpha assert_own_property: self does not have own property "CSSLab" expected property "CSSLab" missing
453
FAIL CSSColor interface: existence and properties of interface object assert_own_property: self does not have own property "CSSColor" expected property "CSSColor" missing
454
FAIL CSSColor interface object length assert_own_property: self does not have own property "CSSColor" expected property "CSSColor" missing
455
FAIL CSSColor interface object name assert_own_property: self does not have own property "CSSColor" expected property "CSSColor" missing
456
FAIL CSSColor interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSColor" expected property "CSSColor" missing
457
FAIL CSSColor interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSColor" expected property "CSSColor" missing
458
FAIL CSSColor interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSColor" expected property "CSSColor" missing
459
FAIL CSSDeviceCMYK interface: existence and properties of interface object assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
460
FAIL CSSDeviceCMYK interface object length assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
461
FAIL CSSDeviceCMYK interface object name assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
462
FAIL CSSDeviceCMYK interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
463
FAIL CSSDeviceCMYK interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
464
FAIL CSSDeviceCMYK interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
465
FAIL CSSDeviceCMYK interface: attribute c assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
466
FAIL CSSDeviceCMYK interface: attribute m assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
467
FAIL CSSDeviceCMYK interface: attribute y assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
468
FAIL CSSDeviceCMYK interface: attribute k assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
469
FAIL CSSDeviceCMYK interface: attribute alpha assert_own_property: self does not have own property "CSSDeviceCMYK" expected property "CSSDeviceCMYK" missing
470
FAIL CSSStyleRule interface: attribute styleMap assert_true: The prototype object must have a property "styleMap" expected true got false
471
PASS CSS namespace: operation escape(CSSOMString)
472
FAIL CSS namespace: operation number(double) assert_own_property: namespace object missing operation "number" expected property "number" missing
473
FAIL CSS namespace: operation percent(double) assert_own_property: namespace object missing operation "percent" expected property "percent" missing
474
FAIL CSS namespace: operation em(double) assert_own_property: namespace object missing operation "em" expected property "em" missing
475
FAIL CSS namespace: operation ex(double) assert_own_property: namespace object missing operation "ex" expected property "ex" missing
476
FAIL CSS namespace: operation ch(double) assert_own_property: namespace object missing operation "ch" expected property "ch" missing
477
FAIL CSS namespace: operation ic(double) assert_own_property: namespace object missing operation "ic" expected property "ic" missing
478
FAIL CSS namespace: operation rem(double) assert_own_property: namespace object missing operation "rem" expected property "rem" missing
479
FAIL CSS namespace: operation lh(double) assert_own_property: namespace object missing operation "lh" expected property "lh" missing
480
FAIL CSS namespace: operation rlh(double) assert_own_property: namespace object missing operation "rlh" expected property "rlh" missing
481
FAIL CSS namespace: operation vw(double) assert_own_property: namespace object missing operation "vw" expected property "vw" missing
482
FAIL CSS namespace: operation vh(double) assert_own_property: namespace object missing operation "vh" expected property "vh" missing
483
FAIL CSS namespace: operation vi(double) assert_own_property: namespace object missing operation "vi" expected property "vi" missing
484
FAIL CSS namespace: operation vb(double) assert_own_property: namespace object missing operation "vb" expected property "vb" missing
485
FAIL CSS namespace: operation vmin(double) assert_own_property: namespace object missing operation "vmin" expected property "vmin" missing
486
FAIL CSS namespace: operation vmax(double) assert_own_property: namespace object missing operation "vmax" expected property "vmax" missing
487
FAIL CSS namespace: operation cm(double) assert_own_property: namespace object missing operation "cm" expected property "cm" missing
488
FAIL CSS namespace: operation mm(double) assert_own_property: namespace object missing operation "mm" expected property "mm" missing
489
FAIL CSS namespace: operation Q(double) assert_own_property: namespace object missing operation "Q" expected property "Q" missing
490
FAIL CSS namespace: operation in(double) assert_own_property: namespace object missing operation "in" expected property "in" missing
491
FAIL CSS namespace: operation pt(double) assert_own_property: namespace object missing operation "pt" expected property "pt" missing
492
FAIL CSS namespace: operation pc(double) assert_own_property: namespace object missing operation "pc" expected property "pc" missing
493
FAIL CSS namespace: operation px(double) assert_own_property: namespace object missing operation "px" expected property "px" missing
494
FAIL CSS namespace: operation deg(double) assert_own_property: namespace object missing operation "deg" expected property "deg" missing
495
FAIL CSS namespace: operation grad(double) assert_own_property: namespace object missing operation "grad" expected property "grad" missing
496
FAIL CSS namespace: operation rad(double) assert_own_property: namespace object missing operation "rad" expected property "rad" missing
497
FAIL CSS namespace: operation turn(double) assert_own_property: namespace object missing operation "turn" expected property "turn" missing
498
FAIL CSS namespace: operation s(double) assert_own_property: namespace object missing operation "s" expected property "s" missing
499
FAIL CSS namespace: operation ms(double) assert_own_property: namespace object missing operation "ms" expected property "ms" missing
500
FAIL CSS namespace: operation Hz(double) assert_own_property: namespace object missing operation "Hz" expected property "Hz" missing
501
FAIL CSS namespace: operation kHz(double) assert_own_property: namespace object missing operation "kHz" expected property "kHz" missing
502
FAIL CSS namespace: operation dpi(double) assert_own_property: namespace object missing operation "dpi" expected property "dpi" missing
503
FAIL CSS namespace: operation dpcm(double) assert_own_property: namespace object missing operation "dpcm" expected property "dpcm" missing
504
FAIL CSS namespace: operation dppx(double) assert_own_property: namespace object missing operation "dppx" expected property "dppx" missing
505
FAIL CSS namespace: operation fr(double) assert_own_property: namespace object missing operation "fr" expected property "fr" missing
506
PASS SVGElement interface: attribute attributeStyleMap
507
PASS HTMLElement interface: attribute attributeStyleMap
508
FAIL Element interface: operation computedStyleMap() assert_own_property: interface prototype object missing non-static operation expected property "computedStyleMap" missing
509
PASS MathMLElement interface: attribute attributeStyleMap
510
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/idlharness.html +78 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/idlharness.html_sec1
1
<!doctype html>
2
<meta charset=utf-8>
3
<title>CSS Typed OM IDL</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#idl-index">
5
<meta name="timeout" content="long">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="/resources/WebIDLParser.js"></script>
9
<script src="/resources/idlharness.js"></script>
10
11
<style>
12
  body {
13
    font-size: normal;
14
  }
15
</style>
16
17
<script>
18
'use strict';
19
20
idl_test(
21
  ['css-typed-om'],
22
  ['cssom', 'SVG', 'geometry', 'html', 'dom', 'mathml-core'],
23
  idl_array => {
24
    try {
25
      self.styleMap = document.styleSheets[0].rules[0].styleMap;
26
    } catch (e) {}
27
28
    try {
29
      self.unitValue = CSSStyleValue.parse('height', '10px');
30
    } catch (e) {}
31
32
    try {
33
      self.mathSum = CSSStyleValue.parse('width', 'calc(100% - 32px)');
34
    } catch (e) {}
35
36
    try {
37
      self.transformValue = CSSStyleValue.parse('transform', 'translateX(0)');
38
    } catch (e) {}
39
40
    try {
41
      self.rotate = CSSStyleValue.parse('transform', 'rotateX(0)')[0];
42
    } catch (e) {}
43
44
    try {
45
      self.scale = CSSStyleValue.parse('transform', 'scale(1)')[0];
46
    } catch (e) {}
47
48
    try {
49
      self.skew = CSSStyleValue.parse('transform', 'skew(0,0)')[0];
50
      self.skewX = CSSStyleValue.parse('transform', 'skewX(0)')[0];
51
      self.skewY = CSSStyleValue.parse('transform', 'skewY(0)')[0];
52
    } catch (e) {}
53
54
    try {
55
      self.perspective = CSSStyleValue.parse('transform', 'perspective(0)')[0];
56
    } catch (e) {}
57
58
    try {
59
      self.matrix = CSSStyleValue.parse('transform', 'matrix(0, 0, 0, 0, 0, 0)')[0];
60
    } catch (e) {}
61
62
    idl_array.add_objects({
63
      StylePropertyMap: ['styleMap'],
64
      CSSUnitValue: ['unitValue'],
65
      CSSMathSum: ['mathSum'],
66
      CSSTransformValue: ['transformValue'],
67
      CSSTranslate: ['transformValue[0]'],
68
      CSSRotate: ['rotate'],
69
      CSSScale: ['scale'],
70
      CSSSkew: ['skew'],
71
      CSSSkewX: ['skewX'],
72
      CSSSkewY: ['skewY'],
73
      CSSPerspective: ['perspective'],
74
      CSSMatrixComponent: ['matrix'],
75
    });
76
  }
77
);
78
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/resources/testhelper.js +202 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/resources/testhelper.js_sec1
1
function assert_color_channel_approx_equals(a, b) {
2
  // Color is is limited to 32bit RGBA, thus channels are values within 0-255.
3
  // Our epsilon needs to reflect this relatively limited precision.
4
  const EPSILON = 1/255;
5
6
  function epsilonForUnitType(unitType) {
7
    switch(unitType) {
8
      case 'deg':
9
        return EPSILON * 360;
10
      case 'rad':
11
        return EPSILON * 2 * Math.PI;
12
      case 'grad':
13
        return EPSILON * 400;
14
      case 'percent':
15
        return EPSILON * 100;
16
      default:
17
        return EPSILON;
18
    }
19
  }
20
21
  assert_equals(a.constructor.name, b.constructor.name);
22
  const className = a.constructor.name;
23
  switch (className) {
24
    case 'CSSMathSum':
25
    case 'CSSMathProduct':
26
    case 'CSSMathMin':
27
    case 'CSSMathMax':
28
      assert_equals(a.values.length, b.values.length);
29
      for (let i = 0; i < a.length; i++) {
30
        assert_equals(a.unit, b.unit);
31
        assert_approx_equals(a[i].value, b[i].value, epsilonForUnitType(a.unit));
32
      }
33
      break;
34
    default:
35
      assert_equals(a.unit, b.unit);
36
      assert_approx_equals(a.value, b.value, epsilonForUnitType(a.unit));
37
  }
38
}
39
40
// Compares two CSSStyleValues to check if they're the same type
41
// and have the same attributes.
42
function assert_style_value_equals(a, b) {
43
  if (a == null || b == null) {
44
    assert_equals(a, b);
45
    return;
46
  }
47
48
  assert_equals(a.constructor.name, b.constructor.name);
49
  const className = a.constructor.name;
50
  switch (className) {
51
    case 'CSSStyleValue':
52
      assert_equals(a.toString(), b.toString());
53
      break;
54
    case 'CSSKeywordValue':
55
      assert_equals(a.value, b.value);
56
      break;
57
    case 'CSSUnitValue':
58
      assert_approx_equals(a.value, b.value, 1e-6);
59
      assert_equals(a.unit, b.unit);
60
      break;
61
    case 'CSSMathSum':
62
    case 'CSSMathProduct':
63
    case 'CSSMathMin':
64
    case 'CSSMathMax':
65
      assert_style_value_array_equals(a.values, b.values);
66
      break;
67
    case 'CSSMathInvert':
68
    case 'CSSMathNegate':
69
      assert_style_value_equals(a.value, b.value);
70
      break;
71
    case 'CSSUnparsedValue':
72
      assert_style_value_array_equals(a, b);
73
      break;
74
    case 'CSSVariableReferenceValue':
75
      assert_equals(a.variable, b.variable);
76
      assert_style_value_equals(a.fallback, b.fallback);
77
      break;
78
    case 'CSSPositionValue':
79
      assert_style_value_equals(a.x, b.x);
80
      assert_style_value_equals(a.y, b.y);
81
      break;
82
    case 'CSSTransformValue':
83
      assert_style_value_array_equals(a, b);
84
      break;
85
    case 'CSSRotate':
86
      assert_style_value_equals(a.angle, b.angle);
87
      // fallthrough
88
    case 'CSSTranslate':
89
    case 'CSSScale':
90
      assert_style_value_equals(a.x, b.x);
91
      assert_style_value_equals(a.y, b.y);
92
      assert_style_value_equals(a.z, b.z);
93
      assert_style_value_equals(a.is2D, b.is2D);
94
      break;
95
    case 'CSSSkew':
96
      assert_style_value_equals(a.ax, b.ax);
97
      assert_style_value_equals(a.ay, b.ay);
98
      break;
99
    case 'CSSSkewX':
100
      assert_style_value_equals(a.ax, b.ax);
101
      break;
102
    case 'CSSSkewY':
103
      assert_style_value_equals(a.ay, b.ay);
104
      break;
105
    case 'CSSPerspective':
106
      assert_style_value_equals(a.length, b.length);
107
      break;
108
    case 'CSSMatrixComponent':
109
      assert_matrix_approx_equals(a.matrix, b.matrix, 1e-6);
110
      break;
111
    default:
112
      assert_equals(a, b);
113
      break;
114
  }
115
}
116
117
// Compares two arrays of CSSStyleValues to check if every element is equal
118
function assert_style_value_array_equals(a, b) {
119
  assert_equals(a.length, b.length);
120
  for (let i = 0; i < a.length; i++) {
121
    assert_style_value_equals(a[i], b[i]);
122
  }
123
}
124
125
const gValidUnits = [
126
  'number', 'percent', 'em', 'ex', 'ch',
127
  'ic', 'rem', 'lh', 'rlh', 'vw',
128
  'vh', 'vi', 'vb', 'vmin', 'vmax',
129
  'cm', 'mm', 'Q', 'in', 'pt',
130
  'pc', 'px', 'deg', 'grad', 'rad',
131
  'turn', 's', 'ms', 'Hz', 'kHz',
132
  'dpi', 'dpcm', 'dppx', 'fr',
133
];
134
135
// Creates a new div element with specified inline style |cssText|.
136
// The created element is deleted during test cleanup.
137
function createDivWithStyle(test, cssText) {
138
  let element = document.createElement('div');
139
  element.style = cssText || '';
140
  document.body.appendChild(element);
141
  test.add_cleanup(() => {
142
    element.remove();
143
  });
144
  return element;
145
}
146
147
// Creates a new div element with inline style |cssText| and returns
148
// its inline style property map.
149
function createInlineStyleMap(test, cssText) {
150
  return createElementWithInlineStyleMap(test, cssText)[1]
151
}
152
// Same as createInlineStyleMap but also returns the element itself.
153
function createElementWithInlineStyleMap(test, cssText) {
154
  let elem = createDivWithStyle(test, cssText);
155
  return [elem, elem.attributeStyleMap];
156
}
157
158
// Creates a new div element with inline style |cssText| and returns
159
// its computed style property map.
160
function createComputedStyleMap(test, cssText) {
161
  return createElementWithComputedStyleMap(test, cssText)[1];
162
}
163
// Same as createComputedStyleMap but also returns the element itself.
164
function createElementWithComputedStyleMap(test, cssText) {
165
  let elem = createDivWithStyle(test, cssText);
166
  return [elem, elem.computedStyleMap()];
167
}
168
169
// Creates a new style element with a rule |cssText| and returns
170
// its declared style property map.
171
function createDeclaredStyleMap(test, cssText) {
172
  return createRuleWithDeclaredStyleMap(test, cssText)[1];
173
}
174
// Same as createDeclaredStyleMap but also returns the rule itself.
175
function createRuleWithDeclaredStyleMap(test, cssText) {
176
  const style = document.createElement('style');
177
  document.head.appendChild(style);
178
  const rule = style.sheet.cssRules[style.sheet.insertRule('#test { ' + cssText + '}')];
179
  test.add_cleanup(() => {
180
    style.remove();
181
  });
182
  return [rule, rule.styleMap];
183
}
184
185
// Creates a new element with background image set to |imageValue|
186
// and returns a new Image element that can be used to attach
187
// event listeners regarding the image.
188
function loadImageResource(test, imageValue) {
189
  // Set a CSSURLImageValue on an element so it can be loaded.
190
  let styleMap = createInlineStyleMap(test, '');
191
  styleMap.set('background-image', imageValue);
192
193
  // add a new Image element to know if the image resource has been loaded
194
  let image = new Image();
195
  image.src = imageValue.url;
196
  return image;
197
}
198
199
function assert_matrix_approx_equals(actual, expected, epsilon) {
200
  assert_array_approx_equals(
201
      actual.toFloat64Array(), expected.toFloat64Array(), epsilon);
202
}
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/rotate-by-added-angle-expected.txt +18 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/rotate-by-added-angle-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSMathSum
2
layer at (0,0) size 800x600
3
  RenderView at (0,0) size 800x600
4
layer at (0,0) size 800x50
5
  RenderBlock {HTML} at (0,0) size 800x50
6
    RenderBody {BODY} at (8,16) size 784x18
7
      RenderBlock {P} at (0,0) size 784x18
8
        RenderText {#text} at (0,0) size 323x18
9
          text run at (0,0) width 323: "Test passes if there is a filled green rectangle with "
10
        RenderInline {STRONG} at (0,0) size 45x18
11
          RenderText {#text} at (322,0) size 45x18
12
            text run at (322,0) width 45: "no red"
13
        RenderText {#text} at (366,0) size 5x18
14
          text run at (366,0) width 5: "."
15
layer at (100,100) size 200x100
16
  RenderBlock (positioned) {DIV} at (100,100) size 200x100 [bgcolor=#FF0000]
17
layer at (100,100) size 200x100
18
  RenderBlock (positioned) zI: 1 {DIV} at (100,100) size 200x100 [bgcolor=#008000]
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/rotate-by-added-angle-ref.html +17 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/rotate-by-added-angle-ref.html_sec1
1
<!DOCTYPE html>
2
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
3
<link rel="help" href="https://www.w3.org/TR/css-typed-om-1/#stylevalue-subclasses">
4
<meta name="assert" content="CSSUnitValue of different angle units can be added correctly.">
5
<style>
6
.ref {
7
  width: 200px;
8
  height: 100px;
9
  position: absolute;
10
  top: 100px;
11
  left: 100px;
12
  transform: rotate(90deg);
13
  background-color: green;
14
}
15
</style>
16
<p>Test passes if there is a filled green rectangle with <strong>no red</strong>.</p>
17
<div class="ref"></div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/rotate-by-added-angle.html +31 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/rotate-by-added-angle.html_sec1
1
<!DOCTYPE html>
2
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
3
<link rel="help" href="https://www.w3.org/TR/css-typed-om-1/#stylevalue-subclasses">
4
<link rel="match" href="rotate-by-added-angle-ref.html">
5
<meta name="assert" content="CSSUnitValue of different angle units can be added correctly.">
6
<style>
7
.common {
8
  width: 200px;
9
  height: 100px;
10
  position: absolute;
11
  top: 100px;
12
  left: 100px;
13
}
14
.ref {
15
  transform: rotate(90deg);
16
  background-color: red;
17
}
18
.test {
19
  background-color: green;
20
  z-index: 1;
21
}
22
</style>
23
<p>Test passes if there is a filled green rectangle with <strong>no red</strong>.</p>
24
<div class="common ref"></div>
25
<div class="common test"></div>
26
<script>
27
const angle = new CSSMathSum(CSS.deg(45), CSS.turn(0.125)); // 90 degrees
28
const transform = new CSSTransformValue([new CSSRotate(angle)]);
29
const target = document.querySelector('.test');
30
target.attributeStyleMap.set('transform', transform);
31
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/set-var-reference-thcrash-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/set-var-reference-thcrash-expected.txt_sec1
1
2
FAIL Do not crash when referencing a variable with CSSVariableReferenceValue Can't find variable: CSSVariableReferenceValue
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/set-var-reference-thcrash.html +18 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/set-var-reference-thcrash.html_sec1
1
<!DOCTYPE html>
2
<title>Don't crash when setting a CSSVariableReferenceValue</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssvariablereferencevalue">
4
<link rel="help" href="https://crbug.com/986710<">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<style>
8
  :root { --x: green; }
9
</style>
10
<div id="target"></div>
11
<script>
12
  test(function(){
13
    let ref = new CSSVariableReferenceValue('--x')
14
    let unparsed = new CSSUnparsedValue([' ', ref]);
15
    target.attributeStyleMap.set('color', unparsed);
16
    assert_equals('rgb(0, 128, 0)', target.computedStyleMap().get('color').toString());
17
  }, 'Do not crash when referencing a variable with CSSVariableReferenceValue');
18
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-ident.tentative-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-ident.tentative-expected.txt_sec1
1
2
FAIL CSS identifiers are normalized from String to CSSKeywordValues CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('width', 'auto')', 'CSSStyleValue.parse' is undefined)
3
FAIL CSS identifiers are normalized from CSSOM to CSSKeywordValues Can't find variable: CSSKeywordValue
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-ident.tentative.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-ident.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Identifier normalization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#normalize-ident">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(() => {
13
  assert_style_value_equals(CSSStyleValue.parse('width', 'auto'),
14
      new CSSKeywordValue('auto'));
15
}, 'CSS identifiers are normalized from String to CSSKeywordValues');
16
17
test(t => {
18
  assert_style_value_equals(
19
      createDivWithStyle(t, 'width: auto').attributeStyleMap.get('width'),
20
      new CSSKeywordValue('auto'));
21
}, 'CSS identifiers are normalized from CSSOM to CSSKeywordValues');
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-image-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-image-expected.txt_sec1
1
2
FAIL Normalizing a valid <url> returns a CSSImageValue CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('background-image', 'url("' + gTestUrl + '")')', 'CSSStyleValue.parse' is undefined)
3
FAIL Normalizing a bad <url> returns a CSSImageValue CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('background-image', 'url("' + gBadTestUrl + '")')', 'CSSStyleValue.parse' is undefined)
4
FAIL Normalizing a <gradient> returns a CSSImageValue CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('background-image', 'linear-gradient(red, orange)')', 'CSSStyleValue.parse' is undefined)
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-image.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-image.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSImageValue normalization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#resourcevalue-normalization">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
const gTestUrl = '/media/1x1-green.png';
13
const gBadTestUrl = document.location.href;
14
15
test(t => {
16
  const result = CSSStyleValue.parse('background-image', 'url("' + gTestUrl + '")');
17
  assert_class_string(result, 'CSSImageValue');
18
}, 'Normalizing a valid <url> returns a CSSImageValue');
19
20
test(t => {
21
  const result = CSSStyleValue.parse('background-image', 'url("' + gBadTestUrl + '")');
22
  assert_class_string(result, 'CSSImageValue');
23
}, 'Normalizing a bad <url> returns a CSSImageValue');
24
25
test(t => {
26
  const result = CSSStyleValue.parse('background-image', 'linear-gradient(red, orange)');
27
  assert_equals(result.constructor.name, 'CSSImageValue');
28
}, 'Normalizing a <gradient> returns a CSSImageValue');
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-numeric.tentative-expected.txt +8 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-numeric.tentative-expected.txt_sec1
1
2
FAIL Normalizing a <number> returns a number CSSUnitValue CSS.number is not a function. (In 'CSS.number(3.14)', 'CSS.number' is undefined)
3
FAIL Normalizing a <percentage> returns a percent CSSUnitValue CSS.percent is not a function. (In 'CSS.percent(3.14)', 'CSS.percent' is undefined)
4
FAIL Normalizing a <dimension> returns a CSSUnitValue with the correct unit CSS.px is not a function. (In 'CSS.px(3.14)', 'CSS.px' is undefined)
5
FAIL Normalizing a <number> with a unitless zero returns 0 CSS.number is not a function. (In 'CSS.number(0)', 'CSS.number' is undefined)
6
FAIL Normalizing a <calc> returns simplified expression Can't find variable: CSSMathSum
7
FAIL Normalizing a <dimension> with a unitless zero returns 0px CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('width', '0px')', 'CSSStyleValue.parse' is undefined)
8
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-numeric.tentative.html +49 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-numeric.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Numeric normalization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#normalize-numeric">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
function test_numeric_normalization(test, property, cssText, expected) {
13
  assert_style_value_equals(CSSNumericValue.parse(cssText), expected);
14
  assert_style_value_equals(CSSStyleValue.parse(property, cssText), expected);
15
  assert_style_value_equals(
16
      createInlineStyleMap(test, property + ': ' + cssText).get(property),
17
      expected);
18
}
19
20
test(t => {
21
  test_numeric_normalization(t, 'line-height', '3.14', CSS.number(3.14));
22
}, 'Normalizing a <number> returns a number CSSUnitValue');
23
24
test(t => {
25
  test_numeric_normalization(t, 'width', '3.14%', CSS.percent(3.14));
26
}, 'Normalizing a <percentage> returns a percent CSSUnitValue');
27
28
test(t => {
29
  test_numeric_normalization(t, 'width', '3.14px', CSS.px(3.14));
30
}, 'Normalizing a <dimension> returns a CSSUnitValue with the correct unit');
31
32
test(t => {
33
  test_numeric_normalization(t, 'opacity', '0', CSS.number(0));
34
}, 'Normalizing a <number> with a unitless zero returns 0');
35
36
test(t => {
37
  test_numeric_normalization(t, 'width',
38
      'calc(1px + calc(1px) + calc(1px * 2) + 1%)',
39
      new CSSMathSum(CSS.px(4), CSS.percent(1)));
40
}, 'Normalizing a <calc> returns simplified expression');
41
42
test(t => {
43
  assert_style_value_equals(CSSStyleValue.parse('width', '0px'), CSS.px(0));
44
  assert_style_value_equals(
45
      createInlineStyleMap(t, 'width: 0').get('width'),
46
      CSS.px(0));
47
}, 'Normalizing a <dimension> with a unitless zero returns 0px');
48
49
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-tokens.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-tokens.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSVariableReferenceValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSVariableReferenceValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-tokens.tentative.html +72 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-tokens.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Normalization of raw CSS tokens tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#normalize-tokens">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
function assert_string_normalizes_to(test, property, str, expected) {
13
  // From string
14
  assert_style_value_equals(CSSStyleValue.parse(property, str), expected);
15
  // From CSSOM
16
  assert_style_value_equals(
17
    createInlineStyleMap(test, property + ':' + str).get(property),
18
    expected
19
  );
20
}
21
22
const gTestCases = [
23
  {
24
    value: 'var(--A)',
25
    expectedResult: [
26
      new CSSVariableReferenceValue('--A'),
27
    ]
28
  },
29
  {
30
    value: 'var(--A, 1em)',
31
    expectedResult: [
32
      new CSSVariableReferenceValue('--A', new CSSUnparsedValue([' 1em'])),
33
    ]
34
  },
35
  {
36
    value: 'var(--A, var(--B))',
37
    expectedResult: [
38
      new CSSVariableReferenceValue('--A', new CSSUnparsedValue([' ', new CSSVariableReferenceValue('--B')])),
39
    ]
40
  },
41
  {
42
    value: 'calc(42px + var(--foo, 15em) + var(--bar, var(--far) + 15px))',
43
    expectedResult: [
44
      'calc(42px + ',
45
      new CSSVariableReferenceValue('--foo', new CSSUnparsedValue([' 15em'])),
46
      ' + ',
47
      new CSSVariableReferenceValue('--bar', new CSSUnparsedValue([' ', new CSSVariableReferenceValue('--far'), ' + 15px'])),
48
      ')',
49
    ]
50
  },
51
];
52
53
for (const {value, expectedResult} of gTestCases) {
54
  test(t => {
55
    assert_string_normalizes_to(t, 'color', value, new CSSUnparsedValue(expectedResult));
56
  }, 'Normalizing "' + value + '" on a CSS property returns correct CSSUnparsedValue');
57
58
  test(t => {
59
    assert_string_normalizes_to(t, 'margin', value, new CSSUnparsedValue(expectedResult));
60
    assert_false(true);
61
  }, 'Normalizing "' + value + '" on a shorthand returns correct CSSUnparsedValue');
62
63
  test(t => {
64
    assert_string_normalizes_to(t, 'transition-duration', value, new CSSUnparsedValue(expectedResult));
65
  }, 'Normalizing "' + value + '" on a list-valued property returns correct CSSUnparsedValue');
66
67
  test(t => {
68
    assert_string_normalizes_to(t, '--X', value, new CSSUnparsedValue(expectedResult));
69
  }, 'Normalizing "' + value + '" on a custom property returns correct CSSUnparsedValue');
70
}
71
72
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/positionvalue-normalization.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/positionvalue-normalization.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.percent is not a function. (In 'CSS.percent(0)', 'CSS.percent' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.percent is not a function. (In 'CSS.percent(0)', 'CSS.percent' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/positionvalue-normalization.tentative.html +66 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/positionvalue-normalization.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSPositionValue normalization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#positionvalue-normalization">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
const gSingleTestCases = [
13
  { cssText: 'left', x: CSS.percent(0), y: CSS.percent(50) },
14
  { cssText: 'right', x: CSS.percent(100), y: CSS.percent(50) },
15
  { cssText: 'center', x: CSS.percent(50), y: CSS.percent(50) },
16
  { cssText: 'top', x: CSS.percent(50), y: CSS.percent(0) },
17
  { cssText: 'bottom', x: CSS.percent(50), y: CSS.percent(100) },
18
  { cssText: '3.14px', x: CSS.px(3.14), y: CSS.percent(50) },
19
  { cssText: '25%', x: CSS.percent(25), y: CSS.percent(50) },
20
];
21
22
const gXTestCases = [
23
  { cssText: 'left', x: CSS.percent(0), type: 'ident' },
24
  { cssText: 'center', x: CSS.percent(50), type: 'ident' },
25
  { cssText: 'right', x: CSS.percent(100), type: 'ident' },
26
  { cssText: '3.14px', x: CSS.px(3.14), type: 'length' },
27
  { cssText: '10%', x: CSS.percent(10), type: 'length' },
28
  { cssText: 'calc(1px + 1em)', x: new CSSMathSum(CSS.px(1), CSS.em(1)), type: 'length' },
29
  { cssText: 'left 3.14px', x: CSS.px(3.14), type: 'offset' },
30
  { cssText: 'right 3.14px', x: CSS.percent(100).sub(CSS.px(3.14)), type: 'offset' },
31
];
32
33
const gYTestCases = [
34
  { cssText: 'top', y: CSS.percent(0), type: 'ident' },
35
  { cssText: 'center', y: CSS.percent(50), type: 'ident' },
36
  { cssText: 'bottom', y: CSS.percent(100), type: 'ident' },
37
  { cssText: '3.14px', y: CSS.px(3.14), type: 'length' },
38
  { cssText: '10%', y: CSS.percent(10), type: 'length' },
39
  { cssText: 'calc(1px + 1em)', y: new CSSMathSum(CSS.px(1), CSS.em(1)), type: 'length' },
40
  { cssText: 'top 3.14px', y: CSS.px(3.14), type: 'offset' },
41
  { cssText: 'bottom 3.14px', y: CSS.percent(100).sub(CSS.px(3.14)), type: 'offset' },
42
];
43
44
for (const {cssText, x, y} of gSingleTestCases) {
45
    test(t => {
46
      const styleMap = createInlineStyleMap(t, 'object-position: ' + cssText);
47
      assert_style_value_equals(styleMap.get('object-position'), new CSSPositionValue(x, y));
48
    }, 'CSS <position> value "' + cssText + '" normalizes to CSSPositionValue');
49
}
50
51
for (const {cssText: xCssText, x, type: xType} of gXTestCases) {
52
  for (const {cssText: yCssText, y, type: yType} of gYTestCases) {
53
    const cssText = xCssText + ' ' + yCssText;
54
55
    // Can't have position values with 3 parts
56
    if ((xType === 'offset') !== (yType === 'offset'))
57
      continue;
58
59
    test(t => {
60
      const styleMap = createInlineStyleMap(t, 'object-position: ' + cssText);
61
      assert_style_value_equals(styleMap.get('object-position'), new CSSPositionValue(x, y));
62
    }, 'CSS <position> value "' + cssText + '" normalizes to CSSPositionValue');
63
  }
64
}
65
66
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/transformvalue-normalization.tentative-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/transformvalue-normalization.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSTranslate
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSTranslate
4
5
FAIL Normalizing a matrix() returns a CSSMatrixComponent Can't find variable: CSSTransformValue
6
FAIL Normalizing a matrix3d() returns a CSSMatrixComponent Can't find variable: CSSTransformValue
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/transformvalue-normalization.tentative.html +182 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-normalization/transformvalue-normalization.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Transform normalization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#transformvalue-normalization">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/comparisons.js"></script>
8
<script src="../resources/testhelper.js"></script>
9
<body>
10
<script>
11
'use strict';
12
13
function test_transform_normalization(test, cssText, expected) {
14
  assert_style_value_equals(CSSStyleValue.parse('transform', cssText), expected);
15
  assert_style_value_equals(
16
      createInlineStyleMap(test, 'transform: ' + cssText).get('transform'),
17
      expected);
18
}
19
20
test(t => {
21
  test_transform_normalization(t, 'matrix(1, 2, 3, 4, 5, 6)',
22
      new CSSTransformValue([
23
        new CSSMatrixComponent(new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6]))
24
      ]));
25
}, 'Normalizing a matrix() returns a CSSMatrixComponent');
26
27
test(t => {
28
  test_transform_normalization(t,
29
      'matrix3d(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)',
30
      new CSSTransformValue([
31
        new CSSMatrixComponent(new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]))
32
      ]));
33
}, 'Normalizing a matrix3d() returns a CSSMatrixComponent');
34
35
const gTestCases = [
36
  {
37
    cssText: 'translate(1px)',
38
    expected: new CSSTranslate(CSS.px(1), CSS.px(0)),
39
    desc: 'translate() with X'
40
  },
41
  {
42
    cssText: 'translate(1%, 1px)',
43
    expected: new CSSTranslate(CSS.percent(1), CSS.px(1)),
44
    desc: 'translate() with X and Y'
45
  },
46
  {
47
    cssText: 'translateX(1%)',
48
    expected: new CSSTranslate(CSS.percent(1), CSS.px(0)),
49
    desc: 'translateX()'
50
  },
51
  {
52
    cssText: 'translateY(1px)',
53
    expected: new CSSTranslate(CSS.px(0), CSS.px(1)),
54
    desc: 'translateY()'
55
  },
56
  {
57
    cssText: 'translate3d(1px, 2%, 3px)',
58
    expected: new CSSTranslate(CSS.px(1), CSS.percent(2), CSS.px(3)),
59
    desc: 'translate3d()'
60
  },
61
  {
62
    cssText: 'translateZ(1px)',
63
    expected: new CSSTranslate(CSS.px(0), CSS.px(0), CSS.px(1)),
64
    desc: 'translateZ()'
65
  },
66
  {
67
    cssText: 'scale(2)',
68
    expected: new CSSScale(CSS.number(2), CSS.number(2)),
69
    desc: 'scale() with one argument'
70
  },
71
  {
72
    cssText: 'scale(2, 3)',
73
    expected: new CSSScale(CSS.number(2), CSS.number(3)),
74
    desc: 'scale() with two arguments'
75
  },
76
  {
77
    cssText: 'scaleX(2)',
78
    expected: new CSSScale(CSS.number(2), CSS.number(1)),
79
    desc: 'scaleX()'
80
  },
81
  {
82
    cssText: 'scaleY(2)',
83
    expected: new CSSScale(CSS.number(1), CSS.number(2)),
84
    desc: 'scaleY()'
85
  },
86
  {
87
    cssText: 'scale3d(1, 2, 3)',
88
    expected: new CSSScale(CSS.number(1), CSS.number(2), CSS.number(3)),
89
    desc: 'scale3d()'
90
  },
91
  {
92
    cssText: 'scaleZ(2)',
93
    expected: new CSSScale(CSS.number(1), CSS.number(1), CSS.number(2)),
94
    desc: 'scaleZ()'
95
  },
96
  {
97
    cssText: 'rotate(90deg)',
98
    expected: new CSSRotate(CSS.deg(90)),
99
    desc: 'rotate()'
100
  },
101
  {
102
    cssText: 'rotate3d(1, 2, 3, 90deg)',
103
    expected: new CSSRotate(CSS.number(1), CSS.number(2), CSS.number(3), CSS.deg(90)),
104
    desc: 'rotate3d()'
105
  },
106
  {
107
    cssText: 'rotateX(90deg)',
108
    expected: new CSSRotate(CSS.number(1), CSS.number(0), CSS.number(0), CSS.deg(90)),
109
    desc: 'rotateX()'
110
  },
111
  {
112
    cssText: 'rotateY(90deg)',
113
    expected: new CSSRotate(CSS.number(0), CSS.number(1), CSS.number(0), CSS.deg(90)),
114
    desc: 'rotateY()'
115
  },
116
  {
117
    cssText: 'rotateZ(90deg)',
118
    expected: new CSSRotate(CSS.number(0), CSS.number(0), CSS.number(1), CSS.deg(90)),
119
    desc: 'rotateZ()'
120
  },
121
  {
122
    cssText: 'skew(90deg)',
123
    expected: new CSSSkew(CSS.deg(90), CSS.deg(0)),
124
    desc: 'skew() with only X'
125
  },
126
  {
127
    cssText: 'skew(90deg, 0deg)',
128
    expected: new CSSSkew(CSS.deg(90), CSS.deg(0)),
129
    desc: 'skew() with X and Y which is 0 value'
130
  },
131
  {
132
    cssText: 'skew(90deg, 45deg)',
133
    expected: new CSSSkew(CSS.deg(90), CSS.deg(45)),
134
    desc: 'skew() with X and Y'
135
  },
136
  {
137
    cssText: 'skewX(90deg)',
138
    expected: new CSSSkewX(CSS.deg(90)),
139
    desc: 'skewX()'
140
  },
141
  {
142
    cssText: 'skewY(90deg)',
143
    expected: new CSSSkewY(CSS.deg(90)),
144
    desc: 'skewY()'
145
  },
146
  {
147
    cssText: 'perspective(1px)',
148
    expected: new CSSPerspective(CSS.px(1)),
149
    desc: 'perspective()'
150
  },
151
];
152
153
for (const {cssText, expected, desc} of gTestCases) {
154
  test(t => {
155
    test_transform_normalization(t, cssText, new CSSTransformValue([expected]));
156
  }, 'Normalizing a ' + desc + ' returns a ' + expected.constructor.name);
157
}
158
159
test(t => {
160
  test_transform_normalization(t,
161
      'translate(1px) rotateX(90deg) perspective(1px) skew(90deg) skewX(20deg) skewY(30deg) scale3d(1, 2, 3)',
162
      new CSSTransformValue([
163
        new CSSTranslate(CSS.px(1), CSS.px(0)),
164
        new CSSRotate(CSS.number(1), CSS.number(0), CSS.number(0), CSS.deg(90)),
165
        new CSSPerspective(CSS.px(1)),
166
        new CSSSkew(CSS.deg(90), CSS.deg(0)),
167
        new CSSSkewX(CSS.deg(20)),
168
        new CSSSkewY(CSS.deg(30)),
169
        new CSSScale(CSS.number(1), CSS.number(2), CSS.number(3)),
170
      ]));
171
}, 'Normalizing a <transform-list> returns a CSSTransformValue containing all the transforms');
172
173
test(t => {
174
  test_transform_normalization(t,
175
      'translate(calc(1px + 1em)) perspective(calc(1px + 1em))',
176
      new CSSTransformValue([
177
        new CSSTranslate(new CSSMathSum(CSS.px(1), CSS.em(1)), CSS.px(0)),
178
        new CSSPerspective(new CSSMathSum(CSS.px(1), CSS.em(1))),
179
      ]));
180
}, 'Normalizing transforms with calc values contains CSSMathValues');
181
182
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parse-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parse-expected.txt_sec1
1
2
FAIL CSSStyleValue.parse() with a valid property returns a CSSStyleValue CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('width', '10px')', 'CSSStyleValue.parse' is undefined)
3
FAIL CSSStyleValue.parse() is not case sensitive CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('WiDtH', '10px')', 'CSSStyleValue.parse' is undefined)
4
FAIL CSSStyleValue.parse() with a valid list-valued property returns a CSSStyleValue CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('transition-duration', '1s, 2s, 3s')', 'CSSStyleValue.parse' is undefined)
5
FAIL CSSStyleValue.parse() with a valid shorthand property returns a CSSStyleValue CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('margin', '1px 2px 3px 4px')', 'CSSStyleValue.parse' is undefined)
6
FAIL CSSStyleValue.parse() with a valid custom property returns a CSSStyleValue CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('--foo', 'auto')', 'CSSStyleValue.parse' is undefined)
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parse-invalid-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parse-invalid-expected.txt_sec1
1
2
PASS CSSStyleValue.parse() with empty property name throws TypeError
3
PASS CSSStyleValue.parse() with unsupported property name throws TypeError
4
PASS CSSStyleValue.parse() with invalid value for valid property throws TypeError
5
PASS CSSStyleValue.parse() with invalid value for shorthand property throws TypeError
6
PASS CSSStyleValue.parse() with invalid value for custom property throws TypeError
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parse-invalid.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parse-invalid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSStyleValue.parse Error Handling</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssstylevalue-parse">
5
<meta name="assert" content="Test CSSStyleValue.parse error handling" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<body>
9
<div id="log"></div>
10
<script>
11
'use strict';
12
13
test(() => {
14
  assert_throws_js(TypeError, () => CSSStyleValue.parse('', 'auto'));
15
}, 'CSSStyleValue.parse() with empty property name throws TypeError');
16
17
test(() => {
18
  assert_throws_js(TypeError, () => CSSStyleValue.parse('lemon', 'auto'));
19
}, 'CSSStyleValue.parse() with unsupported property name throws TypeError');
20
21
test(() => {
22
  assert_throws_js(TypeError, () => CSSStyleValue.parse('width', '10deg'));
23
}, 'CSSStyleValue.parse() with invalid value for valid property throws TypeError');
24
25
test(() => {
26
  assert_throws_js(TypeError, () => CSSStyleValue.parse('margin', '10deg'));
27
}, 'CSSStyleValue.parse() with invalid value for shorthand property throws TypeError');
28
29
test(() => {
30
  assert_throws_js(TypeError, () => CSSStyleValue.parse('--foo', ''));
31
}, 'CSSStyleValue.parse() with invalid value for custom property throws TypeError');
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parse.html +43 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parse.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSStyleValue.parse</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssstylevalue-parse">
5
<meta name="assert" content="Test CSSStyleValue.parse returns CSSStyleValues" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<body>
9
<div id="log"></div>
10
<script>
11
'use strict';
12
13
test(() => {
14
  const result = CSSStyleValue.parse('width', '10px');
15
  assert_true(result instanceof CSSStyleValue,
16
              'Result must be a subclass of CSSStyleValue');
17
}, 'CSSStyleValue.parse() with a valid property returns a CSSStyleValue');
18
19
test(() => {
20
  const result = CSSStyleValue.parse('WiDtH', '10px');
21
  assert_true(result instanceof CSSStyleValue,
22
              'Result must be a subclass of CSSStyleValue');
23
}, 'CSSStyleValue.parse() is not case sensitive');
24
25
test(() => {
26
  const result = CSSStyleValue.parse('transition-duration', '1s, 2s, 3s');
27
  assert_true(result instanceof CSSStyleValue,
28
              'Result must be a subclass of CSSStyleValue');
29
}, 'CSSStyleValue.parse() with a valid list-valued property returns a CSSStyleValue');
30
31
test(() => {
32
  const result = CSSStyleValue.parse('margin', '1px 2px 3px 4px');
33
  assert_true(result instanceof CSSStyleValue,
34
              'Result must be a subclass of CSSStyleValue');
35
}, 'CSSStyleValue.parse() with a valid shorthand property returns a CSSStyleValue');
36
37
test(() => {
38
  const result = CSSStyleValue.parse('--foo', 'auto');
39
  assert_true(result instanceof CSSStyleValue,
40
              'Result must be a subclass of CSSStyleValue');
41
}, 'CSSStyleValue.parse() with a valid custom property returns a CSSStyleValue');
42
43
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll-expected.txt_sec1
1
2
FAIL CSSStyleValue.parseAll() with a valid property returns a list with a single CSSStyleValue CSSStyleValue.parseAll is not a function. (In 'CSSStyleValue.parseAll('width', '10px')', 'CSSStyleValue.parseAll' is undefined)
3
FAIL CSSStyleValue.parseAll() is not case sensitive CSSStyleValue.parseAll is not a function. (In 'CSSStyleValue.parseAll('WiDtH', '10px')', 'CSSStyleValue.parseAll' is undefined)
4
FAIL CSSStyleValue.parseAll() with a valid list-valued property returns a list with a single CSSStyleValue CSSStyleValue.parseAll is not a function. (In 'CSSStyleValue.parseAll('transition-duration', '1s, 2s, 3s')', 'CSSStyleValue.parseAll' is undefined)
5
FAIL CSSStyleValue.parseAll() with a valid shorthand property returns a CSSStyleValue CSSStyleValue.parseAll is not a function. (In 'CSSStyleValue.parseAll('margin', '1px 2px 3px 4px')', 'CSSStyleValue.parseAll' is undefined)
6
FAIL CSSStyleValue.parseAll() with a valid custom property returns a list with a single CSSStyleValue CSSStyleValue.parseAll is not a function. (In 'CSSStyleValue.parseAll('--foo', 'auto')', 'CSSStyleValue.parseAll' is undefined)
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll-invalid-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll-invalid-expected.txt_sec1
1
2
PASS CSSStyleValue.parseAll() with empty property name throws TypeError
3
PASS CSSStyleValue.parseAll() with unsupported property name throws TypeError
4
PASS CSSStyleValue.parseAll() with invalid value for valid property throws TypeError
5
PASS CSSStyleValue.parseAll() with invalid value for shorthand property throws TypeError
6
PASS CSSStyleValue.parseAll() with invalid value for custom property throws TypeError
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll-invalid.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll-invalid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSStyleValue.parseAll Error Handling</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssstylevalue-parseall">
5
<meta name="assert" content="Test CSSStyleValue.parseAll error handling" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<body>
9
<div id="log"></div>
10
<script>
11
'use strict';
12
13
test(() => {
14
  assert_throws_js(TypeError, () => CSSStyleValue.parseAll('', 'auto'));
15
}, 'CSSStyleValue.parseAll() with empty property name throws TypeError');
16
17
test(() => {
18
  assert_throws_js(TypeError, () => CSSStyleValue.parseAll('lemon', 'auto'));
19
}, 'CSSStyleValue.parseAll() with unsupported property name throws TypeError');
20
21
test(() => {
22
  assert_throws_js(TypeError, () => CSSStyleValue.parseAll('width', '10deg'));
23
}, 'CSSStyleValue.parseAll() with invalid value for valid property throws TypeError');
24
25
test(() => {
26
  assert_throws_js(TypeError, () => CSSStyleValue.parseAll('margin', '10deg'));
27
}, 'CSSStyleValue.parseAll() with invalid value for shorthand property throws TypeError');
28
29
test(() => {
30
  assert_throws_js(TypeError, () => CSSStyleValue.parseAll('--foo', ''));
31
}, 'CSSStyleValue.parseAll() with invalid value for custom property throws TypeError');
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll.html +50 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSStyleValue.parseAll</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssstylevalue-parseall">
5
<meta name="assert" content="Test CSSStyleValue.parseAll returns CSSStyleValues" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<body>
9
<div id="log"></div>
10
<script>
11
'use strict';
12
13
test(() => {
14
  const result = CSSStyleValue.parseAll('width', '10px');
15
  assert_equals(result.length, 1, 'Result must be a list with one element');
16
  assert_true(result[0] instanceof CSSStyleValue,
17
              'Only element in result must be a subclass of CSSStyleValue');
18
}, 'CSSStyleValue.parseAll() with a valid property returns a list with a single CSSStyleValue');
19
20
test(() => {
21
  const result = CSSStyleValue.parseAll('WiDtH', '10px');
22
  assert_equals(result.length, 1, 'Result must be a list with one element');
23
  assert_true(result[0] instanceof CSSStyleValue,
24
              'Only element in result must be a subclass of CSSStyleValue');
25
}, 'CSSStyleValue.parseAll() is not case sensitive');
26
27
test(() => {
28
  const result = CSSStyleValue.parseAll('transition-duration', '1s, 2s, 3s');
29
  assert_equals(result.length, 3, 'Result must be a list with three elements');
30
  for (const item of result) {
31
    assert_true(item instanceof CSSStyleValue,
32
                'All elements in result must be a subclass of CSSStyleValue');
33
  }
34
}, 'CSSStyleValue.parseAll() with a valid list-valued property returns a list with a single CSSStyleValue');
35
36
test(() => {
37
  const result = CSSStyleValue.parseAll('margin', '1px 2px 3px 4px');
38
  assert_equals(result.length, 1, 'Result must be a list with one element');
39
  assert_true(result[0] instanceof CSSStyleValue,
40
              'Only element in result must be a subclass of CSSStyleValue');
41
}, 'CSSStyleValue.parseAll() with a valid shorthand property returns a CSSStyleValue');
42
43
test(() => {
44
  const result = CSSStyleValue.parseAll('--foo', 'auto');
45
  assert_equals(result.length, 1, 'Result must be a list with one element');
46
  assert_true(result[0] instanceof CSSStyleValue,
47
              'Only element in result must be a subclass of CSSStyleValue');
48
}, 'CSSStyleValue.parseAll() with a valid custom property returns a list with a single CSSStyleValue');
49
50
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/crashtests/cssTransform-Internal-value-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/crashtests/cssTransform-Internal-value-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.px is not a function. (In 'CSS.px(1)', 'CSS.px' is undefined)
2
layer at (0,0) size 800x600
3
  RenderView at (0,0) size 800x600
4
layer at (0,0) size 800x8
5
  RenderBlock {HTML} at (0,0) size 800x8
6
    RenderBody {BODY} at (8,8) size 784x0
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/crashtests/cssTransform-Internal-value.html +12 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/crashtests/cssTransform-Internal-value.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<link rel="help" href="https://crbug.com/1204782">
4
<title>Serialize transform components must not crash when the internal CSS value is null</title>
5
6
<script>
7
    var v98 = new CSSUnitValue(1, "px");
8
    var v100 = v98.div(CSS.px(1));
9
    var v106 = v98.mul(v100);
10
    var v201 = new CSSTranslate(v106,  v98,  v98);
11
    v201.toString()
12
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssImageValue-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssImageValue-expected.txt_sec1
1
2
PASS CSSUrlImageValue serializes correctly
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssImageValue.html +19 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssImageValue.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSURLImageValue serialization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#urlimagevalue-serialization">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<div id="log"></div>
10
<div id="testUrl" style="background-image: url('/media/1x1-green.png')"></div>
11
<script>
12
'use strict';
13
14
test(() => {
15
  const result = document.getElementById('testUrl').attributeStyleMap.get('background-image');
16
  assert_equals(result.toString(), 'url("/media/1x1-green.png")');
17
}, 'CSSUrlImageValue serializes correctly');
18
19
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssKeywordValue.tentative-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssKeywordValue.tentative-expected.txt_sec1
1
2
FAIL CSSKeywordValue constructed from IDL serializes correctly Can't find variable: CSSKeywordValue
3
FAIL CSSKeywordValue constructed from IDL serializes to escaped strings Can't find variable: CSSKeywordValue
4
FAIL CSSKeywordValue from DOMString modified through "value" setter serializes correctly CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('width', 'auto')', 'CSSStyleValue.parse' is undefined)
5
FAIL CSSKeywordValue from CSSOM modified through "value" setter serializes correctly assert_equals: expected "lemon" but got "auto"
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssKeywordValue.tentative.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssKeywordValue.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>IDL-constructed CSSKeywordValue serialization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#unparsedvalue-serialization">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(() => {
13
  assert_equals(new CSSKeywordValue('auto').toString(), 'auto');
14
  assert_equals(new CSSKeywordValue('inherit').toString(), 'inherit');
15
  assert_equals(new CSSKeywordValue('lemon').toString(), 'lemon');
16
}, 'CSSKeywordValue constructed from IDL serializes correctly');
17
18
test(() => {
19
  assert_equals(new CSSKeywordValue(' Hello World').toString(), CSS.escape(' Hello World'));
20
  assert_equals(new CSSKeywordValue('3').toString(), CSS.escape('3'));
21
}, 'CSSKeywordValue constructed from IDL serializes to escaped strings');
22
23
test(() => {
24
  let result = CSSStyleValue.parse('width', 'auto');
25
  result.value = 'lemon';
26
  assert_equals(result.toString(), 'lemon');
27
}, 'CSSKeywordValue from DOMString modified through "value" setter serializes correctly');
28
29
test(t => {
30
  let result = createInlineStyleMap(t, 'width: auto').get('width');
31
  result.value = 'lemon';
32
  assert_equals(result.toString(), 'lemon');
33
}, 'CSSKeywordValue from CSSOM modified through "value" setter serializes correctly');
34
35
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssMathValue.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssMathValue.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSMathMax
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSMathMax
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssMathValue.tentative.html +120 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssMathValue.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>IDL-constructed CSSMathValue serialization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#calc-serialization">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gTestCases = [
12
  {
13
    description: 'CSSMathMax with one argument',
14
    value: new CSSMathMax(1),
15
    cssText: 'max(1)',
16
  },
17
  {
18
    description: 'CSSMathMax with more than one argument',
19
    value: new CSSMathMax(1, 2, 3),
20
    cssText: 'max(1, 2, 3)',
21
  },
22
  {
23
    description: 'CSSMathMax containing nested CSSMathValues',
24
    value: new CSSMathMax(new CSSMathSum(1, 2), 3),
25
    cssText: 'max(1 + 2, 3)',
26
  },
27
  {
28
    description: 'CSSMathMin with one argument',
29
    value: new CSSMathMin(1),
30
    cssText: 'min(1)',
31
  },
32
  {
33
    description: 'CSSMathMin with more than one argument',
34
    value: new CSSMathMin(1, 2, 3),
35
    cssText: 'min(1, 2, 3)',
36
  },
37
  {
38
    description: 'CSSMathMin containing nested CSSMathValues',
39
    value: new CSSMathMin(new CSSMathSum(1, 2), 3),
40
    cssText: 'min(1 + 2, 3)',
41
  },
42
  {
43
    description: 'CSSMathSum with one argument',
44
    value: new CSSMathSum(1),
45
    cssText: 'calc(1)',
46
  },
47
  {
48
    description: 'CSSMathSum with more than one argument',
49
    value: new CSSMathSum(1, 2, 3),
50
    cssText: 'calc(1 + 2 + 3)',
51
  },
52
  {
53
    description: 'CSSMathSum with a CSSMathNegate as first value',
54
    value: new CSSMathSum(new CSSMathNegate(1), 2, 3),
55
    cssText: 'calc((-1) + 2 + 3)',
56
  },
57
  {
58
    description: 'CSSMathSum containing a CSSMathNegate after first value',
59
    value: new CSSMathSum(1, new CSSMathNegate(2), 3),
60
    cssText: 'calc(1 - 2 + 3)',
61
  },
62
  {
63
    description: 'CSSMathSum nested inside a CSSMathValue',
64
    value: new CSSMathSum(new CSSMathSum(1, 2), 3),
65
    cssText: 'calc((1 + 2) + 3)',
66
  },
67
  {
68
    description: 'CSSMathNegate',
69
    value: new CSSMathNegate(1),
70
    cssText: 'calc(-1)',
71
  },
72
  {
73
    description: 'CSSMathNegate nested inside a CSSMathValue',
74
    value: new CSSMathProduct(new CSSMathNegate(1)),
75
    cssText: 'calc((-1))',
76
  },
77
  {
78
    description: 'CSSMathProduct with one argument',
79
    value: new CSSMathProduct(1),
80
    cssText: 'calc(1)',
81
  },
82
  {
83
    description: 'CSSMathProduct with more than one argument',
84
    value: new CSSMathProduct(1, 2, 3),
85
    cssText: 'calc(1 * 2 * 3)',
86
  },
87
  {
88
    description: 'CSSMathProduct with a CSSMathInvert as first value',
89
    value: new CSSMathProduct(new CSSMathInvert(1), 2, 3),
90
    cssText: 'calc((1 / 1) * 2 * 3)',
91
  },
92
  {
93
    description: 'CSSMathProduct containing a CSSMathInvert after first value',
94
    value: new CSSMathProduct(1, new CSSMathInvert(2), 3),
95
    cssText: 'calc(1 / 2 * 3)',
96
  },
97
  {
98
    description: 'CSSMathProduct nested inside a CSSMathValue',
99
    value: new CSSMathProduct(new CSSMathProduct(1, 2), 3),
100
    cssText: 'calc((1 * 2) * 3)',
101
  },
102
  {
103
    description: 'CSSMathInvert',
104
    value: new CSSMathInvert(1),
105
    cssText: 'calc(1 / 1)',
106
  },
107
  {
108
    description: 'CSSMathInvert nested inside a CSSMathValue',
109
    value: new CSSMathSum(new CSSMathInvert(1)),
110
    cssText: 'calc((1 / 1))',
111
  },
112
];
113
114
for (const {value, cssText, description} of gTestCases) {
115
  test(() => {
116
    assert_equals(value.toString(), cssText);
117
  }, description + ' serializes correctly');
118
}
119
120
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssPositionValue-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssPositionValue-expected.txt_sec1
1
2
FAIL CSSPositionValue with length and percent serializes by concantenating x and y Can't find variable: CSSPositionValue
3
FAIL CSSPositionValue from DOMString modified by "x" setter serializes to its new value CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('object-position', '1px 1px')', 'CSSStyleValue.parse' is undefined)
4
FAIL CSSPositionValue from DOMString modified by "y" setter serializes to its new value CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('object-position', '1px 1px')', 'CSSStyleValue.parse' is undefined)
5
FAIL CSSPositionValue from CSSOM modified by "x" setter serializes to its new value CSS.percent is not a function. (In 'CSS.percent(-3.14)', 'CSS.percent' is undefined)
6
FAIL CSSPositionValue from CSSOM modified by "y" setter serializes to its new value CSS.percent is not a function. (In 'CSS.percent(-3.14)', 'CSS.percent' is undefined)
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssPositionValue.html +42 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssPositionValue.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>IDL-constructed CSSPositionValue serialization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#positionvalue-serialization">
5
<meta name="assert" content="Test CSSPositionValues are serialized by concatenating their coordinate values" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../resources/testhelper.js"></script>
9
<body>
10
<div id="log">
11
<script>
12
'use strict';
13
14
test(() => {
15
  assert_equals(new CSSPositionValue(CSS.px(1), CSS.percent(-3.14)).toString(), '1px -3.14%');
16
}, 'CSSPositionValue with length and percent serializes by concantenating x and y');
17
18
test(() => {
19
  let result = CSSStyleValue.parse('object-position', '1px 1px');
20
  result.x = CSS.percent(-3.14);
21
  assert_equals(result.toString(), '-3.14% 1px');
22
}, 'CSSPositionValue from DOMString modified by "x" setter serializes to its new value');
23
24
test(() => {
25
  let result = CSSStyleValue.parse('object-position', '1px 1px');
26
  result.y = CSS.percent(-3.14);
27
  assert_equals(result.toString(), '1px -3.14%');
28
}, 'CSSPositionValue from DOMString modified by "y" setter serializes to its new value');
29
30
test(t => {
31
  let result = createInlineStyleMap(t, 'object-position: 1px 1px').get('object-position');
32
  result.x = CSS.percent(-3.14);
33
  assert_equals(result.toString(), '-3.14% 1px');
34
}, 'CSSPositionValue from CSSOM modified by "x" setter serializes to its new value');
35
36
test(t => {
37
  let result = createInlineStyleMap(t, 'object-position: 1px 1px').get('object-position');
38
  result.y = CSS.percent(-3.14);
39
  assert_equals(result.toString(), '1px -3.14%');
40
}, 'CSSPositionValue from CSSOM modified by "y" setter serializes to its new value');
41
42
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-cssom-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-cssom-expected.txt_sec1
1
2
PASS CSSStyleValue from specified CSSOM serializes correctly
3
FAIL CSSStyleValue from computed CSSOM serializes correctly elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
4
FAIL Shorthand CSSStyleValue from inline CSSOM serializes correctly null is not an object (evaluating 'result.toString')
5
FAIL Shorthand CSSStyleValue from computed CSSOM serializes correctly elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-cssom.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-cssom.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSStyleValue serialization from CSSOM</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<div id="log"></div>
10
<script>
11
'use strict';
12
13
test(t => {
14
  const result = createInlineStyleMap(t, 'color: red').get('color');
15
  assert_equals(result.toString(), 'red');
16
}, 'CSSStyleValue from specified CSSOM serializes correctly');
17
18
test(t => {
19
  const result = createComputedStyleMap(t, 'color: red').get('color');
20
  assert_equals(result.toString(), 'rgb(255, 0, 0)');
21
}, 'CSSStyleValue from computed CSSOM serializes correctly');
22
23
test(t => {
24
  const result = createInlineStyleMap(t, 'background: blue').get('background');
25
  assert_equals(result.toString(), 'blue');
26
}, 'Shorthand CSSStyleValue from inline CSSOM serializes correctly');
27
28
test(t => {
29
  const result = createComputedStyleMap(t, 'background: blue').get('background');
30
  assert_equals(result.toString(), 'rgb(0, 0, 255) none repeat scroll 0% 0% / auto padding-box border-box');
31
}, 'Shorthand CSSStyleValue from computed CSSOM serializes correctly');
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-string-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-string-expected.txt_sec1
1
2
FAIL CSSStyleValue parsed from string serializes to given string CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('color', 'red')', 'CSSStyleValue.parse' is undefined)
3
FAIL Shorthand CSSStyleValue parsed from string serializes to given string CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('background', 'blue')', 'CSSStyleValue.parse' is undefined)
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-string.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssStyleValue-string.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSStyleValue serialization from parsing</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<div id="log"></div>
10
<script>
11
'use strict';
12
13
test(() => {
14
  const result = CSSStyleValue.parse('color', 'red');
15
  assert_equals(result.toString(), 'red');
16
}, 'CSSStyleValue parsed from string serializes to given string');
17
18
test(() => {
19
  const result = CSSStyleValue.parse('background', 'blue');
20
  assert_equals(result.toString(), 'blue');
21
}, 'Shorthand CSSStyleValue parsed from string serializes to given string');
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssTransformValue.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssTransformValue.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSTranslate
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSTranslate
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssTransformValue.tentative.html +135 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssTransformValue.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>IDL-constructed CSSTransformValue serialization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#positionvalue-serialization">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gTestCases = [
12
  {
13
    value: new CSSTranslate(CSS.percent(1), CSS.px(1)),
14
    cssText: 'translate(1%, 1px)',
15
    desc: 'CSSTranslate with 2 arguments'
16
  },
17
  {
18
    value: new CSSTranslate(CSS.px(1), CSS.percent(2), CSS.px(3)),
19
    cssText: 'translate3d(1px, 2%, 3px)',
20
    desc: 'CSSTranslate with 3 arguments'
21
  },
22
  {
23
    value: new CSSScale(CSS.number(2), CSS.number(3)),
24
    cssText: 'scale(2, 3)',
25
    desc: 'CSSScale with 2 arguments'
26
  },
27
  {
28
    value: new CSSScale(CSS.number(1), CSS.number(2), CSS.number(3)),
29
    cssText: 'scale3d(1, 2, 3)',
30
    desc: 'CSSScale with 3 arguments'
31
  },
32
  {
33
    value: new CSSRotate(CSS.deg(90)),
34
    cssText: 'rotate(90deg)',
35
    desc: 'CSSRotate with 1 argument'
36
  },
37
  {
38
    value: new CSSRotate(CSS.number(1), CSS.number(2), CSS.number(3), CSS.deg(90)),
39
    cssText: 'rotate3d(1, 2, 3, 90deg)',
40
    desc: 'CSSRotate with 4 arguments'
41
  },
42
  {
43
    value: new CSSSkew(CSS.deg(90), CSS.deg(45)),
44
    cssText: 'skew(90deg, 45deg)',
45
    desc: 'CSSSkew'
46
  },
47
  {
48
    value: new CSSSkew(CSS.deg(90), CSS.turn(0)),
49
    cssText: 'skew(90deg)',
50
    desc: 'CSSSkew with Y which is 0 value'
51
  },
52
  {
53
    value: new CSSSkewX(CSS.deg(90)),
54
    cssText: 'skewX(90deg)',
55
    desc: 'CSSSkewX'
56
  },
57
  {
58
    value: new CSSSkewY(CSS.deg(90)),
59
    cssText: 'skewY(90deg)',
60
    desc: 'CSSSkewY'
61
  },
62
  {
63
    value: new CSSPerspective(CSS.px(1)),
64
    cssText: 'perspective(1px)',
65
    desc: 'CSSPerspective'
66
  },
67
  {
68
    value: new CSSPerspective(CSS.px(-1)),
69
    cssText: 'perspective(calc(-1px))',
70
    desc: 'CSSPerspective with negative length'
71
  },
72
  {
73
    value: new CSSTransformValue([new CSSPerspective(CSS.px(1))]),
74
    cssText: 'perspective(1px)',
75
    desc: 'CSSTransformValue with a single transform'
76
  },
77
  {
78
    value: new CSSTransformValue([
79
      new CSSTranslate(CSS.px(1), CSS.px(0)),
80
      new CSSRotate(CSS.deg(90)),
81
      new CSSPerspective(CSS.px(1)),
82
      new CSSSkew(CSS.deg(90), CSS.deg(45)),
83
      new CSSScale(CSS.number(1), CSS.number(2), CSS.number(3)),
84
    ]),
85
    cssText: 'translate(1px, 0px) rotate(90deg) perspective(1px) skew(90deg, 45deg) scale3d(1, 2, 3)',
86
    desc: 'CSSTransformValue with multiple transforms'
87
  },
88
  {
89
    value: new CSSTransformValue([
90
      new CSSTranslate(new CSSMathSum(CSS.px(1), CSS.em(1)), CSS.px(0)),
91
      new CSSRotate(new CSSMathSum(CSS.deg(90), CSS.turn(1))),
92
      new CSSPerspective(new CSSMathSum(CSS.px(1), CSS.em(1))),
93
      new CSSSkew(new CSSMathProduct(CSS.deg(90), 2), new CSSMathProduct(CSS.turn(1), 2)),
94
      new CSSScale(
95
        new CSSMathProduct(CSS.number(1), CSS.number(2)),
96
        new CSSMathSum(CSS.number(1), CSS.number(1)),
97
        new CSSMathProduct(CSS.number(3))
98
      ),
99
    ]),
100
    cssText: 'translate(calc(1px + 1em), 0px) rotate(calc(90deg + 1turn)) perspective(calc(1px + 1em)) skew(calc(90deg * 2), calc(1turn * 2)) scale3d(calc(1 * 2), calc(1 + 1), calc(3))',
101
    desc: 'CSSTransformValue containing CSSMathValues'
102
  },
103
  {
104
    value: new CSSMatrixComponent(new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6])),
105
    cssText: 'matrix(1, 2, 3, 4, 5, 6)',
106
    desc: 'CSSMatrixComponent with 6 elements'
107
  },
108
  {
109
    value: new CSSMatrixComponent(new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16])),
110
    cssText: 'matrix3d(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)',
111
    desc: 'CSSMatrixComponent with 16 elements'
112
  },
113
];
114
115
for (const {value, cssText, desc} of gTestCases) {
116
  test(() => {
117
    assert_equals(value.toString(), cssText);
118
  }, desc + ' serializes correctly');
119
}
120
121
test(() => {
122
  let result = new CSSTransformValue([
123
    new CSSTranslate(CSS.px(1), CSS.px(2), CSS.px(3)),
124
    new CSSRotate(1, 2, 3, CSS.deg(90)),
125
    new CSSScale(1, 2, 3),
126
  ]);
127
128
  for (const transform of result) {
129
    transform.is2D = true;
130
  }
131
132
  assert_equals(result.toString(), 'translate(1px, 2px) rotate(90deg) scale(1, 2)');
133
}, 'CSSTransformValue with updated is2D serializes as 2D transforms');
134
135
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnitValue.tentative-expected.txt +8 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnitValue.tentative-expected.txt_sec1
1
2
FAIL CSSUnitValue with length unit constructed from IDL serializes correctly assert_equals: expected "3.14px" but got "3px"
3
FAIL CSSUnitValue with unit "percent" constructed from IDL serializes correctly assert_equals: expected "3.14%" but got "3percent"
4
FAIL CSSUnitValue with unit "number" constructed from IDL serializes correctly assert_equals: expected "3.14" but got "3number"
5
FAIL CSSUnitValue with integer values constructed from IDL serializes correctly assert_equals: expected "3" but got "3number"
6
FAIL CSSKeywordValue from DOMString modified by "value" setter serializes correctly CSSStyleValue.parse is not a function. (In 'CSSStyleValue.parse('width', '1px')', 'CSSStyleValue.parse' is undefined)
7
FAIL CSSKeywordValue from CSSOM modified by "value" setter serializes correctly assert_equals: expected "3.14px" but got "3px"
8
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnitValue.tentative.html +43 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnitValue.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>IDL-constructed CSSUnitValue serialization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#numericvalue-serialization">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(() => {
13
  assert_equals(new CSSUnitValue(3.14, 'px').toString(), '3.14px');
14
  assert_equals(CSS.px(3.14).toString(), '3.14px');
15
}, 'CSSUnitValue with length unit constructed from IDL serializes correctly');
16
17
test(() => {
18
  assert_equals(new CSSUnitValue(3.14, 'percent').toString(), '3.14%');
19
  assert_equals(CSS.percent(3.14).toString(), '3.14%');
20
}, 'CSSUnitValue with unit "percent" constructed from IDL serializes correctly');
21
22
test(() => {
23
  assert_equals(new CSSUnitValue(3.14, 'number').toString(), '3.14');
24
  assert_equals(CSS.number(3.14).toString(), '3.14');
25
}, 'CSSUnitValue with unit "number" constructed from IDL serializes correctly');
26
27
test(() => {
28
  assert_equals(new CSSUnitValue(3, 'number').toString(), '3');
29
}, 'CSSUnitValue with integer values constructed from IDL serializes correctly');
30
31
test(() => {
32
  let result = CSSStyleValue.parse('width', '1px');
33
  result.value = 3.14;
34
  assert_equals(result.toString(), '3.14px');
35
}, 'CSSKeywordValue from DOMString modified by "value" setter serializes correctly');
36
37
test(t => {
38
  let result = createInlineStyleMap(t, 'width: 1px').get('width');
39
  result.value = 3.14;
40
  assert_equals(result.toString(), '3.14px');
41
}, 'CSSKeywordValue from CSSOM modified by "value" setter serializes correctly');
42
43
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnparsedValue-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnparsedValue-expected.txt_sec1
1
2
FAIL CSSUnparsedValue containing strings serializes to its concatenated contents assert_equals: expected "lemonade" but got "lem,on,ade"
3
FAIL CSSUnparsedValue containing variable references serializes its concatenated contents Can't find variable: CSSVariableReferenceValue
4
FAIL CSSUnparsedValue containing mix of strings and variable references serializes to its concatenated contents Can't find variable: CSSVariableReferenceValue
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnparsedValue.html +37 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnparsedValue.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>IDL-constructed CSSUnparsedValue serialization tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#unparsedvalue-serialization">
5
<meta name="assert" content="Test CSSUnparsedValue are serialized by concatenating its contents" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<body>
9
<div id="tag">
10
<script>
11
'use strict';
12
13
test(() => {
14
  assert_equals(new CSSUnparsedValue(['lem', 'on', 'ade']).toString(), 'lemonade');
15
}, 'CSSUnparsedValue containing strings serializes to its concatenated contents');
16
17
test(() => {
18
  assert_equals(new CSSUnparsedValue([
19
      new CSSVariableReferenceValue('--A',
20
        new CSSUnparsedValue([new CSSVariableReferenceValue('--B')])),
21
      new CSSVariableReferenceValue('--C')]).toString(),
22
    'var(--A,var(--B))var(--C)');
23
}, 'CSSUnparsedValue containing variable references serializes its ' +
24
   'concatenated contents');
25
26
test(() => {
27
  assert_equals(new CSSUnparsedValue(['foo', 'bar ',
28
      new CSSVariableReferenceValue('--A',
29
        new CSSUnparsedValue(['baz ',
30
          new CSSVariableReferenceValue('--B'), 'lemon'])),
31
      new CSSVariableReferenceValue('--C',
32
        new CSSUnparsedValue(['ade']))]).toString(),
33
    'foobar var(--A,baz var(--B)lemon)var(--C,ade)');
34
}, 'CSSUnparsedValue containing mix of strings and variable references ' +
35
   'serializes to its concatenated contents');
36
37
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssColorValue-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssColorValue-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSHSL
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSHSL
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssColorValue.html +52 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssColorValue.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSColorValue Tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#csscolorvalue">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const TEST_COLORS = [
12
  {name: "magenta", rgb: [1, 0, 1], hsl: [300, 1, 0.5]},
13
  {name: "dark cyan", rgb: [0, 0.545, 0.545], hsl: [180, 1, 0.2725]},
14
  {name: "light goldenrod yellow", rgb: [1, 1, 0.82], hsl: [60, 1, 0.91]},
15
  {name: "medium purple", rgb: [0.58, 0.44, 0.86], hsl: [260, 0.5977, 0.649]},
16
]
17
18
for (const color of TEST_COLORS) {
19
  const hsl_color_degrees = new CSSHSL(CSS.deg(color.hsl[0]), color.hsl[1], color.hsl[2])
20
  const hsl_color_radians = new CSSHSL(CSS.rad(color.hsl[0]/360 * 2 * Math.PI), color.hsl[1], color.hsl[2])
21
  const hsl_color_gradiens = new CSSHSL(CSS.grad(color.hsl[0]/360 * 400), color.hsl[1], color.hsl[2])
22
23
  const rgb_color = new CSSRGB(color.rgb[0], color.rgb[1], color.rgb[2])
24
  test(() => {
25
    const hsl_to_rgb = hsl_color_degrees.toRGB();
26
    for (const attr of ['r', 'g', 'b', 'alpha']) {
27
      assert_color_channel_approx_equals(hsl_to_rgb[attr], rgb_color[attr]);
28
    }
29
  }, `Converting HSL using degrees to RGB works for ${color.name}.`);
30
31
  test(() => {
32
    const hsl_to_rgb = hsl_color_radians.toRGB();
33
    for (const attr of ['r', 'g', 'b', 'alpha']) {
34
      assert_color_channel_approx_equals(hsl_to_rgb[attr], rgb_color[attr]);
35
    }
36
  }, `Converting HSL using radians to RGB works for ${color.name}.`);
37
38
  test(() => {
39
    const hsl_to_rgb = hsl_color_gradiens.toRGB();
40
    for (const attr of ['r', 'g', 'b', 'alpha']) {
41
      assert_color_channel_approx_equals(hsl_to_rgb[attr], rgb_color[attr]);
42
    }
43
  }, `Converting HSL using gradiens to RGB works for ${color.name}.`);
44
45
  test(() => {
46
    const rgb_to_hsl = rgb_color.toHSL();
47
    for (const attr of ['h', 's', 'l', 'alpha']) {
48
      assert_color_channel_approx_equals(hsl_color_degrees[attr], rgb_to_hsl[attr]);
49
    }
50
  }, `Converting RGB to HSL works for ${color.name}.`);
51
}
52
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssHSL-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssHSL-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.deg is not a function. (In 'CSS.deg(180)', 'CSS.deg' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.deg is not a function. (In 'CSS.deg(180)', 'CSS.deg' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssHSL.html +82 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssHSL.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSHSL tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#csshsl">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gValidHueInputs = [
12
  {hue: CSS.deg(180), desc: 'degrees'},
13
  {hue: CSS.rad(1), desc: 'radians'},
14
  {hue: CSS.grad(81), desc: 'gradians'},
15
];
16
17
const gInvalidHueInputs = [
18
  {hue: 180, desc: "a number"},
19
  {hue: CSS.px(1), desc: "css pixels"},
20
  {hue: undefined, desc: "undefined"},
21
]
22
23
for (const {hue, desc} of gValidHueInputs) {
24
  test(() => {
25
    const result = new CSSHSL(hue, 0.5, 0.5);
26
    assert_color_channel_approx_equals(result.h, hue);
27
  }, `Constructing a CSSHSL with ${desc} for the hue works as intended.`);
28
29
  test(() => {
30
    const result = new CSSHSL(CSS.deg(0), 0.5, 0.5);
31
    result.h = hue;
32
    assert_color_channel_approx_equals(result.h, hue);
33
  }, `CSSHSL.h can be updated with a ${desc}.`);
34
}
35
36
for (const {hue, desc} of gInvalidHueInputs) {
37
  test(() => {
38
    assert_throws_js(TypeError, () => new CSSHSL(hue, 0, 0));
39
  }, `Constructing a CSSHSL with ${desc} for hue throws a type error.`);
40
}
41
42
test(() => {
43
  const result = new CSSHSL(CSS.deg(27), 0.7, CSS.percent(91));
44
  assert_color_channel_approx_equals(result.h, CSS.deg(27));
45
  assert_color_channel_approx_equals(result.s, CSS.percent(70));
46
  assert_color_channel_approx_equals(result.l, CSS.percent(91));
47
  assert_color_channel_approx_equals(result.alpha, CSS.percent(100));
48
}, 'CSSHSL can be constructed from three numbers and will get an alpha of 100%.');
49
50
test(() => {
51
  const result = new CSSHSL(CSS.grad(101), 0.2, 0.3, CSS.percent(0.4));
52
  assert_color_channel_approx_equals(result.h, CSS.grad(101));
53
  assert_color_channel_approx_equals(result.s, CSS.percent(20));
54
  assert_color_channel_approx_equals(result.l, CSS.percent(30));
55
  assert_color_channel_approx_equals(result.alpha, CSS.percent(0.4));
56
}, 'CSSHSL can be constructed from four numbers.');
57
58
test(() => {
59
  assert_throws_js(TypeError, () => new CSSHSL(CSS.deg(0), CSS.number(1), 0, 0));
60
  assert_throws_js(TypeError, () => new CSSHSL(CSS.deg(0), 0, CSS.number(1), 0));
61
  assert_throws_js(TypeError, () => new CSSHSL(CSS.deg(0), 0, 0, CSS.number(1)));
62
}, `Constructing a CSSHSL with CSS.number for s, l or alpha throws a TypeError`);
63
64
for (const attr of ['s', 'l', 'alpha']) {
65
  test(() => {
66
    const result = new CSSHSL(CSS.deg(0), 0, 0);
67
    assert_throws_js(TypeError, () => result[attr] = CSS.number(1));
68
  }, `Updating a CSSHSL with CSS.number for ${attr} throws a TypeError`);
69
70
  test(() => {
71
    const result = new CSSHSL(CSS.deg(0), 0, 0);
72
    result[attr] = 0.5;
73
    assert_color_channel_approx_equals(result[attr], CSS.percent(50));
74
  }, 'CSSHSL.' + attr + ' can be updated to a number.');
75
76
  test(() => {
77
    const result = new CSSHSL(CSS.deg(0), 0, 0);
78
    result[attr] = CSS.percent(50);
79
    assert_color_channel_approx_equals(result[attr], CSS.percent(50));
80
  }, 'CSSHSL.' + attr + ' can be updated with a CSS percent.');
81
}
82
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-expected.txt_sec1
1
2
FAIL CSSKeywordValue can be constructed from a CSS wide keyword Can't find variable: CSSKeywordValue
3
FAIL CSSKeywordValue can be constructed from a CSS keyword Can't find variable: CSSKeywordValue
4
FAIL CSSKeywordValue can be constructed from an unsupported CSS keyword Can't find variable: CSSKeywordValue
5
FAIL CSSKeywordValue can be constructed from a string containing multiple tokens Can't find variable: CSSKeywordValue
6
FAIL CSSKeywordValue can be constructed from a unicode string Can't find variable: CSSKeywordValue
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-invalid-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-invalid-expected.txt_sec1
1
2
FAIL Constructing CSSKeywordValue with an empty string throws a TypeError assert_throws_js: function "() => new CSSKeywordValue('')" threw object "ReferenceError: Can't find variable: CSSKeywordValue" ("ReferenceError") expected instance of function "function TypeError() {
3
    [native code]
4
}" ("TypeError")
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-invalid.html +17 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-invalid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSKeywordValue Error Handling</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#csskeywordvalue">
5
<meta name="assert" content="Test CSSKeywordValue constructor and attributes error handling" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(() => {
14
  assert_throws_js(TypeError, () => new CSSKeywordValue(''));
15
}, 'Constructing CSSKeywordValue with an empty string throws a TypeError');
16
17
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-value-expected.txt +8 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-value-expected.txt_sec1
1
2
FAIL CSSKeywordValue.value can be updated to a CSS wide keyword Can't find variable: CSSKeywordValue
3
FAIL CSSKeywordValue.value can be updated to a CSS keyword Can't find variable: CSSKeywordValue
4
FAIL CSSKeywordValue.value can be updated to an unsupported CSS keyword Can't find variable: CSSKeywordValue
5
FAIL CSSKeywordValue.value can be updated to a string containing multiple tokens Can't find variable: CSSKeywordValue
6
FAIL CSSKeywordValue.value can be updated to a unicode string Can't find variable: CSSKeywordValue
7
FAIL Updating CSSKeywordValue.value with an empty string throws a TypeError Can't find variable: CSSKeywordValue
8
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-value.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue-value.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSKeywordValue.value</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-csskeywordvalue-value">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<body>
8
<div id="log"></div>
9
<script>
10
'use strict';
11
12
const gTestArguments = [
13
  { keyword: 'initial', description: 'a CSS wide keyword' },
14
  { keyword: 'auto', description: 'a CSS keyword' },
15
  { keyword: 'lemon', description: 'an unsupported CSS keyword' },
16
  { keyword: '3! + 4@', description: 'a string containing multiple tokens' },
17
  { keyword: '☺', description: 'a unicode string' },
18
];
19
20
for (const args of gTestArguments) {
21
  test(() => {
22
    const result = new CSSKeywordValue(args.keyword);
23
    assert_not_equals(result, null, 'a CSSKeywordValue is created');
24
    assert_equals(result.value, args.keyword, 'value reflects new value');
25
  }, `CSSKeywordValue.value can be updated to ${args.description}`);
26
}
27
28
test(() => {
29
  let result = new CSSKeywordValue('lemon');
30
  assert_throws_js(TypeError, () => result.value = '');
31
  assert_equals(result.value, 'lemon', 'value does not change');
32
}, 'Updating CSSKeywordValue.value with an empty string throws a TypeError');
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssKeywordValue.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSKeywordValue Constructor</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-csskeywordvalue-csskeywordvalue">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<body>
8
<div id="log"></div>
9
<script>
10
'use strict';
11
12
const gTestArguments = [
13
  { keyword: 'initial', description: 'a CSS wide keyword' },
14
  { keyword: 'auto', description: 'a CSS keyword' },
15
  { keyword: 'lemon', description: 'an unsupported CSS keyword' },
16
  { keyword: '3! + 4@', description: 'a string containing multiple tokens' },
17
  { keyword: '☺', description: 'a unicode string' },
18
];
19
20
for (const args of gTestArguments) {
21
  test(() => {
22
    const result = new CSSKeywordValue(args.keyword);
23
    assert_not_equals(result, null, 'a CSSKeywordValue is created');
24
    assert_equals(result.value, args.keyword,
25
                  'value is same as given by constructor');
26
  }, `CSSKeywordValue can be constructed from ${args.description}`);
27
}
28
29
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssMatrixComponent.tentative-expected.txt +12 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssMatrixComponent.tentative-expected.txt_sec1
1
2
FAIL CSSMatrixComponent can be constructed from a 2D matrix with is2D true Can't find variable: CSSMatrixComponent
3
FAIL CSSMatrixComponent can be constructed from a 2D matrix with is2D false Can't find variable: CSSMatrixComponent
4
FAIL CSSMatrixComponent can be constructed from a 2D matrix without a CSSMatrixComponentOptions Can't find variable: CSSMatrixComponent
5
FAIL CSSMatrixComponent can be constructed from a 2D matrix with an invalid CSSMatrixComponentOptions Can't find variable: CSSMatrixComponent
6
FAIL CSSMatrixComponent.matrix can be updated to a 2D matrix Can't find variable: CSSMatrixComponent
7
FAIL CSSMatrixComponent can be constructed from a 3D matrix with is2D true Can't find variable: CSSMatrixComponent
8
FAIL CSSMatrixComponent can be constructed from a 3D matrix with is2D false Can't find variable: CSSMatrixComponent
9
FAIL CSSMatrixComponent can be constructed from a 3D matrix without a CSSMatrixComponentOptions Can't find variable: CSSMatrixComponent
10
FAIL CSSMatrixComponent can be constructed from a 3D matrix with an invalid CSSMatrixComponentOptions Can't find variable: CSSMatrixComponent
11
FAIL CSSMatrixComponent.matrix can be updated to a 3D matrix Can't find variable: CSSMatrixComponent
12
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssMatrixComponent.tentative.html +61 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssMatrixComponent.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSMatrixComponent tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssmatrixcomponent-cssmatrixcomponent">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script src="../resources/comparisons.js"></script>
9
<script>
10
'use strict';
11
12
const EPSILON = 1e-6;
13
14
const gTestMatrices = [
15
  {
16
    matrix: new DOMMatrix([0, -1, 3.14, -3.14, 10, 0]),
17
    desc: 'a 2D matrix'
18
  },
19
  {
20
    matrix: new DOMMatrix([1.1, 1.2, -13, -1.4, 2, 0, -2, 4, 3.1, 3, 3, 3.4, -4.1, 42, 43, 4.4]),
21
    desc: 'a 3D matrix'
22
  },
23
];
24
25
for (const {matrix, desc} of gTestMatrices) {
26
  test(() => {
27
    const component = new CSSMatrixComponent(matrix, { is2D: true });
28
    assert_matrix_approx_equals(component.matrix, matrix, EPSILON);
29
    assert_true(component.is2D);
30
  }, 'CSSMatrixComponent can be constructed from ' + desc + ' with is2D true');
31
32
  test(() => {
33
    const component = new CSSMatrixComponent(matrix, { is2D: false });
34
    assert_matrix_approx_equals(component.matrix, matrix, EPSILON);
35
    assert_false(component.is2D);
36
  }, 'CSSMatrixComponent can be constructed from ' + desc + ' with is2D false');
37
38
  test(() => {
39
    const component = new CSSMatrixComponent(matrix);
40
    assert_matrix_approx_equals(component.matrix, matrix, EPSILON);
41
    assert_equals(component.is2D, matrix.is2D);
42
  }, 'CSSMatrixComponent can be constructed from ' + desc + ' without a CSSMatrixComponentOptions');
43
44
  test(() => {
45
    const component = new CSSMatrixComponent(matrix, null);
46
    assert_matrix_approx_equals(component.matrix, matrix, EPSILON);
47
    assert_equals(component.is2D, matrix.is2D);
48
  }, 'CSSMatrixComponent can be constructed from ' + desc + ' with an invalid CSSMatrixComponentOptions');
49
50
  test(() => {
51
    let component = new CSSMatrixComponent(new DOMMatrixReadOnly([
52
      0, 0, 0, 0, 0, 0
53
    ]));
54
55
    component.matrix = matrix;
56
    assert_matrix_approx_equals(component.matrix, matrix, EPSILON);
57
  }, 'CSSMatrixComponent.matrix can be updated to ' + desc);
58
}
59
60
</script>
61
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPerspective.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPerspective.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPerspective.tentative.html +60 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPerspective.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSPerspective tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssperspective">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gInvalidTestCases = [
12
  { length: 'auto', desc: 'a keyword'},
13
  { length: 3.14, desc: 'a double'},
14
  { length: 0, desc: 'a unitless zero'},
15
  { length: '10px', desc: 'a string length'},
16
  { length: CSS.number(10), desc: 'a number CSSUnitValue'},
17
  { length: CSS.s(10), desc: 'a time dimension CSSUnitValue'},
18
  { length: new CSSMathSum(CSS.deg(1)), desc: 'a CSSMathValue of angle type' },
19
];
20
21
for (const {length, desc} of gInvalidTestCases) {
22
  test(() => {
23
    assert_throws_js(TypeError, () => new CSSPerspective(length));
24
  }, 'Constructing a CSSPerspective with ' + desc + ' throws a TypeError');
25
}
26
27
for (const {length, desc} of gInvalidTestCases) {
28
  test(() => {
29
    let perspective = new CSSPerspective(CSS.px(0));
30
    assert_throws_js(TypeError, () => perspective.length = length);
31
    assert_style_value_equals(perspective.length, CSS.px(0));
32
  }, 'Updating CSSPerspective.length with ' + desc + ' throws a TypeError');
33
}
34
35
const gValidTestCases = [
36
  { length: CSS.px(-3.14), desc: 'a length CSSUnitValue' },
37
  { length: new CSSMathSum(CSS.px(1)), desc: 'a CSSMathValue of length type' },
38
];
39
40
for (const {length, desc} of gValidTestCases) {
41
  test(() => {
42
    const perspective = new CSSPerspective(length);
43
    assert_equals(perspective.length, length);
44
    assert_false(perspective.is2D);
45
  }, 'CSSPerspective can be constructed from ' + desc);
46
47
  test(() => {
48
    let perspective = new CSSPerspective(CSS.px(0), CSS.px(0));
49
    perspective.length = length;
50
    assert_style_value_equals(perspective.length, length);
51
  }, 'CSSPerspective.length can be updated to ' + desc);
52
}
53
54
test(() => {
55
  let perspective = new CSSPerspective(CSS.px(0), CSS.px(0));
56
  perspective.is2D = true;
57
  assert_false(perspective.is2D);
58
}, 'Modifying CSSPerspective.is2D is a no-op');
59
60
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.px is not a function. (In 'CSS.px(1)', 'CSS.px' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.px is not a function. (In 'CSS.px(1)', 'CSS.px' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue-invalid-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue-invalid-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue-invalid.html +67 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue-invalid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSPositionValue Error Handling</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#positionvalue-objects">
5
<meta name="assert" content="Test CSSPositionValue constructor and attributes error handling" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
const gTestArguments = [
14
  {
15
    description: 'a keyword',
16
    value: 'auto',
17
  },
18
  {
19
    description: 'a double',
20
    value: 3.14,
21
  },
22
  {
23
    description: 'a unitless zero',
24
    value: 0,
25
  },
26
  {
27
    description: 'a string length',
28
    value: '10px',
29
  },
30
  {
31
    description: 'a number CSSUnitValue',
32
    value: CSS.number(10),
33
  },
34
  {
35
    description: 'a time CSSUnitValue',
36
    value: CSS.s(10),
37
  },
38
  {
39
    description: 'a CSSMathValue of angle type',
40
    value: new CSSMathSum(CSS.deg(1)),
41
  },
42
];
43
44
for (const {value, description} of gTestArguments) {
45
  test(() => {
46
    assert_throws_js(TypeError, () => new CSSPositionValue(value, CSS.px(0)));
47
    assert_throws_js(TypeError, () => new CSSPositionValue(CSS.px(0), value));
48
  }, `Constructing a CSSPositionValue with ${description} throws a TypeError`);
49
50
  test(() => {
51
    let position = new CSSPositionValue(CSS.px(0), CSS.px(0));
52
    assert_throws_js(TypeError, () => position.x = value);
53
54
    assert_equals(position.x.value, 0,
55
        'X member should not have changed');
56
  }, `Updating CSSPositionValue.x with ${description} throws a TypeError`);
57
58
  test(() => {
59
    let position = new CSSPositionValue(CSS.px(0), CSS.px(0));
60
    assert_throws_js(TypeError, () => position.y = value);
61
62
    assert_equals(position.y.value, 0,
63
        'Y member should not have changed');
64
  }, `Updating CSSPositionValue.y with ${description} throws a TypeError`);
65
}
66
67
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue.html +61 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssPositionValue.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSPositionValue</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#positionvalue-objects">
5
<meta name="assert" content="Test CSSPositionValue constructor and attributes" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../resources/testhelper.js"></script>
9
<body>
10
<div id="log">
11
<script>
12
'use strict';
13
14
const gTestArguments = [
15
  {
16
    description: 'a length CSSUnitValue' ,
17
    value: CSS.px(1),
18
  },
19
  {
20
    description: 'a percent CSSUnitValue' ,
21
    value: CSS.percent(10),
22
  },
23
  {
24
    description: 'a CSSMathValue of length type' ,
25
    value: new CSSMathSum(CSS.px(1)),
26
  },
27
  {
28
    description: 'a CSSMathValue of percent type' ,
29
    value: new CSSMathSum(CSS.percent(1)),
30
  },
31
];
32
33
for (const {value, description} of gTestArguments) {
34
  test(() => {
35
    const position = new CSSPositionValue(value, value);
36
    assert_style_value_equals(position.x, value,
37
        'X member should be same as passed in constructor');
38
    assert_style_value_equals(position.y, value,
39
        'Y member should be same as passed in constructor');
40
  }, 'CSSPositionValue can be constructed from ' + description);
41
}
42
43
for (const {value, description} of gTestArguments) {
44
  test(() => {
45
    let position = new CSSPositionValue(CSS.px(0), CSS.px(0));
46
    position.x = value;
47
48
    assert_style_value_equals(position.x, value,
49
        'X member should be updated to new value');
50
  }, 'CSSPositionValue.x can be updated to ' + description);
51
52
  test(() => {
53
    let position = new CSSPositionValue(CSS.px(0), CSS.px(0));
54
    position.y = value;
55
56
    assert_style_value_equals(position.y, value,
57
        'Y member should be updated to new value');
58
  }, 'CSSPositionValue.y can be updated to ' + description);
59
}
60
61
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRGB-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRGB-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.deg is not a function. (In 'CSS.deg(1)', 'CSS.deg' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.deg is not a function. (In 'CSS.deg(1)', 'CSS.deg' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRGB.html +116 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRGB.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSRGB tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssrgb">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
"use strict";
10
11
const gInvalidColorTestCases = [
12
  { color: CSS.deg(1), desc: "an angle CSSUnitValue"},
13
  { color: new CSSMathSum(CSS.px(1)), desc: "a CSSMathValue that doesn\"t match <number>"},
14
  // Alpha has a default value and works with undefined
15
  { color: undefined, desc: "undefined", skipAlpha: true},
16
  { color: "calc(10 + 10%)", desc: "a CSS math calculation"}
17
];
18
19
const gValidColorTestCases = [
20
  { color: 0.5, desc: "a number with the resulting value being a percentage.", result: CSS.percent(50) },
21
  { color: CSS.number(0.5), desc: "a CSS number.", skipAlpha: true },
22
  { color: CSS.percent(50), desc: "CSS percent.", result: CSS.percent(50) },
23
  { color: new CSSMathSum(CSS.percent(10), CSS.percent(20)), desc: "CSS math sum." },
24
  { color: new CSSMathProduct(CSS.percent(10), CSS.number(2)), desc: "CSS math product." },
25
  { color: new CSSMathMax(CSS.percent(10), CSS.percent(20)), desc: "CSS math max." },
26
  { color: new CSSMathMin(CSS.percent(10), CSS.percent(20)), desc: "CSS math min." },
27
];
28
29
for (const {color, desc, skipAlpha} of gInvalidColorTestCases) {
30
  test(() => {
31
    assert_throws_js(TypeError, () => new CSSRGB(color, 0, 0));
32
    assert_throws_js(TypeError, () => new CSSRGB(0, color, 0));
33
    assert_throws_js(TypeError, () => new CSSRGB(0, 0, color));
34
    assert_throws_js(TypeError, () => new CSSRGB(color, 0, 0, 0));
35
    assert_throws_js(TypeError, () => new CSSRGB(0, color, 0, 0));
36
    assert_throws_js(TypeError, () => new CSSRGB(0, 0, color, 0));
37
    if (!skipAlpha) assert_throws_js(TypeError, () => new CSSRGB(0, 0, 0, color));
38
  }, `Constructing a CSSRGB with ${desc} for the color channels throws a TypeError.`);
39
}
40
41
test(() => {
42
  assert_throws_js(TypeError, () => new CSSRGB(0, 0, 0, CSS.number(1)));
43
}, `Constructing a CSSRGB with a CSS number for the alpha channels throws a TypeError.`);
44
45
for (const attr of ['r', 'g', 'b', 'alpha']) {
46
  for (const {value, desc} of gInvalidColorTestCases) {
47
    test(() => {
48
      const result = new CSSRGB(0, 0, 0, 0);
49
      assert_throws_js(TypeError, () => result[attr] = value);
50
      assert_style_value_equals(result[attr], CSS.percent(0));
51
    }, `Updating CSSRGB. ${attr} to ${desc} throws a TypeError.`);
52
  }
53
}
54
55
test(() => {
56
  const result = new CSSRGB(0, 0, 0);
57
  assert_throws_js(TypeError, () => result.alpha = CSS.number(1));
58
}, "Updating the alpha channel to a CSS number throws a TypeError.");
59
60
test(() => {
61
  const result = new CSSRGB(0.5, CSS.number(73), CSS.percent(91));
62
  assert_color_channel_approx_equals(result.r, CSS.percent(50));
63
  assert_color_channel_approx_equals(result.g, CSS.number(73));
64
  assert_color_channel_approx_equals(result.b, CSS.percent(91));
65
  assert_color_channel_approx_equals(result.alpha, CSS.percent(100));
66
}, "CSSRGB can be constructed from three numbers and will get an alpha of 100%.");
67
68
test(() => {
69
  const result = new CSSRGB(0.5, CSS.number(0.2), 0.3, CSS.percent(0.4));
70
  assert_color_channel_approx_equals(result.r, CSS.percent(50));
71
  assert_color_channel_approx_equals(result.g, CSS.number(0.2));
72
  assert_color_channel_approx_equals(result.b, CSS.percent(30));
73
  assert_color_channel_approx_equals(result.alpha, CSS.percent(0.4));
74
}, "CSSRGB can be constructed from four numbers.");
75
76
for (const attr of ["r", "g", "b", "alpha"]) {
77
  for (const testCase of gValidColorTestCases) {
78
    if (attr === "alpha" && testCase.skipAlpha)
79
      continue;
80
    test(() => {
81
      const result = new CSSRGB(0, 0, 0);
82
      result[attr] = testCase.color;
83
      assert_color_channel_approx_equals(result[attr], testCase.result ? testCase.result : testCase.color)
84
    }, `CSSRGB.${attr} can be updated with ${testCase.desc}`);
85
  }
86
}
87
88
test(() => {
89
  const color = new CSSRGB(
90
    new CSSMathSum(CSS.percent(10), CSS.percent(20)),
91
    new CSSMathProduct(CSS.percent(10), CSS.number(2)),
92
    new CSSMathMax(CSS.percent(10), CSS.percent(50))
93
  );
94
  assert_color_channel_approx_equals(color.r, new CSSMathSum(CSS.percent(10), CSS.percent(20)));
95
  assert_color_channel_approx_equals(color.g, new CSSMathProduct(CSS.percent(10), CSS.number(2)));
96
  assert_color_channel_approx_equals(color.b, new CSSMathMax(CSS.percent(10), CSS.percent(50)));
97
  let result = color.toRGB();
98
  assert_color_channel_approx_equals(result.r, CSS.percent(30));
99
  assert_color_channel_approx_equals(result.g, CSS.percent(20));
100
  assert_color_channel_approx_equals(result.b, CSS.percent(50));
101
}, `toRGB function evaluates sum, product and max objects.`);
102
103
test(() => {
104
  const color = new CSSRGB(1, 0.5, CSS.number(0.3), CSS.percent(50));
105
  let result = color.toRGB();
106
  assert_color_channel_approx_equals(result.r, CSS.percent(100));
107
  assert_color_channel_approx_equals(result.g, CSS.percent(50));
108
  assert_color_channel_approx_equals(result.b, CSS.percent(30));
109
  assert_color_channel_approx_equals(result.alpha, CSS.percent(50));
110
  for (const attr of ["r", "g", "b", "alpha"]) {
111
    color[attr] = 0.7;
112
    result = color.toRGB();
113
    assert_color_channel_approx_equals(result[attr], CSS.percent(70));
114
  }
115
}, "toRGB() function works as expected and values can be updated.");
116
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRotate.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRotate.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRotate.tentative.html +126 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssRotate.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSRotate tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssrotate">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gInvalidAngleTestCases = [
12
  { angle: CSS.number(10), desc: 'a CSSUnitValue with type other than angle'},
13
  { angle: new CSSMathSum(CSS.s(10)), desc: 'a CSSMathValue that doesn\'t match <angle>'},
14
];
15
16
const gInvalidCoordTestCases = [
17
  { coord: CSS.px(10), desc: 'a CSSUnitValue with type other than number'},
18
  { coord: new CSSMathSum(CSS.px(10)), desc: 'a CSSMathValue that doesn\'t match <number>'},
19
];
20
21
for (const {angle, desc} of gInvalidAngleTestCases) {
22
  test(() => {
23
    assert_throws_js(TypeError, () => new CSSRotate(angle));
24
    assert_throws_js(TypeError, () => new CSSRotate(0, 0, 0, angle));
25
  }, 'Constructing a CSSRotate with ' + desc + ' for the angle throws a TypeError');
26
}
27
28
for (const {coord, desc} of gInvalidCoordTestCases) {
29
  test(() => {
30
    assert_throws_js(TypeError, () => new CSSRotate(coord, 0, 0, CSS.deg(0)));
31
    assert_throws_js(TypeError, () => new CSSRotate(0, coord, 0, CSS.deg(0)));
32
    assert_throws_js(TypeError, () => new CSSRotate(0, 0, coord, CSS.deg(0)));
33
  }, 'Constructing a CSSRotate with ' + desc + ' for the coordinates throws a TypeError');
34
}
35
36
for (const attr of ['x', 'y', 'z']) {
37
  for (const {value, desc} of gInvalidCoordTestCases) {
38
    test(() => {
39
      let result = new CSSRotate(0, 0, 0, CSS.deg(0));
40
      assert_throws_js(TypeError, () => result[attr] = value);
41
      assert_style_value_equals(result[attr], CSS.number(0));
42
    }, 'Updating CSSRotate.' + attr + ' to ' + desc + ' throws a TypeError');
43
  }
44
}
45
46
for (const {angle, desc} of gInvalidAngleTestCases) {
47
  test(() => {
48
    let result = new CSSRotate(CSS.deg(0));
49
    assert_throws_js(TypeError, () => result.angle = angle);
50
    assert_style_value_equals(result.angle, CSS.deg(0));
51
  }, 'Updating CSSRotate.angle to ' + desc + ' throws a TypeError');
52
}
53
54
test(() => {
55
  const result = new CSSRotate(CSS.deg(3.14));
56
  assert_style_value_equals(result.x, CSS.number(0));
57
  assert_style_value_equals(result.y, CSS.number(0));
58
  assert_style_value_equals(result.z, CSS.number(1));
59
  assert_style_value_equals(result.angle, CSS.deg(3.14));
60
  assert_true(result.is2D);
61
}, 'CSSRotate can be constructed from a single angle');
62
63
test(() => {
64
  const result = new CSSRotate(-3.14, CSS.number(3.14), 3.14, CSS.deg(3.14));
65
  assert_style_value_equals(result.x, CSS.number(-3.14));
66
  assert_style_value_equals(result.y, CSS.number(3.14));
67
  assert_style_value_equals(result.z, CSS.number(3.14));
68
  assert_style_value_equals(result.angle, CSS.deg(3.14));
69
  assert_false(result.is2D);
70
}, 'CSSRotate can be constructed from numberish coordinates');
71
72
test(() => {
73
  const result = new CSSRotate(
74
    new CSSMathSum(-3.14),
75
    new CSSMathProduct(3.14),
76
    new CSSMathNegate(-3.14),
77
    new CSSMathMax(CSS.deg(3.14))
78
  );
79
  assert_style_value_equals(result.x, new CSSMathSum(-3.14));
80
  assert_style_value_equals(result.y, new CSSMathProduct(3.14));
81
  assert_style_value_equals(result.z, new CSSMathNegate(-3.14));
82
  assert_style_value_equals(result.angle, new CSSMathMax(CSS.deg(3.14)));
83
  assert_false(result.is2D);
84
}, 'CSSRotate can be constructed from CSSMathValues');
85
86
for (const attr of ['x', 'y', 'z']) {
87
  test(() => {
88
    let result = new CSSRotate(0, 0, 0, CSS.deg(0));
89
    result[attr] = 3.14;
90
    assert_style_value_equals(result[attr], CSS.number(3.14));
91
  }, 'CSSRotate.' + attr + ' can be updated to a double');
92
93
  test(() => {
94
    let result = new CSSRotate(0, 0, 0, CSS.deg(0));
95
    result[attr] = CSS.number(3.14);
96
    assert_style_value_equals(result[attr], CSS.number(3.14));
97
  }, 'CSSRotate.' + attr + ' can be updated to a number CSSUnitValue');
98
99
  test(() => {
100
    let result = new CSSRotate(0, 0, 0, CSS.deg(0));
101
    result[attr] = new CSSMathSum(3.14);
102
    assert_style_value_equals(result[attr], new CSSMathSum(3.14));
103
  }, 'CSSRotate.' + attr + ' can be updated to a CSSMathValue matching <number>');
104
}
105
106
test(() => {
107
  let rotation = new CSSRotate(CSS.deg(0));
108
  rotation.angle = CSS.deg(6);
109
  assert_style_value_equals(rotation.angle, CSS.deg(6));
110
}, 'CSSRotate.angle can be updated to a degree CSSUnitValue');
111
112
test(() => {
113
  let rotation = new CSSRotate(CSS.deg(0));
114
  rotation.angle = new CSSMathSum(CSS.deg(3.14));
115
  assert_style_value_equals(rotation.angle, new CSSMathSum(CSS.deg(3.14)));
116
}, 'CSSRotate.angle can be updated to a CSSMathValue matching <angle>');
117
118
test(() => {
119
  let rotation = new CSSRotate(CSS.deg(0));
120
  rotation.is2D = true;
121
  assert_true(rotation.is2D);
122
  rotation.is2D = false;
123
  assert_false(rotation.is2D);
124
}, 'Modifying CSSRotate.is2D can be updated to true or false');
125
126
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssScale.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssScale.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.deg is not a function. (In 'CSS.deg(1)', 'CSS.deg' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.deg is not a function. (In 'CSS.deg(1)', 'CSS.deg' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssScale.tentative.html +89 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssScale.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSScale tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssscale">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gInvalidCoordTestCases = [
12
  { coord: CSS.deg(1), desc: 'an angle CSSUnitValue'},
13
  { coord: new CSSMathSum(CSS.px(1)), desc: 'a CSSMathValue that doesn\'t match <number>'},
14
  { coord: new CSSMathProduct(CSS.px(1), new CSSMathInvert(CSS.px(1))), desc: 'an invalid division by px/px'},
15
];
16
17
for (const {coord, desc} of gInvalidCoordTestCases) {
18
  test(() => {
19
    assert_throws_js(TypeError, () => new CSSScale(coord, 0));
20
    assert_throws_js(TypeError, () => new CSSScale(0, coord));
21
    assert_throws_js(TypeError, () => new CSSScale(coord, 0, 0));
22
    assert_throws_js(TypeError, () => new CSSScale(0, coord, 0));
23
    assert_throws_js(TypeError, () => new CSSScale(0, 0, coord));
24
  }, 'Constructing a CSSScale with ' + desc + ' for the coordinates throws a TypeError');
25
}
26
27
for (const attr of ['x', 'y', 'z']) {
28
  for (const {value, desc} of gInvalidCoordTestCases) {
29
    test(() => {
30
      let result = new CSSScale(0, 0, 0);
31
      assert_throws_js(TypeError, () => result[attr] = value);
32
      assert_style_value_equals(result[attr], CSS.number(0));
33
    }, 'Updating CSSScale.' + attr + ' to ' + desc + ' throws a TypeError');
34
  }
35
}
36
37
test(() => {
38
  const result = new CSSScale(-3.14, CSS.number(3.14));
39
  assert_style_value_equals(result.x, CSS.number(-3.14));
40
  assert_style_value_equals(result.y, CSS.number(3.14));
41
  assert_style_value_equals(result.z, CSS.number(1));
42
  assert_true(result.is2D);
43
}, 'CSSScale can be constructed from two number coordinates');
44
45
test(() => {
46
  const result = new CSSScale(-3.14, CSS.number(3.14), -3.14);
47
  assert_style_value_equals(result.x, CSS.number(-3.14));
48
  assert_style_value_equals(result.y, CSS.number(3.14));
49
  assert_style_value_equals(result.z, CSS.number(-3.14));
50
  assert_false(result.is2D);
51
}, 'CSSScale can be constructed from three number coordinates');
52
53
test(() => {
54
  const result = new CSSScale(new CSSMathSum(-3.14), new CSSMathMax(3.14), new CSSMathNegate(-3.14));
55
  assert_style_value_equals(result.x, new CSSMathSum(-3.14));
56
  assert_style_value_equals(result.y, new CSSMathMax(3.14));
57
  assert_style_value_equals(result.z, new CSSMathNegate(-3.14));
58
  assert_false(result.is2D);
59
}, 'CSSScale can be constructed from CSSMathValue coordinates');
60
61
for (const attr of ['x', 'y', 'z']) {
62
  test(() => {
63
    let result = new CSSScale(0, 0, 0);
64
    result[attr] = 3.14;
65
    assert_style_value_equals(result[attr], CSS.number(3.14));
66
  }, 'CSSScale.' + attr + ' can be updated to a number');
67
68
  test(() => {
69
    let result = new CSSScale(0, 0, 0);
70
    result[attr] = CSS.number(3.14);
71
    assert_style_value_equals(result[attr], CSS.number(3.14));
72
  }, 'CSSScale.' + attr + ' can be updated to a numberish');
73
74
  test(() => {
75
    let result = new CSSScale(0, 0, 0);
76
    result[attr] = new CSSMathSum(3.14);
77
    assert_style_value_equals(result[attr], new CSSMathSum(3.14));
78
  }, 'CSSScale.' + attr + ' can be updated to a CSSMathValue');
79
}
80
81
test(() => {
82
  let rotation = new CSSScale(0, 0, 0);
83
  rotation.is2D = true;
84
  assert_true(rotation.is2D);
85
  rotation.is2D = false;
86
  assert_false(rotation.is2D);
87
}, 'Modifying CSSScale.is2D can be updated to true or false');
88
89
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkew.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkew.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkew.tentative.html +70 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkew.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSSkew tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssskew">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gInvalidTestCases = [
12
  { value: 'auto', desc: 'a keyword'},
13
  { value: 3.14, desc: 'a double'},
14
  { value: 0, desc: 'a unitless zero'},
15
  { value: '10deg', desc: 'a string angle'},
16
  { value: CSS.number(10), desc: 'a number CSSUnitValue'},
17
  { value: CSS.s(10), desc: 'a time dimension CSSUnitValue'},
18
  { value: new CSSMathSum(CSS.px(1)), desc: 'a CSSMathValue of length type' },
19
];
20
21
for (const {value, desc} of gInvalidTestCases) {
22
  test(() => {
23
    assert_throws_js(TypeError, () => new CSSSkew(value, CSS.deg(0)));
24
    assert_throws_js(TypeError, () => new CSSSkew(CSS.deg(0), value));
25
  }, 'Constructing a CSSSkew with ' + desc + ' throws a TypeError');
26
}
27
28
for (const attr of ['ax', 'ay']) {
29
  for (const {value, desc} of gInvalidTestCases) {
30
    test(() => {
31
      let skew = new CSSSkew(CSS.deg(0), CSS.deg(0));
32
      assert_throws_js(TypeError, () => skew[attr] = value);
33
      assert_style_value_equals(skew[attr], CSS.deg(0));
34
    }, 'Updating CSSSkew.' + attr + ' with ' + desc + ' throws a TypeError');
35
  }
36
}
37
38
const gValidTestCases = [
39
  { value: CSS.deg(-3.14), desc: 'an angle CSSUnitValue' },
40
  { value: new CSSMathSum(CSS.deg(1)), desc: 'a CSSMathValue of angle type' },
41
];
42
43
for (const {value: ax, desc: axDesc} of gValidTestCases) {
44
  for (const {value: ay, desc: ayDesc} of gValidTestCases) {
45
    test(() => {
46
      const skew = new CSSSkew(ax, ay);
47
      assert_equals(skew.ax, ax);
48
      assert_equals(skew.ay, ay);
49
      assert_true(skew.is2D);
50
    }, 'CSSSkew can be constructed from ' + axDesc + ' and ' + ayDesc);
51
  }
52
}
53
54
for (const attr of ['ax', 'ay']) {
55
  for (const {value, desc} of gValidTestCases) {
56
    test(() => {
57
      let skew = new CSSSkew(CSS.deg(0), CSS.deg(0));
58
      skew[attr] = value;
59
      assert_style_value_equals(skew[attr], value);
60
    }, 'CSSSkew.' + attr + ' can be updated to ' + desc);
61
  }
62
}
63
64
test(() => {
65
  let skew = new CSSSkew(CSS.deg(0), CSS.deg(0));
66
  skew.is2D = false;
67
  assert_true(skew.is2D);
68
}, 'Modifying CSSSkew.is2D is a no-op');
69
70
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewX.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewX.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewX.tentative.html +62 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewX.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSSkewX tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssskewx">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gInvalidTestCases = [
12
  { value: 'auto', desc: 'a keyword'},
13
  { value: 3.14, desc: 'a double'},
14
  { value: 0, desc: 'a unitless zero'},
15
  { value: '10deg', desc: 'a string angle'},
16
  { value: CSS.number(10), desc: 'a number CSSUnitValue'},
17
  { value: CSS.s(10), desc: 'a time dimension CSSUnitValue'},
18
  { value: new CSSMathSum(CSS.px(1)), desc: 'a CSSMathValue of length type' },
19
];
20
21
for (const {value, desc} of gInvalidTestCases) {
22
  test(() => {
23
    assert_throws_js(TypeError, () => new CSSSkewX(value));
24
  }, 'Constructing a CSSSkewX with ' + desc + ' throws a TypeError');
25
}
26
27
for (const {value, desc} of gInvalidTestCases) {
28
  test(() => {
29
    let skewX = new CSSSkewX(CSS.deg(0));
30
    assert_throws_js(TypeError, () => skewX.ax = value);
31
    assert_style_value_equals(skewX.ax, CSS.deg(0));
32
  }, 'Updating CSSSkewX.ax with ' + desc + ' throws a TypeError');
33
}
34
35
const gValidTestCases = [
36
  { value: CSS.deg(-3.14), desc: 'an angle CSSUnitValue' },
37
  { value: new CSSMathSum(CSS.deg(1)), desc: 'a CSSMathValue of angle type' },
38
];
39
40
for (const {value: ax, desc: axDesc} of gValidTestCases) {
41
  test(() => {
42
    const skewX = new CSSSkewX(ax);
43
    assert_equals(skewX.ax, ax);
44
    assert_true(skewX.is2D);
45
  }, 'CSSSkewX can be constructed from ' + axDesc);
46
}
47
48
for (const {value, desc} of gValidTestCases) {
49
  test(() => {
50
    let skewX = new CSSSkewX(CSS.deg(0));
51
    skewX.ax = value;
52
    assert_style_value_equals(skewX.ax, value);
53
  }, 'CSSSkew.ax can be updated to ' + desc);
54
}
55
56
test(() => {
57
  let skewX = new CSSSkewX(CSS.deg(0));
58
  skewX.is2D = false;
59
  assert_true(skewX.is2D);
60
}, 'Modifying skewX.is2D is a no-op');
61
62
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewY.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewY.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.number is not a function. (In 'CSS.number(10)', 'CSS.number' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewY.tentative.html +62 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssSkewY.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSSkewY tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssskewy">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gInvalidTestCases = [
12
  { value: 'auto', desc: 'a keyword'},
13
  { value: 3.14, desc: 'a double'},
14
  { value: 0, desc: 'a unitless zero'},
15
  { value: '10deg', desc: 'a string angle'},
16
  { value: CSS.number(10), desc: 'a number CSSUnitValue'},
17
  { value: CSS.s(10), desc: 'a time dimension CSSUnitValue'},
18
  { value: new CSSMathSum(CSS.px(1)), desc: 'a CSSMathValue of length type' },
19
];
20
21
for (const {value, desc} of gInvalidTestCases) {
22
  test(() => {
23
    assert_throws_js(TypeError, () => new CSSSkewY(value));
24
  }, 'Constructing a CSSSkewY with ' + desc + ' throws a TypeError');
25
}
26
27
for (const {value, desc} of gInvalidTestCases) {
28
  test(() => {
29
    let skewY = new CSSSkewY(CSS.deg(0));
30
    assert_throws_js(TypeError, () => skewY.ay = value);
31
    assert_style_value_equals(skewY.ay, CSS.deg(0));
32
  }, 'Updating CSSSkewY.ay with ' + desc + ' throws a TypeError');
33
}
34
35
const gValidTestCases = [
36
  { value: CSS.deg(-3.14), desc: 'an angle CSSUnitValue' },
37
  { value: new CSSMathSum(CSS.deg(1)), desc: 'a CSSMathValue of angle type' },
38
];
39
40
for (const {value: ay, desc: ayDesc} of gValidTestCases) {
41
  test(() => {
42
    const skewY = new CSSSkewY(ay);
43
    assert_equals(skewY.ay, ay);
44
    assert_true(skewY.is2D);
45
  }, 'CSSSkewY can be constructed from ' + ayDesc);
46
}
47
48
for (const {value, desc} of gValidTestCases) {
49
  test(() => {
50
    let skewY = new CSSSkewY(CSS.deg(0));
51
    skewY.ay = value;
52
    assert_style_value_equals(skewY.ay, value);
53
  }, 'CSSSkewY.ay can be updated to ' + desc);
54
}
55
56
test(() => {
57
  let skewY = new CSSSkewY(CSS.deg(0));
58
  skewY.is2D = false;
59
  assert_true(skewY.is2D);
60
}, 'Modifying skewY.is2D is a no-op');
61
62
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix-expected.txt +10 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix-expected.txt_sec1
1
2
FAIL CSSTranslate.toMatrix() returns correct matrix Can't find variable: CSSTranslate
3
FAIL CSSRotate.toMatrix() returns correct matrix Can't find variable: CSSRotate
4
FAIL CSSScale.toMatrix() returns correct matrix Can't find variable: CSSScale
5
FAIL CSSSkew.toMatrix() returns correct matrix Can't find variable: CSSSkew
6
FAIL CSSSkewX.toMatrix() returns correct matrix Can't find variable: CSSSkewX
7
FAIL CSSSkewY.toMatrix() returns correct matrix Can't find variable: CSSSkewY
8
FAIL CSSPerspective.toMatrix() returns correct matrix Can't find variable: CSSPerspective
9
FAIL CSSMatrixComponent.toMatrix() returns correct matrix Can't find variable: CSSMatrixComponent
10
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix-relative-units-expected.txt +15 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix-relative-units-expected.txt_sec1
1
2
FAIL CSSTranslate.toMatrix() containing relative units throws TypeError assert_throws_js: function "() => {
3
    return new CSSTranslate(
4
      new CSSUnitValue(1, 'px'),
5
      new CSSUnitValue(1, 'em')
6
    ).toMatrix();
7
  }" threw object "ReferenceError: Can't find variable: CSSTranslate" ("ReferenceError") expected instance of function "function TypeError() {
8
    [native code]
9
}" ("TypeError")
10
FAIL CSSPerspective.toMatrix() containing relative units throws TypeError assert_throws_js: function "() => {
11
    return new CSSPerspective(new CSSUnitValue(1, 'em')).toMatrix();
12
  }" threw object "ReferenceError: Can't find variable: CSSPerspective" ("ReferenceError") expected instance of function "function TypeError() {
13
    [native code]
14
}" ("TypeError")
15
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix-relative-units.html +27 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix-relative-units.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSTransformComponent.toMatrix with Relative Units</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformcomponent-tomatrix">
5
<meta name="assert" content="Test CSSTransformComponent.toMatrix throws when given relative units" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../resources/testhelper.js"></script>
9
<script>
10
'use strict';
11
12
test(() => {
13
  assert_throws_js(TypeError, () => {
14
    return new CSSTranslate(
15
      new CSSUnitValue(1, 'px'),
16
      new CSSUnitValue(1, 'em')
17
    ).toMatrix();
18
  });
19
}, 'CSSTranslate.toMatrix() containing relative units throws TypeError');
20
21
test(() => {
22
  assert_throws_js(TypeError, () => {
23
    return new CSSPerspective(new CSSUnitValue(1, 'em')).toMatrix();
24
  });
25
}, 'CSSPerspective.toMatrix() containing relative units throws TypeError');
26
27
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix.html +86 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSTransformComponent.toMatrix tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformcomponent-tomatrix">
5
<meta name="assert" content="Test CSSTransformComponent.toMatrix for each type of component" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../resources/testhelper.js"></script>
9
<script>
10
'use strict';
11
12
const gEpsilon = 1e-6;
13
14
test(() => {
15
  const component = new CSSTranslate(
16
    new CSSUnitValue(1, 'px'),
17
    new CSSUnitValue(2, 'px'),
18
    new CSSUnitValue(3, 'px')
19
  );
20
  const expectedMatrix = (new DOMMatrixReadOnly()).translate(1, 2, 3);
21
  assert_matrix_approx_equals(component.toMatrix(), expectedMatrix, 1e-8);
22
}, 'CSSTranslate.toMatrix() returns correct matrix');
23
24
test(() => {
25
  const component = new CSSRotate(
26
    new CSSUnitValue(1, 'number'),
27
    new CSSUnitValue(2, 'number'),
28
    new CSSUnitValue(3, 'number'),
29
    new CSSUnitValue(90, 'deg')
30
  );
31
  const expectedMatrix = (new DOMMatrixReadOnly()).rotateAxisAngle(1, 2, 3, 90);
32
  assert_matrix_approx_equals(component.toMatrix(), expectedMatrix, gEpsilon);
33
}, 'CSSRotate.toMatrix() returns correct matrix');
34
35
test(() => {
36
  const component = new CSSScale(1, 2, 3);
37
  const expectedMatrix = (new DOMMatrixReadOnly()).scale(1, 2, 3);
38
  assert_matrix_approx_equals(component.toMatrix(), expectedMatrix, gEpsilon);
39
}, 'CSSScale.toMatrix() returns correct matrix');
40
41
test(() => {
42
  const alpha = 10, beta = 20;
43
  const component = new CSSSkew(
44
    new CSSUnitValue(alpha, 'rad'),
45
    new CSSUnitValue(beta, 'rad')
46
  );
47
  const expectedMatrix = new DOMMatrixReadOnly(
48
        [1, Math.tan(beta), 0, 0, Math.tan(alpha), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
49
  assert_matrix_approx_equals(component.toMatrix(), expectedMatrix, gEpsilon);
50
}, 'CSSSkew.toMatrix() returns correct matrix');
51
52
test(() => {
53
  const component = new CSSSkewX(
54
    new CSSUnitValue(10, 'deg'),
55
  );
56
  const expectedMatrix = (new DOMMatrixReadOnly()).skewX(10);
57
  assert_matrix_approx_equals(component.toMatrix(), expectedMatrix, gEpsilon);
58
}, 'CSSSkewX.toMatrix() returns correct matrix');
59
60
test(() => {
61
  const component = new CSSSkewY(
62
    new CSSUnitValue(10, 'deg'),
63
  );
64
  const expectedMatrix = (new DOMMatrixReadOnly()).skewY(10);
65
  assert_matrix_approx_equals(component.toMatrix(), expectedMatrix, gEpsilon);
66
}, 'CSSSkewY.toMatrix() returns correct matrix');
67
68
test(() => {
69
  const length = 10;
70
  const component = new CSSPerspective(new CSSUnitValue(length, 'px'));
71
  const expectedMatrix = new DOMMatrixReadOnly(
72
        [1, 0, 0, 0,
73
         0, 1, 0, 0,
74
         0, 0, 1, -1/length,
75
         0, 0, 0, 1]);
76
  assert_matrix_approx_equals(component.toMatrix(), expectedMatrix, gEpsilon);
77
}, 'CSSPerspective.toMatrix() returns correct matrix');
78
79
test(() => {
80
  const matrix = new DOMMatrixReadOnly(
81
          [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]);
82
  const component = new CSSMatrixComponent(matrix);
83
  assert_matrix_approx_equals(component.toMatrix(), matrix, gEpsilon);
84
}, 'CSSMatrixComponent.toMatrix() returns correct matrix');
85
86
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue-toMatrix-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue-toMatrix-expected.txt_sec1
1
2
FAIL CSSTransformValue.toMatrix() multiplies its component matrices Can't find variable: CSSScale
3
FAIL CSSTransformValue.toMatrix() respects is2D changes in its components Can't find variable: CSSTranslate
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue-toMatrix.html +52 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue-toMatrix.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSTransformValue.toMatrix</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformcomponent-tomatrix">
5
<meta name="assert" content="Test CSSTransformValue.toMatrix multiplies component matrices" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../resources/testhelper.js"></script>
9
<script>
10
'use strict';
11
12
const gEpsilon = 1e-6;
13
14
test(() => {
15
  const transformMatrix = new DOMMatrixReadOnly([1, 1, 1, 1, 1, 1]);
16
  const transformArray = [
17
    new CSSScale(2, 2),
18
    new CSSMatrixComponent(transformMatrix),
19
    new CSSScale(5, 6)
20
  ];
21
22
  let expectedMatrix = new DOMMatrix();
23
  expectedMatrix.scaleSelf(2, 2);
24
  expectedMatrix.multiplySelf(transformMatrix);
25
  expectedMatrix.scaleSelf(5, 6);
26
27
  const transform = new CSSTransformValue(transformArray);
28
  assert_matrix_approx_equals(transform.toMatrix(), expectedMatrix, gEpsilon);
29
}, 'CSSTransformValue.toMatrix() multiplies its component matrices');
30
31
test(() => {
32
  const transformMatrix = new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]);
33
  let transformArray = [
34
    new CSSTranslate(CSS.px(1), CSS.px(1), CSS.px(1)),
35
    new CSSRotate(1, 2, 3, CSS.deg(90)),
36
    new CSSScale(2, 3, 2),
37
    new CSSMatrixComponent(transformMatrix),
38
  ];
39
40
  transformArray.forEach(transform => transform.is2D = true);
41
42
  let expectedMatrix = new DOMMatrix();
43
  expectedMatrix.translateSelf(1, 1);
44
  expectedMatrix.rotateSelf(90);
45
  expectedMatrix.scaleSelf(2, 3);
46
  expectedMatrix.multiplySelf(new DOMMatrixReadOnly([1, 2, 5, 6, 13, 14]));
47
48
  const transform = new CSSTransformValue(transformArray);
49
  assert_matrix_approx_equals(transform.toMatrix(), expectedMatrix, gEpsilon);
50
}, 'CSSTransformValue.toMatrix() respects is2D changes in its components');
51
52
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue.tentative-expected.txt +12 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue.tentative-expected.txt_sec1
1
2
FAIL Constructing a CSSTransformValue with no components throws TypeError assert_throws_js: function "() => new CSSTransformValue()" threw object "ReferenceError: Can't find variable: CSSTransformValue" ("ReferenceError") expected instance of function "function TypeError() {
3
    [native code]
4
}" ("TypeError")
5
FAIL CSSTransformValue can be constructed with multiple transforms Can't find variable: CSSScale
6
FAIL CSSTransformValue.set correctly sets the CSSTransformComponent at the given index Can't find variable: CSSScale
7
FAIL Setting a component in CSSTransformValue correctly appends the CSSTransformComponent if index specified is greater than length Can't find variable: CSSScale
8
FAIL CSSTransformValue.is2D is false when given mix of 2D and 3D transforms Can't find variable: CSSTransformValue
9
FAIL CSSTransformValue.is2D is true when given only 2D transforms Can't find variable: CSSTransformValue
10
FAIL CSSTransformValue.is2D is readonly Can't find variable: CSSTransformValue
11
FAIL Can iterate through CSSTransformValue components Can't find variable: CSSScale
12
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue.tentative.html +97 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTransformValue.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSTransformValue tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#transformvalue-objects">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script src="../resources/comparisons.js"></script>
9
<script>
10
'use strict';
11
12
test(() => {
13
  assert_throws_js(TypeError, () => new CSSTransformValue());
14
  assert_throws_js(TypeError, () => new CSSTransformValue([]));
15
}, 'Constructing a CSSTransformValue with no components throws TypeError');
16
17
test(() => {
18
  const values = [
19
    new CSSScale(1, 1),
20
    new CSSTranslate(CSS.px(1), CSS.px(1)),
21
    new CSSRotate(CSS.deg(90))
22
  ];
23
24
  const transform = new CSSTransformValue(values);
25
  assert_style_value_array_equals(transform, values);
26
}, 'CSSTransformValue can be constructed with multiple transforms');
27
28
test(() => {
29
  const values = [
30
    new CSSScale(1, 1),
31
    new CSSTranslate(CSS.px(1), CSS.px(1)),
32
    new CSSRotate(CSS.deg(90))
33
  ];
34
35
  const transform = new CSSTransformValue(values);
36
  assert_style_value_array_equals(transform, values);
37
38
  values.pop();
39
  var new_value = new CSSRotate(CSS.deg(45));
40
  values[2] = new_value;
41
  transform[2] = new_value;
42
  assert_style_value_array_equals(transform, values);
43
}, 'CSSTransformValue.set correctly sets the CSSTransformComponent at the given index');
44
45
test(() => {
46
  const values = [
47
    new CSSScale(1, 1),
48
    new CSSTranslate(CSS.px(1), CSS.px(1)),
49
    new CSSRotate(CSS.deg(90))
50
  ];
51
52
  const transform = new CSSTransformValue(values);
53
  assert_style_value_array_equals(transform, values);
54
55
  var new_value = new CSSRotate(CSS.deg(45));
56
  values[3] = new_value;
57
  transform[3] = new_value;
58
  assert_style_value_array_equals(transform, values);
59
}, 'Setting a component in CSSTransformValue correctly appends the CSSTransformComponent if index specified is greater than length');
60
61
test(() => {
62
  const transform = new CSSTransformValue([
63
    new CSSScale(1, 1),
64
    new CSSTranslate(CSS.px(1), CSS.px(1), CSS.px(1)),
65
    new CSSScale(1, 1)
66
  ]);
67
  assert_equals(transform.is2D, false);
68
}, 'CSSTransformValue.is2D is false when given mix of 2D and 3D transforms');
69
70
test(() => {
71
  const transform = new CSSTransformValue([
72
    new CSSScale(1, 1),
73
    new CSSTranslate(CSS.px(1), CSS.px(1)),
74
    new CSSScale(1, 1)
75
  ]);
76
  assert_equals(transform.is2D, true);
77
}, 'CSSTransformValue.is2D is true when given only 2D transforms');
78
79
test(() => {
80
  let transform = new CSSTransformValue([new CSSScale(1, 2)]);
81
  assert_throws_js(TypeError, () => transform.is2D = false);
82
  assert_equals(transform.is2D, true);
83
}, 'CSSTransformValue.is2D is readonly');
84
85
test(() => {
86
  const transformArray = [
87
    new CSSScale(2, 2),
88
    new CSSMatrixComponent(new DOMMatrixReadOnly([1, 1, 1, 1, 1, 1])),
89
    new CSSScale(5, 6)
90
  ];
91
92
  const transformValue = new CSSTransformValue(transformArray);
93
94
  const newTransformArray = [...transformValue];
95
  assert_style_value_array_equals([...transformValue], transformArray);
96
}, 'Can iterate through CSSTransformValue components');
97
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTranslate.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTranslate.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.deg is not a function. (In 'CSS.deg(1)', 'CSS.deg' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.deg is not a function. (In 'CSS.deg(1)', 'CSS.deg' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTranslate.tentative.html +110 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssTranslate.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSTranslate tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#csstranslate">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gInvalidCoordTestCases = [
12
  { coord: CSS.deg(1), desc: 'a CSSUnitValue with type other than length or percent'},
13
  { coord: new CSSMathSum(CSS.deg(1)), desc: 'a CSSMathValue that doesn\'t match <length-percentage>'},
14
];
15
16
for (const {coord, desc} of gInvalidCoordTestCases) {
17
  test(() => {
18
    assert_throws_js(TypeError, () => new CSSTranslate(coord, CSS.px(0), CSS.px(0)));
19
    assert_throws_js(TypeError, () => new CSSTranslate(CSS.px(0), coord, CSS.px(0)));
20
    assert_throws_js(TypeError, () => new CSSTranslate(CSS.px(0), CSS.px(0), coord));
21
  }, 'Constructing a CSSTranslate with ' + desc + ' for the coordinates throws a TypeError');
22
}
23
24
test(() => {
25
  assert_throws_js(TypeError, () => new CSSTranslate(CSS.px(0), CSS.px(0), CSS.percent(0)));
26
}, 'Constructing a CSSTranslate with a percent for the Z coordinate throws a TypeError');
27
28
for (const attr of ['x', 'y', 'z']) {
29
  for (const {value, desc} of gInvalidCoordTestCases) {
30
    test(() => {
31
      let result = new CSSTranslate(CSS.px(0), CSS.px(0), CSS.px(0));
32
      assert_throws_js(TypeError, () => result[attr] = value);
33
      assert_style_value_equals(result[attr], CSS.px(0));
34
    }, 'Updating CSSTranslate.' + attr + ' to ' + desc + ' throws a TypeError');
35
  }
36
}
37
38
test(() => {
39
  let result = new CSSTranslate(CSS.px(0), CSS.px(0), CSS.px(0));
40
  assert_throws_js(TypeError, () => result.z = CSS.percent(0));
41
  assert_style_value_equals(result.z, CSS.px(0));
42
}, 'Updating CSSTranslate.z to a percent throws a TypeError');
43
44
test(() => {
45
  const result = new CSSTranslate(CSS.px(-3.14), CSS.percent(3.14));
46
  assert_style_value_equals(result.x, CSS.px(-3.14));
47
  assert_style_value_equals(result.y, CSS.percent(3.14));
48
  assert_style_value_equals(result.z, CSS.px(0));
49
  assert_true(result.is2D);
50
}, 'CSSTranslate can be constructed from two length or percent coordinates');
51
52
test(() => {
53
  const result = new CSSTranslate(CSS.px(-3.14), CSS.percent(3.14), CSS.px(10));
54
  assert_style_value_equals(result.x, CSS.px(-3.14));
55
  assert_style_value_equals(result.y, CSS.percent(3.14));
56
  assert_style_value_equals(result.z, CSS.px(10));
57
  assert_false(result.is2D);
58
}, 'CSSTranslate can be constructed from three length or percent coordinates');
59
60
test(() => {
61
  const result = new CSSTranslate(new CSSMathSum(CSS.px(-3.14)), new CSSMathSum(CSS.percent(3.14)));
62
  assert_style_value_equals(result.x, new CSSMathSum(CSS.px(-3.14)));
63
  assert_style_value_equals(result.y, new CSSMathSum(CSS.percent(3.14)));
64
  assert_style_value_equals(result.z, CSS.px(0));
65
  assert_true(result.is2D);
66
}, 'CSSTranslate can be constructed from CSSMathValues');
67
68
for (const attr of ['x', 'y']) {
69
  test(() => {
70
    let result = new CSSTranslate(CSS.px(0), CSS.px(0), CSS.px(0));
71
    result[attr] = CSS.px(3.14);
72
    assert_style_value_equals(result[attr], CSS.px(3.14));
73
  }, 'CSSTranslate.' + attr + ' can be updated to a length');
74
75
  test(() => {
76
    let result = new CSSTranslate(CSS.px(0), CSS.px(0), CSS.px(0));
77
    result[attr] = CSS.percent(3.14);
78
    assert_style_value_equals(result[attr], CSS.percent(3.14));
79
  }, 'CSSTranslate.' + attr + ' can be updated to a percent');
80
81
  test(() => {
82
    let result = new CSSTranslate(CSS.px(0), CSS.px(0), CSS.px(0));
83
    result[attr] = new CSSMathSum(CSS.px(3.14));
84
    assert_style_value_equals(result[attr], new CSSMathSum(CSS.px(3.14)));
85
    result[attr] = new CSSMathSum(CSS.percent(3.14));
86
    assert_style_value_equals(result[attr], new CSSMathSum(CSS.percent(3.14)));
87
  }, 'CSSTranslate.' + attr + ' can be updated to a CSSMathValue');
88
}
89
90
test(() => {
91
  let result = new CSSTranslate(CSS.px(0), CSS.px(0), CSS.px(0));
92
  result.z = CSS.px(3.14);
93
  assert_style_value_equals(result.z, CSS.px(3.14));
94
}, 'CSSTranslate.z can be updated to a length');
95
96
test(() => {
97
  let result = new CSSTranslate(CSS.px(0), CSS.px(0), CSS.px(0));
98
  result.z = new CSSMathSum(CSS.px(3.14));
99
  assert_style_value_equals(result.z, new CSSMathSum(CSS.px(3.14)));
100
}, 'CSSTranslate.z can be updated to a CSSMathValue');
101
102
test(() => {
103
  let result = new CSSTranslate(CSS.px(0), CSS.px(0));
104
  result.is2D = true;
105
  assert_true(result.is2D);
106
  result.is2D = false;
107
  assert_false(result.is2D);
108
}, 'Modifying CSSTranslate.is2D can be updated to true or false');
109
110
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-empty-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-empty-expected.txt_sec1
1
2
PASS Don't crash when serializing empty CSSUnparsedValue
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-empty.html +15 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-empty.html_sec1
1
<!DOCTYPE html>
2
<title>CSSUnparsedValue: Don't crash for empty values</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunparsedvalue-cssunparsedvalue">
4
<link rel="help" href="https://crbug.com/1169941">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script>
8
'use strict';
9
10
test(() => {
11
  const result = new CSSUnparsedValue(['']);
12
  assert_equals('', result.toString()); // Don't crash.
13
}, `Don't crash when serializing empty CSSUnparsedValue`);
14
15
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSVariableReferenceValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSVariableReferenceValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-indexed-getter-setter-expected.txt +8 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-indexed-getter-setter-expected.txt_sec1
1
2
PASS Getting invalid index in CSSUnparsedValue returns undefined
3
FAIL Can update fragment in CSSUnparsedValue to a String Can't find variable: CSSVariableReferenceValue
4
FAIL Can update fragment in CSSUnparsedValue to a CSSVariableReference Can't find variable: CSSVariableReferenceValue
5
PASS Setting one past the last fragment in a CSSUnparsedValue to a String appends the new fragment
6
FAIL Setting one past the last fragment in a CSSUnparsedValue to a CSSVariableReferenceValue appends the new fragment Can't find variable: CSSVariableReferenceValue
7
FAIL Setting out of range index in CSSUnparsedValue throws RangeError assert_throws_js: function "() => result[3] = 'foo'" did not throw
8
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-indexed-getter-setter.html +54 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-indexed-getter-setter.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSUnparsedValue Indexed Getter and Setter</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunparsedvalue-__getter__-index-index">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunparsedvalue-__setter__-index-val-val">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../resources/testhelper.js"></script>
9
<body>
10
<div id="log"></div>
11
<script>
12
'use strict';
13
14
test(() => {
15
  const result = new CSSUnparsedValue(['foo', 'bar']);
16
  assert_equals(result[3], undefined, 'result from out of range index');
17
  assert_equals(result[-1], undefined, 'result from negative index');
18
}, 'Getting invalid index in CSSUnparsedValue returns undefined');
19
20
test(() => {
21
  let result = new CSSUnparsedValue([new CSSVariableReferenceValue('--foo')]);
22
  result[0] = 'A';
23
  assert_equals(result[0], 'A', 'fragment reflects new value');
24
}, 'Can update fragment in CSSUnparsedValue to a String');
25
26
test(() => {
27
  let result = new CSSUnparsedValue(['foo']);
28
  result[0] = new CSSVariableReferenceValue('--A');
29
  assert_style_value_equals(result[0], new CSSVariableReferenceValue('--A'),
30
                            'fragment reflects new value');
31
}, 'Can update fragment in CSSUnparsedValue to a CSSVariableReference');
32
33
test(() => {
34
  let result = new CSSUnparsedValue([]);
35
  result[0] = 'foo';
36
  assert_equals(result[0], 'foo', 'new fragment is appended');
37
}, 'Setting one past the last fragment in a CSSUnparsedValue to a String ' +
38
   'appends the new fragment');
39
40
test(() => {
41
  let result = new CSSUnparsedValue([' ']);
42
  result[1] = new CSSVariableReferenceValue('--A');
43
  assert_style_value_equals(result[1], new CSSVariableReferenceValue('--A'),
44
                            'new fragment is appended');
45
}, 'Setting one past the last fragment in a CSSUnparsedValue to a ' +
46
   'CSSVariableReferenceValue appends the new fragment');
47
48
test(() => {
49
  let result = new CSSUnparsedValue(['foo', 'bar']);
50
  assert_throws_js(RangeError, () => result[3] = 'foo');
51
  assert_equals(result[3], undefined, 'fragment does not change');
52
}, 'Setting out of range index in CSSUnparsedValue throws RangeError');
53
54
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-iterable-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-iterable-expected.txt_sec1
1
2
FAIL Iterating over an empty CSSUnparsedValue produces nothing Spread syntax requires ...iterable[Symbol.iterator] to be a function
3
FAIL Iterating over a CSSUnparsedValue produces all fragments Can't find variable: CSSVariableReferenceValue
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-iterable.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-iterable.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSUnparsedValue Iterable Declaration</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssunparsedvalue">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<div id="log"></div>
10
<script>
11
'use strict';
12
13
test(() => {
14
  const result = new CSSUnparsedValue([]);
15
  assert_array_equals([...result], [], 'result of iterating');
16
}, 'Iterating over an empty CSSUnparsedValue produces nothing');
17
18
test(() => {
19
  const args = [' ', new CSSVariableReferenceValue('--A')];
20
  const result = new CSSUnparsedValue(args);
21
  assert_style_value_array_equals([...result], args, 'result of iterating');
22
}, 'Iterating over a CSSUnparsedValue produces all fragments');
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-length-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-length-expected.txt_sec1
1
2
FAIL Length of CSSUnparsedValue with no fragments is zero assert_equals: length expected (number) 0 but got (undefined) undefined
3
FAIL Length of CSSUnparsedValue with multiple fragments is the number of fragments Can't find variable: CSSVariableReferenceValue
4
FAIL Length of CSSUnparsedValue updates when fragments are appended assert_equals: initial length expected (number) 1 but got (undefined) undefined
5
FAIL Length of CSSUnparsedValue does not change when fragments are modified assert_equals: initial length expected (number) 1 but got (undefined) undefined
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-length.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue-length.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSUnparsedValue.length</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunparsedvalue-length">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<body>
8
<div id="log"></div>
9
<script>
10
'use strict';
11
12
test(() => {
13
  const result = new CSSUnparsedValue([]);
14
  assert_equals(result.length, 0, 'length');
15
}, 'Length of CSSUnparsedValue with no fragments is zero');
16
17
test(() => {
18
  const result = new CSSUnparsedValue([
19
    ' ', new CSSVariableReferenceValue('--A')
20
  ]);
21
  assert_equals(result.length, 2, 'length');
22
}, 'Length of CSSUnparsedValue with multiple fragments is the number of ' +
23
   'fragments');
24
25
test(() => {
26
  let result = new CSSUnparsedValue([' ']);
27
  assert_equals(result.length, 1, 'initial length');
28
29
  result[1] = new CSSVariableReferenceValue('--A');
30
  assert_equals(result.length, 2, 'length after appending once');
31
32
  result[2] = 'lemon';
33
  assert_equals(result.length, 3, 'length after appending twice');
34
}, 'Length of CSSUnparsedValue updates when fragments are appended');
35
36
test(() => {
37
  let result = new CSSUnparsedValue([' ']);
38
  assert_equals(result.length, 1, 'initial length');
39
40
  result[0] = new CSSVariableReferenceValue('--A');
41
  assert_equals(result.length, 1, 'length after modification');
42
43
  result[0] = 'lemon';
44
  assert_equals(result.length, 1, 'length after modification');
45
}, 'Length of CSSUnparsedValue does not change when fragments are modified');
46
47
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSUnparsedValue Constructor</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunparsedvalue-cssunparsedvalue">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<div id="log"></div>
10
<script>
11
'use strict';
12
13
const gTestArguments = [
14
  {
15
    description: 'no arguments',
16
    fragments: [],
17
  },
18
  {
19
    description: 'a single empty string',
20
    fragments: [''],
21
  },
22
  {
23
    description: 'a single CSSVariableReferenceValue',
24
    fragments: [new CSSVariableReferenceValue('--foo')],
25
  },
26
  {
27
    description: 'a mix of strings and CSSVariableReferenceValues',
28
    fragments: [
29
      'foo',
30
      'bar',
31
      new CSSVariableReferenceValue('--A'),
32
      'baz',
33
      new CSSVariableReferenceValue('--B')
34
    ],
35
  },
36
];
37
38
for (const args of gTestArguments) {
39
  test(() => {
40
    const result = new CSSUnparsedValue(args.fragments);
41
    assert_not_equals(result, null, 'a CSSUnparsedValue is created');
42
    assert_style_value_array_equals(result, args.fragments,
43
                                    'fragments are same as given by constructor');
44
  }, `CSSUnparsedValue can be constructed from ${args.description}`);
45
}
46
47
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-expected.txt_sec1
1
2
FAIL CSSVariableReferenceValue can be constructed with no fallback Can't find variable: CSSVariableReferenceValue
3
FAIL CSSVariableReferenceValue can be constructed with null fallback Can't find variable: CSSVariableReferenceValue
4
FAIL CSSVariableReferenceValue can be constructed with valid fallback Can't find variable: CSSVariableReferenceValue
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-invalid-expected.txt +8 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-invalid-expected.txt_sec1
1
2
FAIL Constructing a CSSVariableReferenceValue with an empty variable name throws a TypeError assert_throws_js: function "() => new CSSVariableReferenceValue('')" threw object "ReferenceError: Can't find variable: CSSVariableReferenceValue" ("ReferenceError") expected instance of function "function TypeError() {
3
    [native code]
4
}" ("TypeError")
5
FAIL Constructing a CSSVariableReferenceValue with an invalid variable name throws SyntaxError assert_throws_js: function "() => new CSSVariableReferenceValue('bar')" threw object "ReferenceError: Can't find variable: CSSVariableReferenceValue" ("ReferenceError") expected instance of function "function TypeError() {
6
    [native code]
7
}" ("TypeError")
8
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-invalid.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-invalid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSVariableReferenceValue Error Handling</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssvariablereferencevalue">
5
<meta name="assert" content="Test CSSVariableReferenceValue constructor and attributes error handling" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(() => {
14
  assert_throws_js(TypeError, () => new CSSVariableReferenceValue(''));
15
}, 'Constructing a CSSVariableReferenceValue with an empty variable name ' +
16
   'throws a TypeError');
17
18
test(() => {
19
  assert_throws_js(TypeError, () => new CSSVariableReferenceValue('bar'));
20
}, 'Constructing a CSSVariableReferenceValue with an invalid variable name ' +
21
   'throws SyntaxError');
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-variable-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-variable-expected.txt_sec1
1
2
FAIL CSSVariableReferenceValue.variable can updated to a valid custom property name Can't find variable: CSSVariableReferenceValue
3
FAIL Updating CSSVariableReferenceValue.variable to the empty string throws TypeError Can't find variable: CSSVariableReferenceValue
4
FAIL Updating CSSVariableReferenceValue.variable to an invalid custom property name throws TypeError Can't find variable: CSSVariableReferenceValue
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-variable.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue-variable.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSVariableReferenceValue.variable</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssvariablereferencevalue-variable">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<body>
8
<div id="log"></div>
9
<script>
10
'use strict';
11
12
test(() => {
13
  let result = new CSSVariableReferenceValue('--foo');
14
  result.variable = '--bar';
15
  assert_equals(result.variable, '--bar', 'variable reflects new value');
16
}, 'CSSVariableReferenceValue.variable can updated to a valid custom ' +
17
   'property name');
18
19
test(() => {
20
  let result = new CSSVariableReferenceValue('--foo');
21
  assert_throws_js(TypeError, () => result.variable = '');
22
  assert_equals(result.variable, '--foo', 'variable does not change');
23
}, 'Updating CSSVariableReferenceValue.variable to the empty string ' +
24
   'throws TypeError');
25
26
test(() => {
27
  let result = new CSSVariableReferenceValue('--foo');
28
  assert_throws_js(TypeError, () => result.variable = 'bar');
29
  assert_equals(result.variable, '--foo', 'variable does not change');
30
}, 'Updating CSSVariableReferenceValue.variable to an invalid custom ' +
31
   'property name throws TypeError');
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue.html +40 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSVariableReferenceValue Constructor</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssvariablereferencevalue-cssvariablereferencevalue">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../resources/testhelper.js"></script>
8
<body>
9
<div id="log"></div>
10
<script>
11
'use strict';
12
13
test(() => {
14
  const result = new CSSVariableReferenceValue('--foo');
15
  assert_not_equals(result, null, 'a CSSVariableReferenceValue is created');
16
  assert_equals(result.variable, '--foo',
17
                'variable is same as passed by constructor');
18
  assert_equals(result.fallback, null, 'fallback');
19
}, 'CSSVariableReferenceValue can be constructed with no fallback');
20
21
test(() => {
22
  const result = new CSSVariableReferenceValue('--foo', null);
23
  assert_not_equals(result, null, 'a CSSVariableReferenceValue is created');
24
  assert_equals(result.variable, '--foo',
25
                'variable is same as passed by constructor');
26
  assert_equals(result.fallback, null, 'fallback');
27
}, 'CSSVariableReferenceValue can be constructed with null fallback');
28
29
test(() => {
30
  const result = new CSSVariableReferenceValue('--foo',
31
      new CSSUnparsedValue(['lemon']));
32
  assert_not_equals(result, null, 'a CSSVariableReferenceValue is created');
33
  assert_equals(result.variable, '--foo',
34
                'variable is same as passed by constructor');
35
  assert_not_equals(result.fallback, null, 'fallback');
36
  assert_style_value_equals(result.fallback, new CSSUnparsedValue(['lemon']),
37
                            'fallback is same as passed by constructor');
38
}, 'CSSVariableReferenceValue can be constructed with valid fallback');
39
40
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/add-two-types.tentative-expected.txt +11 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/add-two-types.tentative-expected.txt_sec1
1
2
FAIL Adding two types with different non-null percent hints throws TypeError assert_throws_js: function "() => new CSSMathSum(a, b)" threw object "ReferenceError: Can't find variable: CSSMathSum" ("ReferenceError") expected instance of function "function TypeError() {
3
    [native code]
4
}" ("TypeError")
5
FAIL Adding two types with the same nonzero values returns same type Can't find variable: CSSMathSum
6
FAIL Adding two types with empty maps with returns empty map Can't find variable: CSSMathSum
7
FAIL Adding a type with percent returns type with percent hint Can't find variable: CSSMathSum
8
FAIL Adding a type with percent 2 returns type with percent hint throws TypeError Can't find variable: CSSMathProduct
9
FAIL Adding a type with a percent hint returns a type with the percent hint Can't find variable: CSSMathSum
10
FAIL Adding two types with the same percent hint returns a type with the percent hint Can't find variable: CSSMathSum
11
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/add-two-types.tentative.html +60 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/add-two-types.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Adding Two Numeric Types</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#add-two-types">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(() => {
14
  const a = new CSSUnitValue(0, 'number');
15
  const b = new CSSUnitValue(0, 'px');
16
  assert_throws_js(TypeError, () => new CSSMathSum(a, b));
17
}, 'Adding two types with different non-null percent hints throws TypeError');
18
19
test(() => {
20
  const a = new CSSUnitValue(0, 'px');
21
  const b = new CSSUnitValue(0, 'px');
22
  const result = new CSSMathSum(a, b);
23
  assert_numeric_type_equals(result.type(), { length: 1 });
24
}, 'Adding two types with the same nonzero values returns same type');
25
26
test(() => {
27
  const a = new CSSUnitValue(0, 'number');
28
  const b = new CSSUnitValue(0, 'number');
29
  const result = new CSSMathSum(a, b);
30
  assert_numeric_type_equals(result.type(), { });
31
}, 'Adding two types with empty maps with returns empty map');
32
33
test(() => {
34
  const a = new CSSUnitValue(0, 'px');
35
  const b = new CSSUnitValue(0, 'percent');
36
  const result = new CSSMathSum(a, b);
37
  assert_numeric_type_equals(result.type(), { length: 1, percentHint: 'length' });
38
}, 'Adding a type with percent returns type with percent hint');
39
40
test(() => {
41
  const a = new CSSMathProduct(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 'px'));
42
  const b = new CSSUnitValue(0, 'percent');
43
  assert_throws_js(TypeError, () => new CSSMathSum(a, b));
44
}, 'Adding a type with percent 2 returns type with percent hint throws TypeError');
45
46
test(() => {
47
  const a = new CSSMathSum(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 'percent'));
48
  const b = new CSSUnitValue(0, 'px');
49
  const result = new CSSMathSum(a, b);
50
  assert_numeric_type_equals(result.type(), { length: 1, percentHint: 'length' });
51
}, 'Adding a type with a percent hint returns a type with the percent hint');
52
53
test(() => {
54
  const a = new CSSMathSum(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 'percent'));
55
  const b = new CSSMathSum(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 'percent'));
56
  const result = new CSSMathSum(a, b);
57
  assert_numeric_type_equals(result.type(), { length: 1, percentHint: 'length' });
58
}, 'Adding two types with the same percent hint returns a type with the percent hint');
59
60
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/arithmetic.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/arithmetic.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSMathSum
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSMathSum
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/arithmetic.tentative.html +164 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/arithmetic.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Arithmetic operations on CSSNumericValue tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-add">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-sub">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-mul">
7
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-div">
8
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-min">
9
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-max">
10
<script src="/resources/testharness.js"></script>
11
<script src="/resources/testharnessreport.js"></script>
12
<script src="../../resources/testhelper.js"></script>
13
<script>
14
'use strict';
15
16
const gArithmeticOps = [
17
  { methodName: 'add', mathType: CSSMathSum },
18
  { methodName: 'sub', mathType: CSSMathSum },
19
  { methodName: 'mul', mathType: CSSMathProduct },
20
  { methodName: 'div', mathType: CSSMathProduct },
21
  { methodName: 'min', mathType: CSSMathMin },
22
  { methodName: 'max', mathType: CSSMathMax },
23
];
24
25
for (const {methodName, mathType} of gArithmeticOps) {
26
  test(() => {
27
    const result = CSS.number(1)[methodName]();
28
    assert_style_value_equals(result, CSS.number(1));
29
  }, 'Calling CSSUnitValue.' + methodName + ' with no arguments returns itself');
30
31
  test(() => {
32
    // Use an arithmetic expression that can't be simplified to a CSSUnitValue
33
    const mathValue = new mathType(CSS.px(1), CSS.percent(1));
34
    const result = mathValue[methodName]();
35
    assert_style_value_equals(result, mathValue);
36
  }, 'Calling CSSMathValue.' + methodName + ' with no arguments returns itself');
37
38
  test(() => {
39
    const result = CSS.px(1)[methodName](CSS.percent(1));
40
    assert_equals(result.constructor.name, mathType.name);
41
  }, 'Calling CSSNumericValue.' + methodName + ' with a single CSSNumericValue returns correct type');
42
43
  test(() => {
44
    const result = new mathType(CSS.px(1))[methodName](CSS.percent(1));
45
    assert_equals(result.constructor.name, mathType.name);
46
  }, 'Calling CSSMathValue.' + methodName + ' with a single CSSNumericValue returns correct type');
47
48
  test(() => {
49
    const result = CSS.percent(1)[methodName](CSS.px(1), CSS.px(2), CSS.px(3));
50
    assert_equals(result.constructor.name, mathType.name);
51
  }, 'Calling CSSNumericValue.' + methodName + ' with more than one number CSSNumericValues returns correct type');
52
53
  test(() => {
54
    const result = CSS.number(1)[methodName](1, CSS.number(2), 3);
55
    assert_equals(result.constructor.name, CSSUnitValue.name);
56
  }, 'Calling CSSNumericValue.' + methodName + ' can take numberish values');
57
58
  test(() => {
59
    const result = new mathType(CSS.number(1))[methodName](CSS.number(2), CSS.number(3));
60
    assert_equals(result.constructor.name, CSSUnitValue.name);
61
    assert_equals(result.unit, 'number');
62
  }, 'Calling ' + mathType.name + '.' + methodName + ' with number CSSUnitValues simplifies to a CSSUnitValue');
63
64
  test(() => {
65
    assert_throws_js(TypeError, () => new CSS.px(0)[methodName](CSS.px(1), CSS.s(2)));
66
  }, 'Calling CSSNumericValue.' + methodName + ' with incompatible types throws TypeError');
67
}
68
69
test(() => {
70
  const result = CSS.px(10).add(CSS.px(5), CSS.px(2));
71
  assert_equals(result.constructor.name, CSSUnitValue.name);
72
  assert_equals(result.value, 17);
73
  assert_equals(result.unit, 'px');
74
}, 'Calling CSSUnitValue.add with CSSUnitValues with same unit simplifies to a CSSUnitValue');
75
76
test(() => {
77
  const result = CSS.px(10).sub(CSS.px(5), CSS.px(2));
78
  assert_equals(result.constructor.name, CSSUnitValue.name);
79
  assert_equals(result.value, 3);
80
  assert_equals(result.unit, 'px');
81
}, 'Calling CSSUnitValue.sub with CSSUnitValues with same unit simplifies to a CSSUnitValue');
82
83
test(() => {
84
  const result = CSS.number(10).mul(CSS.number(5), CSS.number(2));
85
  assert_equals(result.constructor.name, CSSUnitValue.name);
86
  assert_equals(result.value, 100);
87
  assert_equals(result.unit, 'number');
88
}, 'Calling CSSUnitValue.mul with all numbers simplifies to a CSSUnitValue');
89
90
test(() => {
91
  const result = CSS.number(10).mul(CSS.px(5), CSS.number(2));
92
  assert_equals(result.constructor.name, CSSUnitValue.name);
93
  assert_equals(result.value, 100);
94
  assert_equals(result.unit, 'px');
95
}, 'Calling CSSUnitValue.mul with only one non-number simplifies to a CSSUnitValue');
96
97
test(() => {
98
  const result = CSS.number(10).mul(CSS.px(5), CSS.px(2));
99
  assert_equals(result.constructor.name, CSSMathProduct.name);
100
}, 'Calling CSSUnitValue.mul with more than one non-number does not simplify to a CSSUnitValue');
101
102
test(() => {
103
  const result = CSS.number(10).div(CSS.number(5), CSS.number(2));
104
  assert_equals(result.constructor.name, CSSUnitValue.name);
105
  assert_equals(result.value, 1);
106
  assert_equals(result.unit, 'number');
107
}, 'Calling CSSUnitValue.div with all numbers simplifies to a CSSUnitValue');
108
109
test(() => {
110
  const result = CSS.px(10).div(CSS.number(5), CSS.number(2));
111
  assert_equals(result.constructor.name, CSSUnitValue.name);
112
  assert_equals(result.value, 1);
113
  assert_equals(result.unit, 'px');
114
}, 'Calling CSSUnitValue.div on a non-number value simplifies to a CSSUnitValue');
115
116
test(() => {
117
  const result = CSS.number(10).div(CSS.px(5), CSS.number(2));
118
  assert_equals(result.constructor.name, CSSMathProduct.name);
119
}, 'Calling CSSUnitValue.div with a non-number value in the arguments does not simplify to a CSSUnitValue');
120
121
test(() => {
122
  const result = CSS.px(10).min(CSS.px(5), CSS.px(2));
123
  assert_equals(result.constructor.name, CSSUnitValue.name);
124
  assert_equals(result.value, 2);
125
  assert_equals(result.unit, 'px');
126
}, 'Calling CSSUnitValue.min with CSSUnitValues with same unit simplifies to a CSSUnitValue');
127
128
test(() => {
129
  const result = CSS.px(10).max(CSS.px(5), CSS.px(2));
130
  assert_equals(result.constructor.name, CSSUnitValue.name);
131
  assert_equals(result.value, 10);
132
  assert_equals(result.unit, 'px');
133
}, 'Calling CSSUnitValue.max with CSSUnitValues with same unit simplifies to a CSSUnitValue');
134
135
test(() => {
136
  const result = CSS.number(1).sub(CSS.number(1), new CSSMathNegate(1), new CSSMathSum(1));
137
  assert_style_value_equals(result,
138
    new CSSMathSum(CSS.number(1), CSS.number(-1), CSS.number(1), new CSSMathNegate(new CSSMathSum(1))));
139
}, 'Calling CSSNumericValue.sub negates all argument values');
140
141
test(() => {
142
  const result = CSS.number(2).div(CSS.number(2), CSS.px(2), new CSSMathInvert(2), new CSSMathSum(2));
143
  assert_style_value_equals(result,
144
    new CSSMathProduct(CSS.number(2), CSS.number(0.5), new CSSMathInvert(CSS.px(2)), CSS.number(2), new CSSMathInvert(new CSSMathSum(2))));
145
}, 'Calling CSSNumericValue.div inverts all argument values');
146
147
test(() => {
148
  assert_throws_js(RangeError, () => CSS.number(2).div(CSS.number(0)));
149
  assert_throws_js(RangeError, () => CSS.number(3).div(CSS.px(10) ,CSS.number(0)));
150
  assert_throws_js(RangeError, () => CSS.number(2).div(CSS.number(0), CSS.number(0)));
151
}, 'Can not divide with CSSUnitValue which has zero value and number type');
152
153
test(() => {
154
  assert_throws_js(TypeError, () => CSS.number(3).add(CSS.px(10) ,CSS.number(0)));
155
  assert_throws_js(TypeError, () => CSS.px(2).add(CSS.deg(10)));
156
}, 'CSSNumericValue.add should throw TypeError when the types are different.');
157
158
test(() => {
159
  assert_throws_js(TypeError, () => CSS.number(3).sub(CSS.px(10) ,CSS.number(0)));
160
  assert_throws_js(TypeError, () => CSS.px(2).sub(CSS.deg(10)));
161
}, 'CSSNumericValue.sub should throw TypeError when the types are different.');
162
163
164
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/create-a-type.tentative-expected.txt +10 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/create-a-type.tentative-expected.txt_sec1
1
2
FAIL Creating a type from "number" returns {} value.type is not a function. (In 'value.type()', 'value.type' is undefined)
3
FAIL Creating a type from "percent" returns { percent: 1 } value.type is not a function. (In 'value.type()', 'value.type' is undefined)
4
FAIL Creating a type from <length> returns { length: 1 } value.type is not a function. (In 'value.type()', 'value.type' is undefined)
5
FAIL Creating a type from <angle> returns { angle: 1 } value.type is not a function. (In 'value.type()', 'value.type' is undefined)
6
FAIL Creating a type from <time> returns { time: 1 } value.type is not a function. (In 'value.type()', 'value.type' is undefined)
7
FAIL Creating a type from <frequency> returns { frequency: 1 } value.type is not a function. (In 'value.type()', 'value.type' is undefined)
8
FAIL Creating a type from <resolution> returns { resolution: 1 } value.type is not a function. (In 'value.type()', 'value.type' is undefined)
9
FAIL Creating a type from <flex> returns { flex: 1 } value.type is not a function. (In 'value.type()', 'value.type' is undefined)
10
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/create-a-type.tentative.html +51 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/create-a-type.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Creating Type From A Unit</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#create-a-type">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
test(() => {
12
  const value = new CSSUnitValue(0, 'number');
13
  assert_numeric_type_equals(value.type(), {});
14
}, 'Creating a type from "number" returns {}');
15
16
test(() => {
17
  const value = new CSSUnitValue(0, 'percent');
18
  assert_numeric_type_equals(value.type(), { percent: 1 });
19
}, 'Creating a type from "percent" returns { percent: 1 }');
20
21
test(() => {
22
  const value = new CSSUnitValue(0, 'px');
23
  assert_numeric_type_equals(value.type(), { length: 1 });
24
}, 'Creating a type from <length> returns { length: 1 }');
25
26
test(() => {
27
  const value = new CSSUnitValue(0, 'deg');
28
  assert_numeric_type_equals(value.type(), { angle: 1 });
29
}, 'Creating a type from <angle> returns { angle: 1 }');
30
31
test(() => {
32
  const value = new CSSUnitValue(0, 's');
33
  assert_numeric_type_equals(value.type(), { time: 1 });
34
}, 'Creating a type from <time> returns { time: 1 }');
35
36
test(() => {
37
  const value = new CSSUnitValue(0, 'Hz');
38
  assert_numeric_type_equals(value.type(), { frequency: 1 });
39
}, 'Creating a type from <frequency> returns { frequency: 1 }');
40
41
test(() => {
42
  const value = new CSSUnitValue(0, 'dpi');
43
  assert_numeric_type_equals(value.type(), { resolution: 1 });
44
}, 'Creating a type from <resolution> returns { resolution: 1 }');
45
46
test(() => {
47
  const value = new CSSUnitValue(0, 'fr');
48
  assert_numeric_type_equals(value.type(), { flex: 1 });
49
}, 'Creating a type from <flex> returns { flex: 1 }');
50
51
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathInvert-type-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathInvert-type-expected.txt_sec1
1
2
FAIL Inverting a type with empty map returns the empty map Can't find variable: CSSMathInvert
3
FAIL Inverting a type negates all its exponents Can't find variable: CSSMathProduct
4
FAIL Inverting an inverted type returns the original type Can't find variable: CSSMathInvert
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathInvert-type.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathInvert-type.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSMathInvert.type</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#type-of-a-cssmathvalue">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(() => {
14
  const result = new CSSMathInvert(new CSSUnitValue(0, 'number'));
15
  assert_numeric_type_equals(result.type(), { });
16
}, 'Inverting a type with empty map returns the empty map');
17
18
test(() => {
19
  const x = new CSSMathProduct(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 's'));
20
  const result = new CSSMathInvert(x);
21
  assert_numeric_type_equals(result.type(), { length: -1, time: -1 });
22
}, 'Inverting a type negates all its exponents');
23
24
test(() => {
25
  const x = new CSSUnitValue(0, 'px');
26
  const result = new CSSMathInvert(new CSSMathInvert(x));
27
  assert_numeric_type_equals(result.type(), { length: 1 });
28
}, 'Inverting an inverted type returns the original type');
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathNegate-type-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathNegate-type-expected.txt_sec1
1
2
FAIL Negating a type with empty map returns the empty map Can't find variable: CSSMathNegate
3
FAIL Negating a type returns the same type Can't find variable: CSSMathNegate
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathNegate-type.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathNegate-type.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSMathNegate.type</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#type-of-a-cssmathvalue">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(() => {
14
  const result = new CSSMathNegate(new CSSUnitValue(0, 'number'));
15
  assert_numeric_type_equals(result.type(), { });
16
}, 'Negating a type with empty map returns the empty map');
17
18
test(() => {
19
  const result = new CSSMathNegate(new CSSUnitValue(0, 'px'));
20
  assert_numeric_type_equals(result.type(), { length: 1 });
21
}, 'Negating a type returns the same type');
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathValue.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathValue.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSMathSum
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSMathSum
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathValue.tentative.html +64 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathValue.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSMathValue subclass tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#complex-numeric">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
const gVariadicMathValueSubclasses = [
12
  { subclass: CSSMathSum, operator: 'sum' },
13
  { subclass: CSSMathProduct, operator: 'product' },
14
  { subclass: CSSMathMin, operator: 'min' },
15
  { subclass: CSSMathMax, operator: 'max' },
16
];
17
18
for (const {subclass, operator} of gVariadicMathValueSubclasses) {
19
  test(() => {
20
    assert_throws_dom("SyntaxError", () => new subclass());
21
  }, 'Constructing a ' + subclass.name + ' with no arguments throws a SyntaxError');
22
23
  test(() => {
24
    const result = new subclass(CSS.number(0));
25
    assert_equals(result.operator, operator);
26
    assert_style_value_array_equals(result.values, [CSS.number(0)]);
27
  }, subclass.name + ' can be constructed from a single number CSSUnitValue');
28
29
  test(() => {
30
    const args = [CSS.number(1), CSS.number(2), CSS.number(3), CSS.number(4), CSS.number(5)]
31
    const result = new subclass(...args);
32
    assert_equals(result.operator, operator);
33
    assert_style_value_array_equals(result.values, args);
34
  }, subclass.name + ' can be constructed from more than one number CSSUnitValue');
35
36
  test(() => {
37
    let result = new subclass(CSS.number(1), CSS.number(2));
38
    assert_throws_js(TypeError, () => result.operator = 'foo');
39
  }, subclass.name + '.operator is readonly');
40
}
41
42
const gUnaryMathValueSubclasses = [
43
  { subclass: CSSMathNegate, operator: 'negate' },
44
  { subclass: CSSMathInvert, operator: 'invert' },
45
]
46
47
for (const {subclass, operator} of gUnaryMathValueSubclasses) {
48
  test(() => {
49
    const result1 = new subclass(CSS.number(0));
50
    assert_equals(result1.operator, operator);
51
    assert_style_value_equals(result1.value, CSS.number(0));
52
53
    const result2 = new subclass(0);
54
    assert_equals(result2.operator, operator);
55
    assert_style_value_equals(result2.value, CSS.number(0));
56
  }, subclass.name + ' can be constructed from a single numberish value');
57
58
  test(() => {
59
    let result = new subclass(CSS.number(1));
60
    assert_throws_js(TypeError, () => result.operator = 'foo');
61
  }, subclass.name + '.operator is readonly');
62
}
63
64
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue-expected.txt +38 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue-expected.txt_sec1
1
2
FAIL Constructing CSSUnitValue with an unknown unit throws a TypeError assert_throws_js: function "() => new CSSUnitValue(0, 'lemon')" did not throw
3
FAIL Constructing CSSUnitValue with a empty string unit throws a TypeError assert_throws_js: function "() => new CSSUnitValue(0, '')" did not throw
4
PASS CSSUnitValue can be constructed with number
5
PASS CSSUnitValue can be constructed with percent
6
PASS CSSUnitValue can be constructed with em
7
PASS CSSUnitValue can be constructed with ex
8
PASS CSSUnitValue can be constructed with ch
9
PASS CSSUnitValue can be constructed with ic
10
PASS CSSUnitValue can be constructed with rem
11
PASS CSSUnitValue can be constructed with lh
12
PASS CSSUnitValue can be constructed with rlh
13
PASS CSSUnitValue can be constructed with vw
14
PASS CSSUnitValue can be constructed with vh
15
PASS CSSUnitValue can be constructed with vi
16
PASS CSSUnitValue can be constructed with vb
17
PASS CSSUnitValue can be constructed with vmin
18
PASS CSSUnitValue can be constructed with vmax
19
PASS CSSUnitValue can be constructed with cm
20
PASS CSSUnitValue can be constructed with mm
21
FAIL CSSUnitValue can be constructed with Q assert_equals: unit is same as given by constructor expected "q" but got "Q"
22
PASS CSSUnitValue can be constructed with in
23
PASS CSSUnitValue can be constructed with pt
24
PASS CSSUnitValue can be constructed with pc
25
PASS CSSUnitValue can be constructed with px
26
PASS CSSUnitValue can be constructed with deg
27
PASS CSSUnitValue can be constructed with grad
28
PASS CSSUnitValue can be constructed with rad
29
PASS CSSUnitValue can be constructed with turn
30
PASS CSSUnitValue can be constructed with s
31
PASS CSSUnitValue can be constructed with ms
32
FAIL CSSUnitValue can be constructed with Hz assert_equals: unit is same as given by constructor expected "hz" but got "Hz"
33
FAIL CSSUnitValue can be constructed with kHz assert_equals: unit is same as given by constructor expected "khz" but got "kHz"
34
PASS CSSUnitValue can be constructed with dpi
35
PASS CSSUnitValue can be constructed with dpcm
36
PASS CSSUnitValue can be constructed with dppx
37
PASS CSSUnitValue can be constructed with fr
38
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue-value-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue-value-expected.txt_sec1
1
2
PASS CSSUnitValue.value can be updated to a different value
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue-value.html +19 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue-value.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSUnitValue.value</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssunitvalue">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<body>
8
<div id="log"></div>
9
<script>
10
'use strict';
11
12
test(() => {
13
  const result = new CSSUnitValue(-3.14, 'px');
14
  result.value = 3.14;
15
  assert_equals(result.value, 3.14, 'value reflects new value');
16
  assert_equals(result.unit, 'px', 'unit does not change');
17
}, 'CSSUnitValue.value can be updated to a different value');
18
19
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.html +32 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSSUnitValue Constructor</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunitvalue-cssunitvalue">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log"></div>
10
<script>
11
'use strict';
12
13
test(() => {
14
  assert_throws_js(TypeError, () => new CSSUnitValue(0, 'lemon'));
15
}, 'Constructing CSSUnitValue with an unknown unit throws a TypeError');
16
17
test(() => {
18
  assert_throws_js(TypeError, () => new CSSUnitValue(0, ''));
19
}, 'Constructing CSSUnitValue with a empty string unit throws a TypeError');
20
21
for (const unit of gValidUnits) {
22
  test(() => {
23
    const result = new CSSUnitValue(-3.14, unit);
24
    assert_not_equals(result, null, 'a CSSUnitValue is created');
25
    assert_equals(result.value, -3.14,
26
                  'value is same as given by constructor');
27
    assert_equals(result.unit, unit.toLowerCase(),
28
                  'unit is same as given by constructor');
29
  }, 'CSSUnitValue can be constructed with ' + unit);
30
}
31
32
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssnumericvalue-multiply-two-types.tentative-expected.txt +9 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssnumericvalue-multiply-two-types.tentative-expected.txt_sec1
1
2
FAIL Multiplying two types with different non-null percent hints throws TypeError Can't find variable: CSSMathSum
3
FAIL Multiplying two types with same base types adds exponents Can't find variable: CSSMathProduct
4
FAIL Multiplying two types with different base types adds exponents Can't find variable: CSSMathProduct
5
FAIL Multiplying two types respects the sign of the exponents Can't find variable: CSSMathInvert
6
FAIL Multiplying a type with no exponents is a no-op Can't find variable: CSSMathProduct
7
FAIL Multiplying a type with percent hint applies the percent hint Can't find variable: CSSMathSum
8
FAIL Multiplying two types with same percent hint applies the percent hint Can't find variable: CSSMathSum
9
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssnumericvalue-multiply-two-types.tentative.html +61 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssnumericvalue-multiply-two-types.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Multiplying Two Numeric Types</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-multiply-two-types">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(() => {
14
  const a = new CSSMathSum(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 'percent'));
15
  const b = new CSSMathSum(new CSSUnitValue(0, 's'), new CSSUnitValue(0, 'percent'));
16
  assert_throws_js(TypeError, () => new CSSMathProduct(a, b));
17
}, 'Multiplying two types with different non-null percent hints throws TypeError');
18
19
test(() => {
20
  const a = new CSSUnitValue(0, 'px');
21
  const b = new CSSUnitValue(0, 'px');
22
  const result = new CSSMathProduct(a, b);
23
  assert_numeric_type_equals(result.type(), { length: 2 });
24
}, 'Multiplying two types with same base types adds exponents');
25
26
test(() => {
27
  const a = new CSSUnitValue(0, 'px');
28
  const b = new CSSUnitValue(0, 's');
29
  const result = new CSSMathProduct(a, b);
30
  assert_numeric_type_equals(result.type(), { length: 1, time: 1 });
31
}, 'Multiplying two types with different base types adds exponents');
32
33
test(() => {
34
  const a = new CSSUnitValue(0, 'px');
35
  const b = new CSSMathInvert(new CSSUnitValue(0, 's'));
36
  const result = new CSSMathProduct(a, b);
37
  assert_numeric_type_equals(result.type(), { length: 1, time: -1 });
38
}, 'Multiplying two types respects the sign of the exponents');
39
40
test(() => {
41
  const a = new CSSUnitValue(0, 'px');
42
  const b = new CSSUnitValue(0, 'number');
43
  const result = new CSSMathProduct(a, b);
44
  assert_numeric_type_equals(result.type(), { length: 1 });
45
}, 'Multiplying a type with no exponents is a no-op');
46
47
test(() => {
48
  const a = new CSSMathSum(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 'percent'));
49
  const b = new CSSUnitValue(0, 'px');
50
  const result = new CSSMathProduct(a, b);
51
  assert_numeric_type_equals(result.type(), { length: 2, percentHint: 'length' });
52
}, 'Multiplying a type with percent hint applies the percent hint');
53
54
test(() => {
55
  const a = new CSSMathSum(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 'percent'));
56
  const b = new CSSMathSum(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 'percent'));
57
  const result = new CSSMathProduct(a, b);
58
  assert_numeric_type_equals(result.type(), { length: 2, percentHint: 'length' });
59
}, 'Multiplying two types with same percent hint applies the percent hint');
60
61
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/equals.tentative-expected.txt +11 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/equals.tentative-expected.txt_sec1
1
2
FAIL Two CSSUnitValues with same value and unit are equal CSS.px is not a function. (In 'CSS.px(1)', 'CSS.px' is undefined)
3
FAIL Two CSSUnitValues with different values are not equal CSS.px is not a function. (In 'CSS.px(0)', 'CSS.px' is undefined)
4
FAIL Two CSSUnitValues with different units are not equal CSS.px is not a function. (In 'CSS.px(1)', 'CSS.px' is undefined)
5
FAIL Two CSSMathValues with different types are not equal Can't find variable: CSSMathSum
6
FAIL Two CSSMathValues with different number of values are not equal Can't find variable: CSSMathSum
7
FAIL Two CSSMathValues with different values are not equal Can't find variable: CSSMathSum
8
FAIL Two CSSMathValues with same structure are equal Can't find variable: CSSMathSum
9
FAIL Multiple CSSMathValues with same structure are equal Can't find variable: CSSMathSum
10
FAIL Multiple CSSMathValues with one different are not equal Can't find variable: CSSMathSum
11
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/equals.tentative.html +62 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/equals.tentative.html_sec1
1
<meta charset="utf-8">
2
<title>CSSNumericValue.equals tests</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-equals">
4
<script src="/resources/testharness.js"></script>
5
<script src="/resources/testharnessreport.js"></script>
6
<script src="../../resources/testhelper.js"></script>
7
<script>
8
'use strict';
9
10
test(() => {
11
  assert_true(CSS.px(1).equals(CSS.px(1)));
12
}, 'Two CSSUnitValues with same value and unit are equal');
13
14
test(() => {
15
  assert_false(CSS.px(0).equals(CSS.px(1)));
16
}, 'Two CSSUnitValues with different values are not equal');
17
18
test(() => {
19
  assert_false(CSS.px(1).equals(CSS.number(1)));
20
}, 'Two CSSUnitValues with different units are not equal');
21
22
test(() => {
23
  const a = new CSSMathSum(0, new CSSMathNegate(0));
24
  const b = new CSSMathProduct(0, new CSSMathNegate(0));
25
  assert_false(a.equals(b));
26
}, 'Two CSSMathValues with different types are not equal');
27
28
test(() => {
29
  const a = new CSSMathSum(0, new CSSMathNegate(0));
30
  const b = new CSSMathSum(0);
31
  assert_false(a.equals(b));
32
}, 'Two CSSMathValues with different number of values are not equal');
33
34
test(() => {
35
  const a = new CSSMathSum(0, new CSSMathNegate(0));
36
  const b = new CSSMathSum(0, new CSSMathNegate(1));
37
  assert_false(a.equals(b));
38
}, 'Two CSSMathValues with different values are not equal');
39
40
test(() => {
41
  const a = new CSSMathSum(0, new CSSMathNegate(0));
42
  const b = new CSSMathSum(0, new CSSMathNegate(0));
43
  assert_true(a.equals(b));
44
}, 'Two CSSMathValues with same structure are equal');
45
46
test(() => {
47
  const a = new CSSMathSum(0, new CSSMathNegate(0));
48
  const b = new CSSMathSum(0, new CSSMathNegate(0));
49
  const c = new CSSMathSum(0, new CSSMathNegate(0));
50
  const d = new CSSMathSum(0, new CSSMathNegate(0));
51
  assert_true(a.equals(b, c, d));
52
}, 'Multiple CSSMathValues with same structure are equal');
53
54
test(() => {
55
  const a = new CSSMathSum(0, new CSSMathNegate(0));
56
  const b = new CSSMathSum(0, new CSSMathNegate(0));
57
  const c = new CSSMathSum(0, new CSSMathNegate(1));
58
  const d = new CSSMathSum(0, new CSSMathNegate(0));
59
  assert_false(a.equals(b, c, d));
60
}, 'Multiple CSSMathValues with one different are not equal');
61
62
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/numeric-factory.tentative-expected.txt +36 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/numeric-factory.tentative-expected.txt_sec1
1
2
FAIL CSS.number returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
3
FAIL CSS.percent returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
4
FAIL CSS.em returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
5
FAIL CSS.ex returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
6
FAIL CSS.ch returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
7
FAIL CSS.ic returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
8
FAIL CSS.rem returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
9
FAIL CSS.lh returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
10
FAIL CSS.rlh returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
11
FAIL CSS.vw returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
12
FAIL CSS.vh returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
13
FAIL CSS.vi returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
14
FAIL CSS.vb returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
15
FAIL CSS.vmin returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
16
FAIL CSS.vmax returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
17
FAIL CSS.cm returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
18
FAIL CSS.mm returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
19
FAIL CSS.Q returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
20
FAIL CSS.in returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
21
FAIL CSS.pt returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
22
FAIL CSS.pc returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
23
FAIL CSS.px returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
24
FAIL CSS.deg returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
25
FAIL CSS.grad returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
26
FAIL CSS.rad returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
27
FAIL CSS.turn returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
28
FAIL CSS.s returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
29
FAIL CSS.ms returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
30
FAIL CSS.Hz returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
31
FAIL CSS.kHz returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
32
FAIL CSS.dpi returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
33
FAIL CSS.dpcm returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
34
FAIL CSS.dppx returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
35
FAIL CSS.fr returns a CSSUnitValue with correct value and unit CSS[unit] is not a function. (In 'CSS[unit](12.3)', 'CSS[unit]' is undefined)
36
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/numeric-factory.tentative.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/numeric-factory.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>CSS numeric factory function tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#numeric-factory">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<script>
9
'use strict';
10
11
for (const unit of gValidUnits) {
12
  test(() => {
13
    const result = CSS[unit](12.3);
14
    assert_not_equals(result, null);
15
    assert_equals(result.constructor.name, CSSUnitValue.name);
16
    assert_equals(result.value, 12.3);
17
    assert_equals(result.unit, unit.toLowerCase());
18
  }, 'CSS.' + unit + ' returns a CSSUnitValue with correct value and unit');
19
}
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/parse.tentative-expected.txt +10 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/parse.tentative-expected.txt_sec1
1
2
FAIL Parsing an invalid string throws SyntaxError assert_throws_dom: function "() => CSSNumericValue.parse('%#(')" threw object "TypeError: CSSNumericValue.parse('%# is not a function. (In 'CSSNumericValue.parse('%#(')', 'CSSNumericValue.parse('%#' is undefined)" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
3
FAIL Parsing a string with a non numeric token throws SyntaxError assert_throws_dom: function "() => CSSNumericValue.parse('auto')" threw object "TypeError: CSSNumericValue.parse is not a function. (In 'CSSNumericValue.parse('auto')', 'CSSNumericValue.parse' is undefined)" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
4
FAIL Parsing a string with left over numeric tokens throws SyntaxError assert_throws_dom: function "() => CSSNumericValue.parse('1 2')" threw object "TypeError: CSSNumericValue.parse is not a function. (In 'CSSNumericValue.parse('1 2')', 'CSSNumericValue.parse' is undefined)" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
5
FAIL Parsing a calc with incompatible units throws a SyntaxError assert_throws_dom: function "() => CSSNumericValue.parse('calc(calc(1px * 2s) + 3%)')" threw object "TypeError: CSSNumericValue.parse is not a function. (In 'CSSNumericValue.parse('calc(calc(1px * 2s) + 3%)')', 'CSSNumericValue.parse' is undefined)" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
6
FAIL Parsing ignores surrounding spaces CSSNumericValue.parse is not a function. (In 'CSSNumericValue.parse(' 1px  ')', 'CSSNumericValue.parse' is undefined)
7
FAIL Parsing min() is successful Can't find variable: CSSMathMin
8
FAIL Parsing max() is successful Can't find variable: CSSMathMax
9
FAIL Parsing clamp() is successful Can't find variable: CSSMathMax
10
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/parse.tentative.html +45 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/parse.tentative.html_sec1
1
<meta charset="utf-8">
2
<title>CSSNumericValue.parse tests</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-parse">
4
<script src="/resources/testharness.js"></script>
5
<script src="/resources/testharnessreport.js"></script>
6
<script src="../../resources/testhelper.js"></script>
7
<script>
8
'use strict';
9
10
test(() => {
11
  assert_throws_dom("SyntaxError", () => CSSNumericValue.parse('%#('));
12
}, 'Parsing an invalid string throws SyntaxError');
13
14
test(() => {
15
  assert_throws_dom("SyntaxError", () => CSSNumericValue.parse('auto'));
16
}, 'Parsing a string with a non numeric token throws SyntaxError');
17
18
test(() => {
19
  assert_throws_dom("SyntaxError", () => CSSNumericValue.parse('1 2'));
20
}, 'Parsing a string with left over numeric tokens throws SyntaxError');
21
22
test(() => {
23
  assert_throws_dom("SyntaxError", () => CSSNumericValue.parse('calc(calc(1px * 2s) + 3%)'));
24
}, 'Parsing a calc with incompatible units throws a SyntaxError');
25
26
test(() => {
27
  assert_style_value_equals(new CSSUnitValue(1, 'px'), CSSNumericValue.parse(' 1px  '));
28
}, 'Parsing ignores surrounding spaces');
29
30
test(() => {
31
  const expected = new CSSMathMin(CSS.px(10), CSS.percent(10));
32
  assert_style_value_equals(expected, CSSNumericValue.parse('min(10px, 10%)'));
33
}, 'Parsing min() is successful');
34
35
test(() => {
36
  const expected = new CSSMathMax(CSS.px(10), CSS.percent(10));
37
  assert_style_value_equals(expected, CSSNumericValue.parse('max(10px, 10%)'));
38
}, 'Parsing max() is successful');
39
40
test(() => {
41
  const expected = new CSSMathMax(CSS.px(10), new CSSMathMin(CSS.percent(10), CSS.px(20)));
42
  assert_style_value_equals(expected, CSSNumericValue.parse('clamp(10px, 10%, 20px)'));
43
}, 'Parsing clamp() is successful');
44
45
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/resources/testhelper.js +9 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/resources/testhelper.js_sec1
1
function assert_numeric_type_equals(type, expectedType) {
2
  const baseTypes = [
3
    'length', 'angle', 'time', 'frequency', 'resolution', 'flex', 'percent'
4
  ];
5
  for (const baseType of baseTypes) {
6
    assert_equals(type[baseType], expectedType[baseType], baseType);
7
  }
8
  assert_equals(type.percentHint, expectedType.percentHint);
9
}
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/to.tentative-expected.txt +25 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/to.tentative-expected.txt_sec1
1
2
FAIL Converting a CSSUnitValue to an invalid unit throws SyntaxError assert_throws_dom: function "() => CSS.px(1).to('lemon')" threw object "TypeError: CSS.px is not a function. (In 'CSS.px(1)', 'CSS.px' is undefined)" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
3
FAIL Converting a CSSNumericValue with invalid sum value throws TypeError assert_throws_js: function "() => new CSSMathMax(1, CSS.px(1)).to('number')" threw object "ReferenceError: Can't find variable: CSSMathMax" ("ReferenceError") expected instance of function "function TypeError() {
4
    [native code]
5
}" ("TypeError")
6
FAIL Converting a CSSNumericValue with sum value containing more than one value throws TypeError assert_throws_js: function "() => new CSSMathProduct(CSS.px(1), CSS.s(1)).to('number')" threw object "ReferenceError: Can't find variable: CSSMathProduct" ("ReferenceError") expected instance of function "function TypeError() {
7
    [native code]
8
}" ("TypeError")
9
PASS Converting a CSSUnitValue to an incompatible unit throws TypeError
10
PASS Converting a CSSUnitValue to its own unit returns itself
11
FAIL Converting a CSSUnitValue to its canonical unit returns correct value CSS.cm is not a function. (In 'CSS.cm(1)', 'CSS.cm' is undefined)
12
FAIL Converting a CSSMathSum to a single unit adds the values Can't find variable: CSSMathSum
13
FAIL Converting a CSSMathProduct to a single unit multiplies the values Can't find variable: CSSMathProduct
14
FAIL Converting a CSSMathMin to a single unit finds the min value Can't find variable: CSSMathMin
15
FAIL Converting a CSSMathMin to a single unit with different units throws a TypeError assert_throws_js: function "() => new CSSMathMin(CSS.px(2), CSS.s(3)).to('px')" threw object "ReferenceError: Can't find variable: CSSMathMin" ("ReferenceError") expected instance of function "function TypeError() {
16
    [native code]
17
}" ("TypeError")
18
FAIL Converting a CSSMathMax to a single unit finds the max value Can't find variable: CSSMathMax
19
FAIL Converting a CSSMathMax to a single unit with different units throws a TypeError assert_throws_js: function "() => new CSSMathMax(CSS.px(2), CSS.s(3)).to('px')" threw object "ReferenceError: Can't find variable: CSSMathMax" ("ReferenceError") expected instance of function "function TypeError() {
20
    [native code]
21
}" ("TypeError")
22
FAIL Converting a CSSMathNegate to a single unit negates its value Can't find variable: CSSMathNegate
23
FAIL Converting a CSSMathInvert to a single unit inverts its value and units Can't find variable: CSSMathProduct
24
FAIL Converting a complex expression to a single unit Can't find variable: CSSMathSum
25
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/to.tentative.html +101 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/to.tentative.html_sec1
1
<meta charset="utf-8">
2
<title>CSSNumericValue.to tests</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-to">
4
<script src="/resources/testharness.js"></script>
5
<script src="/resources/testharnessreport.js"></script>
6
<script src="../../resources/testhelper.js"></script>
7
<script>
8
'use strict';
9
10
test(() => {
11
  assert_throws_dom("SyntaxError", () => CSS.px(1).to('lemon'));
12
}, 'Converting a CSSUnitValue to an invalid unit throws SyntaxError');
13
14
test(() => {
15
  assert_throws_js(TypeError, () => new CSSMathMax(1, CSS.px(1)).to('number'));
16
}, 'Converting a CSSNumericValue with invalid sum value throws TypeError');
17
18
test(() => {
19
  assert_throws_js(TypeError, () => new CSSMathProduct(CSS.px(1), CSS.s(1)).to('number'));
20
}, 'Converting a CSSNumericValue with sum value containing more than one value throws TypeError');
21
22
test(() => {
23
  assert_throws_js(TypeError, () => CSS.px(1).to('number'));
24
}, 'Converting a CSSUnitValue to an incompatible unit throws TypeError');
25
26
test(() => {
27
  for (const unit of gValidUnits) {
28
    // FIXME(778495): Remove this check onec all the units are supported.
29
    if (CSS[unit])
30
      assert_style_value_equals(CSS[unit](1).to(unit), CSS[unit](1));
31
  }
32
}, 'Converting a CSSUnitValue to its own unit returns itself');
33
34
// TODO(776173): cssUnitValue_toMethod.html has more comprehensive tests of converting
35
// within the same base type. Merge those tests into here.
36
test(() => {
37
  assert_style_value_equals(CSS.cm(1).to('px'), CSS.px(37.7952755));
38
}, 'Converting a CSSUnitValue to its canonical unit returns correct value');
39
40
test(() => {
41
  assert_style_value_equals(new CSSMathSum(CSS.px(1), CSS.px(1)).to('px'), CSS.px(2));
42
  assert_style_value_equals(new CSSMathSum(CSS.px(1), CSS.px(1), CSS.px(1)).to('px'), CSS.px(3));
43
}, 'Converting a CSSMathSum to a single unit adds the values');
44
45
test(() => {
46
  assert_style_value_equals(new CSSMathProduct(CSS.px(2), 3).to('px'), CSS.px(6));
47
  assert_style_value_equals(new CSSMathProduct(-1, CSS.px(2), 3).to('px'), CSS.px(-6));
48
}, 'Converting a CSSMathProduct to a single unit multiplies the values');
49
50
test(() => {
51
  assert_style_value_equals(new CSSMathMin(CSS.cm(1), CSS.mm(1)).to('mm'), CSS.mm(1));
52
}, 'Converting a CSSMathMin to a single unit finds the min value');
53
54
test(() => {
55
  assert_throws_js(TypeError, () => new CSSMathMin(CSS.px(2), CSS.s(3)).to('px'));
56
  assert_throws_js(TypeError, () => new CSSMathMin(CSS.px(2), 3).to('px'));
57
}, 'Converting a CSSMathMin to a single unit with different units throws a TypeError');
58
59
test(() => {
60
  assert_style_value_equals(new CSSMathMax(CSS.cm(1), CSS.mm(1)).to('mm'), CSS.mm(10));
61
}, 'Converting a CSSMathMax to a single unit finds the max value');
62
63
test(() => {
64
  assert_throws_js(TypeError, () => new CSSMathMax(CSS.px(2), CSS.s(3)).to('px'));
65
  assert_throws_js(TypeError, () => new CSSMathMax(CSS.px(2), 3).to('px'));
66
}, 'Converting a CSSMathMax to a single unit with different units throws a TypeError');
67
68
test(() => {
69
  assert_style_value_equals(new CSSMathNegate(CSS.px(1)).to('px'), CSS.px(-1));
70
}, 'Converting a CSSMathNegate to a single unit negates its value');
71
72
test(() => {
73
  const expr = new CSSMathProduct(CSS.px(4), new CSSMathInvert(CSS.px(2)));
74
  assert_style_value_equals(expr.to('number'), CSS.number(2));
75
}, 'Converting a CSSMathInvert to a single unit inverts its value and units');
76
77
test(() => {
78
  // max((1s * 1s *  1px * 1px) / (1s * 1px), 2000ms * 2em) / 1em - min(500ms, 1s)
79
  const expr = new CSSMathSum(
80
    new CSSMathProduct(
81
      new CSSMathMax(
82
        new CSSMathProduct(
83
          new CSSMathProduct(CSS.s(1), CSS.s(1), CSS.px(1), CSS.px(1)),
84
          new CSSMathInvert(new CSSMathProduct(CSS.s(1), CSS.px(1))),
85
        ),
86
        new CSSMathProduct(CSS.ms(2000), CSS.cm(2))
87
      ),
88
      new CSSMathInvert(CSS.cm(1))
89
    ),
90
    new CSSMathNegate(
91
      new CSSMathMin(
92
        CSS.ms(500),
93
        CSS.s(1)
94
      )
95
    )
96
  );
97
98
  assert_style_value_equals(expr.to('ms'), CSS.ms(3500));
99
}, 'Converting a complex expression to a single unit');
100
101
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/toSum.tentative-expected.txt +19 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/toSum.tentative-expected.txt_sec1
1
2
FAIL Converting a CSSNumericValue to a sum with invalid units throws SyntaxError assert_throws_dom: function "() => CSS.px(1).toSum('px', 'lemon')" threw object "TypeError: CSS.px is not a function. (In 'CSS.px(1)', 'CSS.px' is undefined)" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
3
FAIL Converting a CSSNumericValue with an invalid sum value to a sum throws TypeError assert_throws_js: function "() => new CSSMathMax(1, CSS.px(1)).toSum('number')" threw object "ReferenceError: Can't find variable: CSSMathMax" ("ReferenceError") expected instance of function "function TypeError() {
4
    [native code]
5
}" ("TypeError")
6
FAIL Converting a CSSNumericValue with compound units to a sum throws TypeError assert_throws_js: function "() => new CSSMathProduct(CSS.px(1), CSS.px(1)).to('px')" threw object "ReferenceError: Can't find variable: CSSMathProduct" ("ReferenceError") expected instance of function "function TypeError() {
7
    [native code]
8
}" ("TypeError")
9
PASS Converting a CSSNumericValue to a sum with an incompatible unit throws TypeError
10
PASS Converting a CSSNumericValue to a sum with units that are not addable throws TypeError
11
FAIL Converting a CSSNumericValue with leftover units to a sum throws TypeError assert_throws_js: function "() => new CSSMathSum(CSS.px(1), CSS.em(1)).toSum('px')" threw object "ReferenceError: Can't find variable: CSSMathSum" ("ReferenceError") expected instance of function "function TypeError() {
12
    [native code]
13
}" ("TypeError")
14
FAIL Converting CSSNumericValue to a sum with its own unit returns itself CSS.number is not a function. (In 'CSS.number(1)', 'CSS.number' is undefined)
15
FAIL Converting CSSNumericValue to a sum with no arguments returns all the units in sorted order Can't find variable: CSSMathSum
16
FAIL Converting CSSNumericValue to a sum with a relative unit converts correctly CSS.cm is not a function. (In 'CSS.cm(2)', 'CSS.cm' is undefined)
17
FAIL Converting CSSNumericValue to a sum containing extra units returns zero for those units CSS.px is not a function. (In 'CSS.px(1)', 'CSS.px' is undefined)
18
FAIL CSSNumericValue.toSum converts greedily Can't find variable: CSSMathSum
19
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/toSum.tentative.html +71 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/toSum.tentative.html_sec1
1
<meta charset="utf-8">
2
<title>CSSNumericValue.toSum tests</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-tosum">
4
<script src="/resources/testharness.js"></script>
5
<script src="/resources/testharnessreport.js"></script>
6
<script src="../../resources/testhelper.js"></script>
7
<script>
8
'use strict';
9
10
test(() => {
11
  assert_throws_dom("SyntaxError", () => CSS.px(1).toSum('px', 'lemon'));
12
}, 'Converting a CSSNumericValue to a sum with invalid units throws SyntaxError');
13
14
test(() => {
15
  assert_throws_js(TypeError, () => new CSSMathMax(1, CSS.px(1)).toSum('number'));
16
}, 'Converting a CSSNumericValue with an invalid sum value to a sum throws TypeError');
17
18
test(() => {
19
  assert_throws_js(TypeError, () => new CSSMathProduct(CSS.px(1), CSS.px(1)).to('px'));
20
}, 'Converting a CSSNumericValue with compound units to a sum throws TypeError');
21
22
test(() => {
23
  assert_throws_js(TypeError, () => CSS.px(1).toSum('number'));
24
}, 'Converting a CSSNumericValue to a sum with an incompatible unit throws TypeError');
25
26
test(() => {
27
  assert_throws_js(TypeError, () => CSS.px(1).toSum('px', 's'));
28
}, 'Converting a CSSNumericValue to a sum with units that are not addable throws TypeError');
29
30
test(() => {
31
  assert_throws_js(TypeError, () => new CSSMathSum(CSS.px(1), CSS.em(1)).toSum('px'));
32
}, 'Converting a CSSNumericValue with leftover units to a sum throws TypeError');
33
34
test(() => {
35
  assert_style_value_equals(CSS.number(1).toSum('number'), new CSSMathSum(CSS.number(1)));
36
  assert_style_value_equals(CSS.px(1).toSum('px'), new CSSMathSum(CSS.px(1)));
37
}, 'Converting CSSNumericValue to a sum with its own unit returns itself');
38
39
test(() => {
40
  assert_style_value_equals(
41
    new CSSMathSum(CSS.px(1), CSS.em(1), CSS.vw(1), CSS.rem(1)).toSum(),
42
    new CSSMathSum(CSS.em(1), CSS.px(1), CSS.rem(1), CSS.vw(1))
43
  );
44
}, 'Converting CSSNumericValue to a sum with no arguments returns all the units in sorted order');
45
46
// TODO(776173): cssUnitValue_toMethod.html has more comprehensive tests of converting
47
// within the same base type. Merge those tests into here.
48
test(() => {
49
  assert_style_value_equals(CSS.cm(2).toSum('mm'), new CSSMathSum(CSS.mm(20)));
50
}, 'Converting CSSNumericValue to a sum with a relative unit converts correctly');
51
52
test(() => {
53
  assert_style_value_equals(
54
    CSS.px(1).toSum('em', 'px', 'vw'),
55
    new CSSMathSum(CSS.em(0), CSS.px(1), CSS.vw(0))
56
  );
57
}, 'Converting CSSNumericValue to a sum containing extra units returns zero for those units');
58
59
test(() => {
60
  assert_style_value_equals(
61
    new CSSMathSum(CSS.cm(1), CSS.mm(10)).toSum('cm', 'mm'),
62
    new CSSMathSum(CSS.cm(2), CSS.mm(0))
63
  );
64
65
  assert_style_value_equals(
66
    new CSSMathSum(CSS.cm(1), CSS.mm(10)).toSum('mm', 'cm'),
67
    new CSSMathSum(CSS.mm(20), CSS.cm(0))
68
  );
69
}, 'CSSNumericValue.toSum converts greedily');
70
71
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: target.computedStyleMap is not a function. (In 'target.computedStyleMap()', 'target.computedStyleMap' is undefined)
2
3
Harness Error (FAIL), message = TypeError: target.computedStyleMap is not a function. (In 'target.computedStyleMap()', 'target.computedStyleMap' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative.html +68 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Computed StylePropertyMap tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#computed-stylepropertymapreadonly-objects">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<style>#target { height: 10px; --foo: auto; }</style>
9
<div style="width: 50px">
10
  <div id="target" style="top: 5px; --bar: 5; width: 50%;"></div>
11
</div>
12
<script>
13
'use strict';
14
15
const target = document.getElementById('target');
16
const styleMap = target.computedStyleMap();
17
18
test(() => {
19
  const computedStyle = [...getComputedStyle(target)].sort();
20
  const properties = [...styleMap.keys()];
21
22
  assert_equals(properties.length, computedStyle.length);
23
  for (let i = 0; i < computedStyle.length; i++) {
24
    assert_true(properties.includes(computedStyle[i]));
25
    assert_not_equals(styleMap.get(computedStyle[i]), null);
26
    assert_not_equals(styleMap.getAll(computedStyle[i]).length, 0);
27
    assert_true(styleMap.has(computedStyle[i]));
28
  }
29
}, 'Computed StylePropertyMap contains every CSS property');
30
31
test(() => {
32
  const result = styleMap.get('height');
33
  assert_style_value_equals(result, CSS.px(10));
34
}, 'Computed StylePropertyMap contains CSS property declarations in style rules');
35
36
test(() => {
37
  const result = styleMap.get('--foo');
38
  assert_style_value_equals(result, new CSSUnparsedValue([' auto']));
39
}, 'Computed StylePropertyMap contains custom property declarations in style rules');
40
41
test(() => {
42
  const result = styleMap.get('top');
43
  assert_style_value_equals(result, CSS.px(5));
44
}, 'Computed StylePropertyMap contains CSS property declarations in inline styles');
45
46
test(() => {
47
  const result = styleMap.get('--bar');
48
  assert_style_value_equals(result, new CSSUnparsedValue([' 5']));
49
}, 'Computed StylePropertyMap contains custom property declarations in inline rules');
50
51
test(() => {
52
  const computedStyle = getComputedStyle(target);
53
  assert_equals(computedStyle.width, '25px');
54
55
  const result = styleMap.get('width');
56
  assert_style_value_equals(result, CSS.percent(50));
57
}, 'Computed StylePropertyMap contains computed values and not resolved values');
58
59
test(t => {
60
  let target = createDivWithStyle(t, 'width: 10px');
61
  const styleMap = target.attributeStyleMap;
62
  assert_style_value_equals(styleMap.get('width'), CSS.px(10));
63
64
  target.style.width = '20px';
65
  assert_style_value_equals(styleMap.get('width'), CSS.px(20));
66
}, 'Computed StylePropertyMap is live');
67
68
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-auto-min-size-expected.txt +8 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-auto-min-size-expected.txt_sec1
1
2
FAIL An inflow flex-item computed StylePropertyMap.get reports the auto minimum size correctly. document.getElementById('flex-inflow').computedStyleMap is not a function. (In 'document.getElementById('flex-inflow').computedStyleMap()', 'document.getElementById('flex-inflow').computedStyleMap' is undefined)
3
FAIL An absolute flex-child computed StylePropertyMap.get reports the auto minimum size correctly. document.getElementById('flex-absolute').computedStyleMap is not a function. (In 'document.getElementById('flex-absolute').computedStyleMap()', 'document.getElementById('flex-absolute').computedStyleMap' is undefined)
4
FAIL An inflow grid-item computed StylePropertyMap.get reports the auto minimum size correctly. document.getElementById('grid-inflow').computedStyleMap is not a function. (In 'document.getElementById('grid-inflow').computedStyleMap()', 'document.getElementById('grid-inflow').computedStyleMap' is undefined)
5
FAIL An absolute grid-child computed StylePropertyMap.get reports the auto minimum size correctly. document.getElementById('grid-absolute').computedStyleMap is not a function. (In 'document.getElementById('grid-absolute').computedStyleMap()', 'document.getElementById('grid-absolute').computedStyleMap' is undefined)
6
FAIL An inflow block computed StylePropertyMap.get reports the auto minimum size correctly. document.getElementById('block-inflow').computedStyleMap is not a function. (In 'document.getElementById('block-inflow').computedStyleMap()', 'document.getElementById('block-inflow').computedStyleMap' is undefined)
7
FAIL An absolute block computed StylePropertyMap.get reports the auto minimum size correctly. document.getElementById('block-absolute').computedStyleMap is not a function. (In 'document.getElementById('block-absolute').computedStyleMap()', 'document.getElementById('block-absolute').computedStyleMap' is undefined)
8
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-auto-min-size.html +57 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-auto-min-size.html_sec1
1
<!doctype html>
2
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
3
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#valdef-width-auto">
4
<meta name="assert" content="Tests computed StylePropertyMap.get of auto minimum sizes." />
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<div style="display: flex;">
9
  <div id="flex-inflow"></div>
10
  <div id="flex-absolute" style="position: absolute;"></div>
11
</div>
12
<div style="display: grid;">
13
  <div id="grid-inflow"></div>
14
  <div id="grid-absolute" style="position: absolute;"></div>
15
</div>
16
<div id="block-inflow"></div>
17
<div id="block-absolute" style="position: absolute;"></div>
18
<script>
19
'use strict';
20
21
test(t => {
22
  const targetMap = document.getElementById('flex-inflow').computedStyleMap();
23
  assert_style_value_equals(targetMap.get('min-width'), new CSSKeywordValue('auto'));
24
  assert_style_value_equals(targetMap.get('min-height'), new CSSKeywordValue('auto'));
25
}, 'An inflow flex-item computed StylePropertyMap.get reports the auto minimum size correctly.');
26
27
test(t => {
28
  const targetMap = document.getElementById('flex-absolute').computedStyleMap();
29
  assert_style_value_equals(targetMap.get('min-width'), new CSSKeywordValue('auto'));
30
  assert_style_value_equals(targetMap.get('min-height'), new CSSKeywordValue('auto'));
31
}, 'An absolute flex-child computed StylePropertyMap.get reports the auto minimum size correctly.');
32
33
test(t => {
34
  const targetMap = document.getElementById('grid-inflow').computedStyleMap();
35
  assert_style_value_equals(targetMap.get('min-width'), new CSSKeywordValue('auto'));
36
  assert_style_value_equals(targetMap.get('min-height'), new CSSKeywordValue('auto'));
37
}, 'An inflow grid-item computed StylePropertyMap.get reports the auto minimum size correctly.');
38
39
test(t => {
40
  const targetMap = document.getElementById('grid-absolute').computedStyleMap();
41
  assert_style_value_equals(targetMap.get('min-width'), new CSSKeywordValue('auto'));
42
  assert_style_value_equals(targetMap.get('min-height'), new CSSKeywordValue('auto'));
43
}, 'An absolute grid-child computed StylePropertyMap.get reports the auto minimum size correctly.');
44
45
test(t => {
46
  const targetMap = document.getElementById('block-inflow').computedStyleMap();
47
  assert_style_value_equals(targetMap.get('min-width'), new CSSKeywordValue('auto'));
48
  assert_style_value_equals(targetMap.get('min-height'), new CSSKeywordValue('auto'));
49
}, 'An inflow block computed StylePropertyMap.get reports the auto minimum size correctly.');
50
51
test(t => {
52
  const targetMap = document.getElementById('block-absolute').computedStyleMap();
53
  assert_style_value_equals(targetMap.get('min-width'), new CSSKeywordValue('auto'));
54
  assert_style_value_equals(targetMap.get('min-height'), new CSSKeywordValue('auto'));
55
}, 'An absolute block computed StylePropertyMap.get reports the auto minimum size correctly.');
56
57
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-expected.txt +8 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-expected.txt_sec1
1
2
FAIL Getting a custom property not in the computed style returns null elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
3
FAIL Getting a valid property from computed style returns the correct entry elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
4
FAIL Getting a valid custom property from computed style returns the correct entry elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
5
FAIL Getting a list-valued property from computed style returns only the first value elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
6
FAIL Computed StylePropertyMap.get is not case-sensitive elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
7
FAIL Computed StylePropertyMap.get reflects updates in inline style elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
8
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-invalid-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-invalid-expected.txt_sec1
1
2
FAIL Calling StylePropertyMap.get with an unsupported property throws a TypeError elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-invalid.html +18 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-invalid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Computed StylePropertyMap.get Error Handling</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  const styleMap = createComputedStyleMap(t);
15
  assert_throws_js(TypeError, () => styleMap.get('lemon'));
16
}, 'Calling StylePropertyMap.get with an unsupported property throws a TypeError');
17
18
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-position-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-position-expected.txt_sec1
1
2
FAIL Computed position sticky even if it does not apply elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
3
FAIL Computed position absolute even if it does not apply elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-position.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-position.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Computed StylePropertyMap.get("position")</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
5
<meta name="assert" content="Test computed StylePropertyMap.get" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<body>
10
<div id="log">
11
<script>
12
'use strict';
13
14
test(t => {
15
  const styleMap = createComputedStyleMap(t, 'display: table-column; position: sticky');
16
  assert_style_value_equals(styleMap.get('position'), new CSSKeywordValue('sticky'));
17
}, 'Computed position sticky even if it does not apply');
18
19
test(t => {
20
  const styleMap = createComputedStyleMap(t, 'display: table-column; position: absolute');
21
  assert_style_value_equals(styleMap.get('position'), new CSSKeywordValue('absolute'));
22
}, 'Computed position absolute even if it does not apply');
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-shorthand-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-shorthand-expected.txt_sec1
1
2
FAIL Getting an shorthand property set explicitly in computed style returns a base CSSStyleValue elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
3
FAIL Getting a shorthand property from initial computed style returns a base CSSStyleValue elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-shorthand.html +31 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get-shorthand.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Computed StylePropertyMap.get with shorthands</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  const styleMap = createComputedStyleMap(t, 'margin: 1px 2px 3px 4px');
15
  const result = styleMap.get('margin');
16
  assert_not_equals(result, null, 'Shorthand value must not be null');
17
  assert_class_string(result, 'CSSStyleValue',
18
    'Shorthand value must be a base CSSStyleValue');
19
}, 'Getting an shorthand property set explicitly in computed style returns ' +
20
   'a base CSSStyleValue');
21
22
test(t => {
23
  const styleMap = createComputedStyleMap(t);
24
  const result = styleMap.get('margin');
25
  assert_not_equals(result, null, 'Shorthand value must not be null');
26
  assert_class_string(result, 'CSSStyleValue',
27
    'Shorthand value must be a base CSSStyleValue');
28
}, 'Getting a shorthand property from initial computed style returns ' +
29
   'a base CSSStyleValue');
30
31
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get.html +51 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Computed StylePropertyMap.get</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
5
<meta name="assert" content="Test computed StylePropertyMap.get" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<body>
10
<div id="log">
11
<script>
12
'use strict';
13
14
test(t => {
15
  const styleMap = createComputedStyleMap(t, '--foo: auto');
16
  assert_equals(styleMap.get('--Foo'), null);
17
}, 'Getting a custom property not in the computed style returns null');
18
19
test(t => {
20
  const styleMap = createComputedStyleMap(t, 'width: 10px; height: 20px');
21
  assert_style_value_equals(styleMap.get('width'), new CSSUnitValue(10, 'px'));
22
}, 'Getting a valid property from computed style returns the correct entry');
23
24
test(t => {
25
  const styleMap = createComputedStyleMap(t, '--foo: auto; --bar: 10px');
26
  assert_style_value_equals(styleMap.get('--foo'),
27
      new CSSUnparsedValue([' auto']));
28
}, 'Getting a valid custom property from computed style returns the ' +
29
   'correct entry');
30
31
test(t => {
32
  const styleMap = createComputedStyleMap(t,
33
      'width: 10px; transition-duration: 1s, 2s; height: 10px;');
34
  assert_style_value_equals(styleMap.get('transition-duration'),
35
      new CSSUnitValue(1, 's'));
36
}, 'Getting a list-valued property from computed style returns only ' +
37
   'the first value');
38
39
test(t => {
40
  const styleMap = createComputedStyleMap(t, 'height: 20px; width: 10px;');
41
  assert_style_value_equals(styleMap.get('wIdTh'), new CSSUnitValue(10, 'px'));
42
}, 'Computed StylePropertyMap.get is not case-sensitive');
43
44
test(t => {
45
  const [elem, styleMap] = createElementWithComputedStyleMap(t, 'width: 10px;');
46
  assert_style_value_equals(styleMap.get('width'), new CSSUnitValue(10, 'px'));
47
  elem.style.width = '20px';
48
  assert_style_value_equals(styleMap.get('width'), new CSSUnitValue(20, 'px'));
49
}, 'Computed StylePropertyMap.get reflects updates in inline style');
50
51
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll-shorthand-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll-shorthand-expected.txt_sec1
1
2
FAIL StylePropertyMap.getAll() with a shorthand property set explicitly in computed style returns a list containing a base CSSStyleValue elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
3
FAIL StylePropertyMap.getAll() with a shorthand property from initial computed style returns a list containing a base CSSStyleValue elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll-shorthand.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll-shorthand.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Computed StylePropertyMap.getAll with shorthands</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-getall">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  const styleMap = createComputedStyleMap(t, 'margin: 1px 2px 3px 4px');
15
  const result = styleMap.getAll('margin');
16
  assert_not_equals(result, null, 'Result must not be null');
17
  assert_equals(result.length, 1, 'Result must be a list with one item');
18
  assert_class_string(result[0], 'CSSStyleValue',
19
    'Only item in result must be a base CSSStyleValue');
20
}, 'StylePropertyMap.getAll() with a shorthand property set explicitly in ' +
21
   'computed style returns a list containing a base CSSStyleValue');
22
23
test(t => {
24
  const styleMap = createComputedStyleMap(t);
25
  const result = styleMap.getAll('margin');
26
  assert_not_equals(result, null, 'Result must not be null');
27
  assert_equals(result.length, 1, 'Result must be a list with one item');
28
  assert_class_string(result[0], 'CSSStyleValue',
29
    'Only item in result must be a base CSSStyleValue');
30
}, 'StylePropertyMap.getAll() with a shorthand property from initial ' +
31
   'computed style returns a list containing a base CSSStyleValue');
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll.tentative-expected.txt +8 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll.tentative-expected.txt_sec1
1
2
FAIL Calling StylePropertyMap.getAll with an unsupported property throws a TypeError elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
3
FAIL Calling StylePropertyMap.getAll with a custom property not in the property model returns an empty list elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
4
FAIL Calling StylePropertyMap.getAll with a valid property returns a single element list with the correct entry elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
5
FAIL StylePropertyMap.getAll is case-insensitive elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
6
FAIL Calling StylePropertyMap.getAll with a valid custom property returns a single element list with the correct entry elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
7
FAIL Calling StylePropertyMap.getAll with a list-valued property returns all the values elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
8
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll.tentative.html +42 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap.getAll tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(t => {
13
  const styleMap = createComputedStyleMap(t);
14
  assert_throws_js(TypeError, () => styleMap.getAll('lemon'));
15
}, 'Calling StylePropertyMap.getAll with an unsupported property throws a TypeError');
16
17
test(t => {
18
  const styleMap = createComputedStyleMap(t, '--foo: auto');
19
  assert_style_value_array_equals(styleMap.getAll('--Foo'), []);
20
}, 'Calling StylePropertyMap.getAll with a custom property not in the property model returns an empty list');
21
22
test(t => {
23
  const styleMap = createComputedStyleMap(t, 'width: 10px; height: 20px');
24
  assert_style_value_array_equals(styleMap.getAll('width'), [CSS.px(10)]);
25
}, 'Calling StylePropertyMap.getAll with a valid property returns a single element list with the correct entry');
26
27
test(t => {
28
  const styleMap = createComputedStyleMap(t, 'height: 20px; width: 10px');
29
  assert_style_value_array_equals(styleMap.getAll('wIdTh'), [CSS.px(10)]);
30
}, 'StylePropertyMap.getAll is case-insensitive');
31
32
test(t => {
33
  const styleMap = createComputedStyleMap(t, '--foo: auto; --bar: 10px');
34
  assert_style_value_array_equals(styleMap.getAll('--foo'), [new CSSUnparsedValue([' auto'])]);
35
}, 'Calling StylePropertyMap.getAll with a valid custom property returns a single element list with the correct entry');
36
37
test(t => {
38
  const styleMap = createComputedStyleMap(t, 'width: 10px; transition-duration: 1s, 2s; height: 20px');
39
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2)]);
40
}, 'Calling StylePropertyMap.getAll with a list-valued property returns all the values');
41
42
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/has.tentative-expected.txt +9 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/has.tentative-expected.txt_sec1
1
2
FAIL Calling StylePropertyMap.has with an unsupported property throws a TypeError elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
3
FAIL Calling StylePropertyMap.has with a custom property not in the property model returns false elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
4
FAIL Calling StylePropertyMap.has with a valid property returns true elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
5
FAIL Calling StylePropertyMap.has with a valid property in mixed case returns true elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
6
FAIL Calling StylePropertyMap.has with a valid shorthand property returns true elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
7
FAIL Calling StylePropertyMap.has with a valid custom property returns true elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
8
FAIL Calling StylePropertyMap.has with a valid list-valued property returns true elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
9
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/has.tentative.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/has.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap.has tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#check-if-stylepropertymap-has-a-property">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(t => {
13
  const styleMap = createComputedStyleMap(t);
14
  assert_throws_js(TypeError, () => styleMap.has('lemon'));
15
}, 'Calling StylePropertyMap.has with an unsupported property throws a TypeError');
16
17
const gTestCases = [
18
  { property: '--Foo', expected: false, desc: 'a custom property not in the property model' },
19
  { property: 'width', expected: true, desc: 'a valid property' },
20
  { property: 'wIdTh', expected: true, desc: 'a valid property in mixed case' },
21
  { property: 'margin', expected: true, desc: 'a valid shorthand property' },
22
  { property: '--foo', expected: true, desc: 'a valid custom property' },
23
  { property: 'transition-duration', expected: true, desc: 'a valid list-valued property' },
24
];
25
26
for (const {property, expected, desc} of gTestCases) {
27
  test(t => {
28
    const styleMap = createComputedStyleMap(t, 'width: 10px; --foo: auto; transition-duration: 1s, 2s');
29
    assert_equals(styleMap.has(property), expected);
30
  }, 'Calling StylePropertyMap.has with ' + desc + ' returns ' + expected);
31
}
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/iterable.tentative-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/iterable.tentative-expected.txt_sec1
1
2
FAIL StylePropertyMap iterates properties in correct order elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
3
FAIL StylePropertyMap iterator returns CSS properties with the correct CSSStyleValue elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
4
FAIL StylePropertyMap iterator returns list-valued properties with the correct CSSStyleValue elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
5
FAIL StylePropertyMap iterator returns custom properties with the correct CSSStyleValue elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
6
FAIL Computed StylePropertyMap sorts custom properties in increasing code-point order elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/iterable.tentative.html +58 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/iterable.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap iterable tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#the-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
function findInStyleMap(styleMap, property) {
13
  const index = [...styleMap.keys()].indexOf(property);
14
  if (index == -1)
15
    return null;
16
  return [...styleMap.values()][index];
17
}
18
19
// Puts normal CSS properties before vendor prefixed ones
20
function comparePropertyNames(a, b) {
21
  if (a.startsWith('-') == b.startsWith('-'))
22
    return a < b ? -1 : 1;
23
  return b.startsWith('-') ? -1 : 1;
24
}
25
26
test(t => {
27
  const styleMap = createComputedStyleMap(t, '--A: A; width: 10px; --C: C; transition-duration: 1s, 2s; color: red; --B: B;');
28
  const expectedKeys = [...getComputedStyle(document.body)].sort(comparePropertyNames).concat('--A', '--B', '--C');
29
  assert_array_equals([...styleMap.keys()], expectedKeys);
30
}, 'StylePropertyMap iterates properties in correct order');
31
32
test(t => {
33
  const styleMap = createComputedStyleMap(t, 'width: 10px; transition-duration: 1s, 2s; height: 20px');
34
  assert_style_value_array_equals(findInStyleMap(styleMap, 'width'), [CSS.px(10)]);
35
}, 'StylePropertyMap iterator returns CSS properties with the correct CSSStyleValue');
36
37
test(t => {
38
  const styleMap = createComputedStyleMap(t, 'width: 10px; transition-duration: 1s, 2s; height: 20px');
39
  assert_style_value_array_equals(findInStyleMap(styleMap, 'transition-duration'), [CSS.s(1), CSS.s(2)]);
40
}, 'StylePropertyMap iterator returns list-valued properties with the correct CSSStyleValue');
41
42
test(t => {
43
  const styleMap = createComputedStyleMap(t, '--A: A; --C: C; color: red; --B: B;');
44
  assert_style_value_array_equals(findInStyleMap(styleMap, '--A'), [new CSSUnparsedValue([' A'])]);
45
  assert_style_value_array_equals(findInStyleMap(styleMap, '--B'), [new CSSUnparsedValue([' B'])]);
46
  assert_style_value_array_equals(findInStyleMap(styleMap, '--C'), [new CSSUnparsedValue([' C'])]);
47
}, 'StylePropertyMap iterator returns custom properties with the correct CSSStyleValue');
48
49
test(t => {
50
  // This is to test for https://github.com/w3c/css-houdini-drafts/issues/700
51
  const styleMap = createComputedStyleMap(t, '--豈: 豈; --💩: 💩;');
52
  const keys = [...styleMap.keys()];
53
54
  assert_array_equals(keys.slice(-2), ['--💩', '--豈']);
55
}, 'Computed StylePropertyMap sorts custom properties in increasing ' +
56
   'code-point order');
57
58
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/append.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/append.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.px is not a function. (In 'CSS.px(10)', 'CSS.px' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.px is not a function. (In 'CSS.px(10)', 'CSS.px' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/append.tentative.html +64 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/append.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap.append tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#append-to-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
const gInvalidTestCases = [
13
  { property: 'lemon', values: ['ade'], desc: 'an unsupported property name' },
14
  { property: null, values: ['foo'], desc: 'an null property name' },
15
  { property: 'width', values: ['10px'], desc: 'a property that is not list valued' },
16
  { property: 'margin', values: ['10px'], desc: 'a shorthand property' },
17
  { property: 'transition-duration', values: [CSS.px(10)], desc: 'an invalid CSSStyleValue' },
18
  { property: 'transition-duration', values: ['10px'], desc: 'an invalid String value' },
19
  { property: 'transition-duration', values: [CSS.s(1), '10px', CSS.px(10)], desc: 'a mix of valid and invalid values' },
20
  { property: 'transition-duration', values: [new CSSUnparsedValue([])], desc: 'a CSSUnparsedValue' },
21
  { property: 'transition-duration', values: ['var(--A)'], desc: 'a var ref' },
22
];
23
24
for (const {property, values, desc} of gInvalidTestCases) {
25
  test(t => {
26
    let styleMap = createDeclaredStyleMap(t, '');
27
    assert_throws_js(TypeError, () => styleMap.append(property, ...values));
28
  }, 'Calling StylePropertyMap.append with ' + desc + ' throws TypeError');
29
}
30
31
test(t => {
32
  let styleMap = createDeclaredStyleMap(t, '');
33
34
  styleMap.append('transition-duration', CSS.s(1), '2s');
35
  assert_style_value_array_equals(styleMap.getAll('transition-duration'),
36
      [CSS.s(1), CSS.s(2)]);
37
38
  styleMap.append('transition-duration', '3s', CSS.s(4));
39
  assert_style_value_array_equals(styleMap.getAll('transition-duration'),
40
      [CSS.s(1), CSS.s(2), CSS.s(3), CSS.s(4)]);
41
}, 'Appending a list-valued property with CSSStyleValue or String updates its values');
42
43
test(t => {
44
  let styleMap = createDeclaredStyleMap(t, '');
45
46
  styleMap.append('transition-duration', '1s, 2s');
47
  assert_style_value_array_equals(styleMap.getAll('transition-duration'),
48
      [CSS.s(1), CSS.s(2)]);
49
50
  styleMap.append('transition-duration', '3s, 4s');
51
  assert_style_value_array_equals(styleMap.getAll('transition-duration'),
52
      [CSS.s(1), CSS.s(2), CSS.s(3), CSS.s(4)]);
53
}, 'Appending a list-valued property with list-valued string updates its values');
54
55
test(t => {
56
  let styleMap = createDeclaredStyleMap(t, 'transition-duration: 5s, 10s');
57
58
  styleMap.append('tRaNsItIoN-dUrAtIoN', '1s', CSS.s(2));
59
  const result = styleMap.getAll('transition-duration');
60
  assert_style_value_array_equals(result,
61
      [CSS.s(5), CSS.s(10), CSS.s(1), CSS.s(2)]);
62
}, 'StylePropertyMap.append is case-insensitive');
63
64
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/clear-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/clear-expected.txt_sec1
1
2
FAIL Clearing an empty CSS rule is a no-op styleMap.clear is not a function. (In 'styleMap.clear()', 'styleMap.clear' is undefined)
3
FAIL Can clear a CSS rule containing properties styleMap.clear is not a function. (In 'styleMap.clear()', 'styleMap.clear' is undefined)
4
FAIL Declared StylePropertyMap.clear updates the CSS rule undefined is not an object (evaluating 'styleMap.clear')
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/clear.html +40 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/clear.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Declared StylePropertyMap.clear</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-clear">
5
<meta name="assert" content="Test declared StylePropertyMap.clear" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<body>
10
<div id="log"></div>
11
<script>
12
'use strict';
13
14
test(t => {
15
  let styleMap = createInlineStyleMap(t, '');
16
  styleMap.clear();
17
  assert_array_equals([...styleMap], []);
18
}, 'Clearing an empty CSS rule is a no-op');
19
20
test(t => {
21
  let styleMap = createInlineStyleMap(t, '--foo: auto; width: 10px; transition-duration: 1s, 2s');
22
23
  styleMap.clear();
24
  assert_equals(styleMap.get('--foo'), null,
25
    'Custom properties should be cleared');
26
  assert_equals(styleMap.get('width'), null,
27
    'CSS properties should be cleared');
28
  assert_equals(styleMap.get('transition-duration'), null,
29
    'List-valued properties should be cleared');
30
  assert_array_equals([...styleMap], []);
31
}, 'Can clear a CSS rule containing properties');
32
33
test(t => {
34
  let [rule, styleMap] = createRuleWithDeclaredStyleMap(t, 'width: 10px;');
35
  styleMap.clear();
36
37
  assert_equals(rule.style.width, '', 'CSS rule style should be cleared');
38
}, 'Declared StylePropertyMap.clear updates the CSS rule');
39
40
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/declared.tentative-expected.txt +9 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/declared.tentative-expected.txt_sec1
1
2
FAIL Declared StylePropertyMap only contains properties in the style rule undefined is not an object (evaluating 'styleMap.keys')
3
FAIL Declared StylePropertyMap contains CSS property declarations in style rules undefined is not an object (evaluating 'styleMap.get')
4
FAIL Declared StylePropertyMap does not contain inline styles undefined is not an object (evaluating 'styleMap.get')
5
FAIL Declared StylePropertyMap contains custom property declarations undefined is not an object (evaluating 'styleMap.get')
6
FAIL Declared StylePropertyMap does not contain properties with invalid values undefined is not an object (evaluating 'styleMap.get')
7
FAIL Declared StylePropertyMap contains properties with their last valid value undefined is not an object (evaluating 'styleMap.get')
8
FAIL Declared StylePropertyMap is live undefined is not an object (evaluating 'styleMap.get')
9
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/declared.tentative.html +76 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/declared.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Declared StylePropertyMap tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#declared-stylepropertymap-objects">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<style>
9
div {
10
  height: 10px;
11
  width: 50%;
12
  width: 'lemon';
13
  --foo: auto;
14
  transition-duration: 1s, 2s;
15
  color: 10;
16
}
17
18
#target {
19
  height: 20px;
20
  --foo: 1s;
21
  width: 10%;
22
}
23
</style>
24
<div style="width: 50px">
25
  <div id="target" style="top: 5px; --bar: auto;"></div>
26
</div>
27
<script>
28
'use strict';
29
30
const target = document.getElementById('target');
31
const styleMap = document.styleSheets[0].rules[0].styleMap;
32
33
test(() => {
34
  const properties = [...styleMap.keys()];
35
  assert_array_equals(properties, ['height', 'width', '--foo', 'transition-duration']);
36
}, 'Declared StylePropertyMap only contains properties in the style rule');
37
38
test(() => {
39
  assert_style_value_equals(styleMap.get('height'), CSS.px(10));
40
}, 'Declared StylePropertyMap contains CSS property declarations in style rules');
41
42
test(() => {
43
  assert_equals(styleMap.get('top'), null);
44
  assert_equals(styleMap.get('--bar'), null);
45
}, 'Declared StylePropertyMap does not contain inline styles');
46
47
test(() => {
48
  assert_style_value_equals(styleMap.get('--foo'), new CSSUnparsedValue([' auto']));
49
}, 'Declared StylePropertyMap contains custom property declarations');
50
51
test(() => {
52
  assert_equals(styleMap.get('color'), null);
53
}, 'Declared StylePropertyMap does not contain properties with invalid values');
54
55
test(() => {
56
  assert_style_value_equals(styleMap.get('width'), CSS.percent(50));
57
}, 'Declared StylePropertyMap contains properties with their last valid value');
58
59
test(() => {
60
  const style = document.createElement('style');
61
  document.head.appendChild(style);
62
63
  style.sheet.insertRule('.test { width: 10px; }');
64
  let rule = style.sheet.rules[0];
65
66
  let styleMap = rule.styleMap;
67
  assert_style_value_equals(styleMap.get('width'), CSS.px(10));
68
69
  rule.style.width = '20px';
70
  assert_style_value_equals(styleMap.get('width'), CSS.px(20));
71
72
  styleMap.set('width', CSS.px(30));
73
  assert_equals(rule.cssText, '.test { width: 30px; }');
74
}, 'Declared StylePropertyMap is live');
75
76
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-expected.txt_sec1
1
2
FAIL Deleting a property not in the css rule is a no-op undefined is not an object (evaluating 'styleMap.delete')
3
FAIL Deleting a property in the css rule removes it from the css rule undefined is not an object (evaluating 'styleMap.delete')
4
FAIL Deleting a custom property in the css rule removes it from the css rule undefined is not an object (evaluating 'styleMap.delete')
5
FAIL Deleting a list-valued property in the css rule removes it from the css rule undefined is not an object (evaluating 'styleMap.delete')
6
FAIL Declared StylePropertyMap.delete is not case-sensitive undefined is not an object (evaluating 'styleMap.delete')
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-invalid-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-invalid-expected.txt_sec1
1
2
PASS Deleting an unsupported property name throws a TypeError
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-invalid.html +18 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-invalid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Declared StylePropertyMap.delete Error Handling</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#delete-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  let styleMap = createDeclaredStyleMap(t, '');
15
  assert_throws_js(TypeError, () => styleMap.delete('lemon'));
16
}, 'Deleting an unsupported property name throws a TypeError');
17
18
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-shorthand-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-shorthand-expected.txt_sec1
1
2
FAIL Deleting a shorthand property not in the css rule is a no-op undefined is not an object (evaluating 'styleMap.delete')
3
FAIL Deleting a shorthand property in the css rule removes both it and its longhands undefined is not an object (evaluating 'styleMap.delete')
4
FAIL Deleting a longhand property in the css rule removes both it and its shorthand undefined is not an object (evaluating 'styleMap.delete')
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-shorthand.html +55 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete-shorthand.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Declared StylePropertyMap.delete() with shorthands</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#delete-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  let [elem, styleMap] = createRuleWithDeclaredStyleMap(t, '');
15
  assert_equals(elem.style.getPropertyValue('margin'), '');
16
  assert_equals(elem.style.getPropertyValue('margin-top'), '');
17
  assert_equals(elem.style.getPropertyValue('margin-left'), '');
18
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '');
19
  assert_equals(elem.style.getPropertyValue('margin-right'), '');
20
21
  styleMap.delete('margin');
22
  assert_equals(elem.style.getPropertyValue('margin'), '');
23
  assert_equals(elem.style.getPropertyValue('margin-top'), '');
24
  assert_equals(elem.style.getPropertyValue('margin-left'), '');
25
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '');
26
  assert_equals(elem.style.getPropertyValue('margin-right'), '');
27
}, 'Deleting a shorthand property not in the css rule is a no-op');
28
29
test(t => {
30
  let [elem, styleMap] = createRuleWithDeclaredStyleMap(t, 'margin: 10px');
31
  assert_not_equals(elem.style.getPropertyValue('margin'), '');
32
33
  styleMap.delete('margin');
34
  assert_equals(elem.style.getPropertyValue('margin'), '');
35
  assert_equals(elem.style.getPropertyValue('margin-top'), '');
36
  assert_equals(elem.style.getPropertyValue('margin-left'), '');
37
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '');
38
  assert_equals(elem.style.getPropertyValue('margin-right'), '');
39
}, 'Deleting a shorthand property in the css rule removes both it and ' +
40
   'its longhands');
41
42
test(t => {
43
  let [elem, styleMap] = createRuleWithDeclaredStyleMap(t, 'margin: 10px');
44
  assert_not_equals(elem.style.getPropertyValue('margin-top'), '');
45
46
  styleMap.delete('margin-top');
47
  assert_equals(elem.style.getPropertyValue('margin'), '');
48
  assert_equals(elem.style.getPropertyValue('margin-top'), '');
49
  assert_equals(elem.style.getPropertyValue('margin-left'), '10px');
50
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '10px');
51
  assert_equals(elem.style.getPropertyValue('margin-right'), '10px');
52
}, 'Deleting a longhand property in the css rule removes both it and ' +
53
   'its shorthand');
54
55
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete.html +56 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/delete.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Declared StylePropertyMap.delete</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#delete-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  let [rule, styleMap] = createRuleWithDeclaredStyleMap(t, '');
15
  assert_equals(rule.style.getPropertyValue('width'), '');
16
17
  styleMap.delete('width');
18
  assert_equals(rule.style.getPropertyValue('width'), '');
19
}, 'Deleting a property not in the css rule is a no-op');
20
21
test(t => {
22
  let [rule, styleMap] = createRuleWithDeclaredStyleMap(t, 'width: 10px');
23
  assert_not_equals(rule.style.getPropertyValue('width'), '');
24
25
  styleMap.delete('width');
26
  assert_equals(rule.style.getPropertyValue('width'), '');
27
}, 'Deleting a property in the css rule removes it from the css rule');
28
29
test(t => {
30
  let [rule, styleMap] = createRuleWithDeclaredStyleMap(t, '--Foo: 10px');
31
  assert_not_equals(rule.style.getPropertyValue('--Foo'), '');
32
33
  styleMap.delete('--Foo');
34
  assert_equals(rule.style.getPropertyValue('--Foo'), '');
35
}, 'Deleting a custom property in the css rule removes it from the ' +
36
   'css rule');
37
38
test(t => {
39
  let [rule, styleMap] = createRuleWithDeclaredStyleMap(t,
40
      'transition-duration: 1s, 2s');
41
  assert_not_equals(rule.style.getPropertyValue('transition-duration'), '');
42
43
  styleMap.delete('transition-duration');
44
  assert_equals(rule.style.getPropertyValue('transition-duration'), '');
45
}, 'Deleting a list-valued property in the css rule removes it from ' +
46
   'the css rule');
47
48
test(t => {
49
  let [rule, styleMap] = createRuleWithDeclaredStyleMap(t, 'width: 10px');
50
  assert_not_equals(rule.style.getPropertyValue('width'), '');
51
52
  styleMap.delete('wIdTh');
53
  assert_equals(rule.style.getPropertyValue('width'), '');
54
}, 'Declared StylePropertyMap.delete is not case-sensitive');
55
56
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-expected.txt +9 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-expected.txt_sec1
1
2
FAIL Getting a custom property not in the CSS rule returns null undefined is not an object (evaluating 'styleMap.get')
3
FAIL Getting a valid property not in the CSS rule returns null undefined is not an object (evaluating 'styleMap.get')
4
FAIL Getting a valid property from CSS rule returns the correct entry undefined is not an object (evaluating 'styleMap.get')
5
FAIL Getting a valid custom property from CSS rule returns the correct entry undefined is not an object (evaluating 'styleMap.get')
6
FAIL Getting a list-valued property from CSS rule returns only the first value undefined is not an object (evaluating 'styleMap.get')
7
FAIL Declared StylePropertyMap.get is not case-sensitive undefined is not an object (evaluating 'styleMap.get')
8
FAIL Declared StylePropertyMap.get reflects changes in the CSS rule undefined is not an object (evaluating 'styleMap.get')
9
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-invalid-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-invalid-expected.txt_sec1
1
2
PASS Calling StylePropertyMap.get with an unsupported property throws a TypeError
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-invalid.html +18 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-invalid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Declared StylePropertyMap.get Error Handling</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  const styleMap = createDeclaredStyleMap(t);
15
  assert_throws_js(TypeError, () => styleMap.get('lemon'));
16
}, 'Calling StylePropertyMap.get with an unsupported property throws a TypeError');
17
18
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-shorthand-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-shorthand-expected.txt_sec1
1
2
FAIL Getting a shorthand property set explicitly in css rule returns a base CSSStyleValue undefined is not an object (evaluating 'styleMap.get')
3
FAIL Getting a shorthand property that is partially set in css rule returns null undefined is not an object (evaluating 'styleMap.get')
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-shorthand.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get-shorthand.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Declared StylePropertyMap.get with shorthands</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  const styleMap = createDeclaredStyleMap(t, 'margin: 1px 2px 3px 4px');
15
  const result = styleMap.get('margin');
16
  assert_not_equals(result, null, 'Shorthand value must not be null');
17
  assert_class_string(result, 'CSSStyleValue',
18
    'Shorthand value must be a base CSSStyleValue');
19
}, 'Getting a shorthand property set explicitly in css rule returns ' +
20
   'a base CSSStyleValue');
21
22
test(t => {
23
  const styleMap = createDeclaredStyleMap(t, 'margin-top: 1px');
24
  const result = styleMap.get('margin');
25
  assert_equals(result, null,
26
    'Shorthand value must be null as it is not explicitly set');
27
}, 'Getting a shorthand property that is partially set in css rule ' +
28
   'returns null');
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get.html +56 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Declared StylePropertyMap.get</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
5
<meta name="assert" content="Test declared StylePropertyMap.get" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<body>
10
<div id="log">
11
<script>
12
'use strict';
13
14
test(t => {
15
  const styleMap = createDeclaredStyleMap(t, '--foo: auto');
16
  assert_equals(styleMap.get('--Foo'), null);
17
}, 'Getting a custom property not in the CSS rule returns null');
18
19
test(t => {
20
  const styleMap = createDeclaredStyleMap(t, '');
21
  assert_equals(styleMap.get('width'), null);
22
}, 'Getting a valid property not in the CSS rule returns null');
23
24
test(t => {
25
  const styleMap = createDeclaredStyleMap(t, 'width: 10px; height: 20px');
26
  assert_style_value_equals(styleMap.get('width'), new CSSUnitValue(10, 'px'));
27
}, 'Getting a valid property from CSS rule returns the correct entry');
28
29
test(t => {
30
  const styleMap = createDeclaredStyleMap(t, '--foo: auto; --bar: 10px');
31
  assert_style_value_equals(styleMap.get('--foo'),
32
      new CSSUnparsedValue([' auto']));
33
}, 'Getting a valid custom property from CSS rule returns the ' +
34
   'correct entry');
35
36
test(t => {
37
  const styleMap = createDeclaredStyleMap(t,
38
      'width: 10px; transition-duration: 1s, 2s; height: 10px;');
39
  assert_style_value_equals(styleMap.get('transition-duration'),
40
      new CSSUnitValue(1, 's'));
41
}, 'Getting a list-valued property from CSS rule returns only ' +
42
   'the first value');
43
44
test(t => {
45
  const styleMap = createDeclaredStyleMap(t, 'height: 20px; width: 10px;');
46
  assert_style_value_equals(styleMap.get('wIdTh'), new CSSUnitValue(10, 'px'));
47
}, 'Declared StylePropertyMap.get is not case-sensitive');
48
49
test(t => {
50
  const [rule, styleMap] = createRuleWithDeclaredStyleMap(t, 'width: 10px;');
51
  assert_style_value_equals(styleMap.get('width'), new CSSUnitValue(10, 'px'));
52
  rule.style.width = '20px';
53
  assert_style_value_equals(styleMap.get('width'), new CSSUnitValue(20, 'px'));
54
}, 'Declared StylePropertyMap.get reflects changes in the CSS rule');
55
56
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll-shorthand-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll-shorthand-expected.txt_sec1
1
2
FAIL StylePropertyMap.getAll() with a shorthand property set explicitly in css rule returns a base CSSStyleValue undefined is not an object (evaluating 'styleMap.getAll')
3
FAIL StylePropertyMap.getAll() with a shorthand property that is partially in css rule returns empty list undefined is not an object (evaluating 'styleMap.getAll')
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll-shorthand.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll-shorthand.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Declared StylePropertyMap.getAll with shorthands</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-getall">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  const styleMap = createDeclaredStyleMap(t, 'margin: 1px 2px 3px 4px');
15
  const result = styleMap.getAll('margin');
16
  assert_not_equals(result, null, 'Result must not be null');
17
  assert_equals(result.length, 1, 'Result must be a list with one item');
18
  assert_class_string(result[0], 'CSSStyleValue',
19
    'Only item in result must be a base CSSStyleValue');
20
}, 'StylePropertyMap.getAll() with a shorthand property set explicitly in ' +
21
   'css rule returns a base CSSStyleValue');
22
23
test(t => {
24
  const styleMap = createDeclaredStyleMap(t, 'margin-top: 1px');
25
  const result = styleMap.getAll('margin');
26
  assert_equals(result.length, 0, 'Result must be an empty list');
27
}, 'StylePropertyMap.getAll() with a shorthand property that is partially ' +
28
   'in css rule returns empty list');
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll.tentative-expected.txt +9 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll.tentative-expected.txt_sec1
1
2
PASS Calling StylePropertyMap.getAll with an unsupported property throws a TypeError
3
FAIL Calling StylePropertyMap.getAll with a property not in the property model returns an empty list undefined is not an object (evaluating 'styleMap.getAll')
4
FAIL Calling StylePropertyMap.getAll with a custom property not in the property model returns an empty list undefined is not an object (evaluating 'styleMap.getAll')
5
FAIL Calling StylePropertyMap.getAll with a valid property returns a single element list with the correct entry undefined is not an object (evaluating 'styleMap.getAll')
6
FAIL StylePropertyMap.getAll is case-insensitive undefined is not an object (evaluating 'styleMap.getAll')
7
FAIL Calling StylePropertyMap.getAll with a valid custom property returns a single element list with the correct entry undefined is not an object (evaluating 'styleMap.getAll')
8
FAIL Calling StylePropertyMap.getAll with a list-valued property returns all the values undefined is not an object (evaluating 'styleMap.getAll')
9
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll.tentative.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap.getAll tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(t => {
13
  const styleMap = createDeclaredStyleMap(t);
14
  assert_throws_js(TypeError, () => styleMap.getAll('lemon'));
15
}, 'Calling StylePropertyMap.getAll with an unsupported property throws a TypeError');
16
17
test(t => {
18
  const styleMap = createDeclaredStyleMap(t);
19
  assert_style_value_array_equals(styleMap.getAll('height'), []);
20
}, 'Calling StylePropertyMap.getAll with a property not in the property model returns an empty list');
21
22
test(t => {
23
  const styleMap = createDeclaredStyleMap(t, '--foo: auto');
24
  assert_style_value_array_equals(styleMap.getAll('--Foo'), []);
25
}, 'Calling StylePropertyMap.getAll with a custom property not in the property model returns an empty list');
26
27
test(t => {
28
  const styleMap = createDeclaredStyleMap(t, 'width: 10px; height: 20px');
29
  assert_style_value_array_equals(styleMap.getAll('width'), [CSS.px(10)]);
30
}, 'Calling StylePropertyMap.getAll with a valid property returns a single element list with the correct entry');
31
32
test(t => {
33
  const styleMap = createDeclaredStyleMap(t, 'height: 20px; width: 10px');
34
  assert_style_value_array_equals(styleMap.getAll('wIdTh'), [CSS.px(10)]);
35
}, 'StylePropertyMap.getAll is case-insensitive');
36
37
test(t => {
38
  const styleMap = createDeclaredStyleMap(t, '--foo: auto; --bar: 10px');
39
  assert_style_value_array_equals(styleMap.getAll('--foo'), [new CSSUnparsedValue([' auto'])]);
40
}, 'Calling StylePropertyMap.getAll with a valid custom property returns a single element list with the correct entry');
41
42
test(t => {
43
  const styleMap = createDeclaredStyleMap(t, 'width: 10px; transition-duration: 1s, 2s; height: 20px');
44
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2)]);
45
}, 'Calling StylePropertyMap.getAll with a list-valued property returns all the values');
46
47
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/has.tentative-expected.txt +11 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/has.tentative-expected.txt_sec1
1
2
PASS Calling StylePropertyMap.has with an unsupported property throws a TypeError
3
FAIL Calling StylePropertyMap.has with a property not in the property model returns false undefined is not an object (evaluating 'styleMap.has')
4
FAIL Calling StylePropertyMap.has with a custom property not in the property model returns false undefined is not an object (evaluating 'styleMap.has')
5
FAIL Calling StylePropertyMap.has with a valid property returns true undefined is not an object (evaluating 'styleMap.has')
6
FAIL Calling StylePropertyMap.has with a valid property in mixed case returns true undefined is not an object (evaluating 'styleMap.has')
7
FAIL Calling StylePropertyMap.has with a valid shorthand specified explicitly returns true undefined is not an object (evaluating 'styleMap.has')
8
FAIL Calling StylePropertyMap.has with a valid shorthand only partially specified returns false undefined is not an object (evaluating 'styleMap.has')
9
FAIL Calling StylePropertyMap.has with a valid custom property returns true undefined is not an object (evaluating 'styleMap.has')
10
FAIL Calling StylePropertyMap.has with a valid list-valued property returns true undefined is not an object (evaluating 'styleMap.has')
11
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/has.tentative.html +36 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/has.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap.has tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#check-if-stylepropertymap-has-a-property">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(t => {
13
  const styleMap = createDeclaredStyleMap(t);
14
  assert_throws_js(TypeError, () => styleMap.has('lemon'));
15
}, 'Calling StylePropertyMap.has with an unsupported property throws a TypeError');
16
17
const gTestCases = [
18
  { property: 'height', expected: false, desc: 'a property not in the property model' },
19
  { property: '--Foo', expected: false, desc: 'a custom property not in the property model' },
20
  { property: 'width', expected: true, desc: 'a valid property' },
21
  { property: 'wIdTh', expected: true, desc: 'a valid property in mixed case' },
22
  { property: 'margin', expected: true, desc: 'a valid shorthand specified explicitly' },
23
  { property: 'padding', expected: false, desc: 'a valid shorthand only partially specified' },
24
  { property: '--foo', expected: true, desc: 'a valid custom property' },
25
  { property: 'transition-duration', expected: true, desc: 'a valid list-valued property' },
26
];
27
28
for (const {property, expected, desc} of gTestCases) {
29
  test(t => {
30
    const styleMap = createDeclaredStyleMap(t,
31
      'width: 10px; --foo: auto; transition-duration: 1s, 2s; margin: 1px 2px 3px 4px; padding-left: 1px');
32
    assert_equals(styleMap.has(property), expected);
33
  }, 'Calling StylePropertyMap.has with ' + desc + ' returns ' + expected);
34
}
35
36
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/iterable.tentative-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/iterable.tentative-expected.txt_sec1
1
2
FAIL Iterating over an empty StylePropertyMap gives a zero-length array undefined is not an object (evaluating 'styleMap.entries')
3
FAIL StylePropertyMap iterates properties in correct order undefined is not an object (evaluating 'styleMap.keys')
4
FAIL StylePropertyMap iterator returns CSS properties with the correct CSSStyleValue undefined is not an object (evaluating 'styleMap.keys')
5
FAIL StylePropertyMap iterator returns list-valued properties with the correct CSSStyleValue undefined is not an object (evaluating 'styleMap.keys')
6
FAIL StylePropertyMap iterator returns custom properties with the correct CSSStyleValue undefined is not an object (evaluating 'styleMap.keys')
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/iterable.tentative.html +50 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/iterable.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap iterable tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#the-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(t => {
13
  const styleMap = createDeclaredStyleMap(t, '');
14
  assert_array_equals([...styleMap.entries()], []);
15
}, 'Iterating over an empty StylePropertyMap gives a zero-length array');
16
17
test(t => {
18
  const styleMap = createDeclaredStyleMap(t, '--A: A; width: 10px; --C: C; transition-duration: 1s, 2s; color: red; --B: B;');
19
  assert_array_equals([...styleMap.keys()],
20
    ['--A', 'width', '--C', 'transition-duration', 'color', '--B']);
21
}, 'StylePropertyMap iterates properties in correct order');
22
23
test(t => {
24
  const styleMap = createDeclaredStyleMap(t, 'width: 10px; height: 5px');
25
  const keys = [...styleMap.keys()], values = [...styleMap.values()];
26
27
  assert_array_equals(keys, ['width', 'height']);
28
  assert_style_value_array_equals(values[0], [CSS.px(10)]);
29
  assert_style_value_array_equals(values[1], [CSS.px(5)]);
30
}, 'StylePropertyMap iterator returns CSS properties with the correct CSSStyleValue');
31
32
test(t => {
33
  const styleMap = createDeclaredStyleMap(t, 'transition-duration: 1s, 2s');
34
  const keys = [...styleMap.keys()], values = [...styleMap.values()];
35
36
  assert_array_equals(keys, ['transition-duration']);
37
  assert_style_value_array_equals(values[0], [CSS.s(1), CSS.s(2)]);
38
}, 'StylePropertyMap iterator returns list-valued properties with the correct CSSStyleValue');
39
40
test(t => {
41
  const styleMap = createDeclaredStyleMap(t, '--A: A; --B: B; --C: C');
42
  const keys = [...styleMap.keys()], values = [...styleMap.values()];
43
44
  assert_array_equals(keys, ['--A', '--B', '--C']);
45
  assert_style_value_array_equals(values[0], [new CSSUnparsedValue([' A'])]);
46
  assert_style_value_array_equals(values[1], [new CSSUnparsedValue([' B'])]);
47
  assert_style_value_array_equals(values[2], [new CSSUnparsedValue([' C'])]);
48
}, 'StylePropertyMap iterator returns custom properties with the correct CSSStyleValue');
49
50
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set-shorthand-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set-shorthand-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.deg is not a function. (In 'CSS.deg(0)', 'CSS.deg' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.deg is not a function. (In 'CSS.deg(0)', 'CSS.deg' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set-shorthand.html +50 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set-shorthand.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Declared StylePropertyMap.set() with shorthands</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#set-a-value-on-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
const gInvalidTestCases = [
13
  { property: 'margin', values: [CSS.deg(0)], desc: 'an invalid CSSStyleValue' },
14
  { property: 'margin', values: ['10s'], desc: 'an invalid String' },
15
];
16
17
for (const {property, values, desc} of gInvalidTestCases) {
18
  test(t => {
19
    let styleMap = createInlineStyleMap(t, '');
20
    assert_throws_js(TypeError, () => styleMap.set(property, ...values));
21
  }, 'Setting a shorthand with ' + desc + ' on css rule throws TypeError');
22
}
23
24
test(t => {
25
  let [elem, styleMap] = createRuleWithDeclaredStyleMap(t, 'margin: 1px 2px 3px 4px');
26
27
  const result = styleMap.get('margin');
28
  elem.style.margin = '';
29
  styleMap.set('margin', result);
30
31
  assert_equals(elem.style.getPropertyValue('margin'), '1px 2px 3px 4px');
32
  assert_equals(elem.style.getPropertyValue('margin-top'), '1px');
33
  assert_equals(elem.style.getPropertyValue('margin-right'), '2px');
34
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '3px');
35
  assert_equals(elem.style.getPropertyValue('margin-left'), '4px');
36
}, 'Setting a shorthand with a CSSStyleValue updates css rule');
37
38
test(t => {
39
  let [elem, styleMap] = createRuleWithDeclaredStyleMap(t);
40
41
  styleMap.set('margin', '1px 2px 3px 4px');
42
43
  assert_equals(elem.style.getPropertyValue('margin'), '1px 2px 3px 4px');
44
  assert_equals(elem.style.getPropertyValue('margin-top'), '1px');
45
  assert_equals(elem.style.getPropertyValue('margin-right'), '2px');
46
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '3px');
47
  assert_equals(elem.style.getPropertyValue('margin-left'), '4px');
48
}, 'Setting a shorthand with a string updates css rule');
49
50
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.deg is not a function. (In 'CSS.deg(0)', 'CSS.deg' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.deg is not a function. (In 'CSS.deg(0)', 'CSS.deg' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set.tentative.html +98 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap.set</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#set-a-value-on-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
const gInvalidTestCases = [
13
  { property: 'lemon', values: ['ade'], desc: 'an unsupported property name' },
14
  { property: null, values: ['foo'], desc: 'an null property name' },
15
  { property: 'src', values: [new CSSUnparsedValue(['foo'])], desc: 'a descriptor' },
16
  { property: 'width', values: [CSS.deg(0)], desc: 'an invalid CSSStyleValue' },
17
  { property: 'width', values: ['10s'], desc: 'an invalid String' },
18
];
19
20
for (const {property, values, desc} of gInvalidTestCases) {
21
  test(t => {
22
    let styleMap = createDeclaredStyleMap(t, '');
23
    assert_throws_js(TypeError, () => styleMap.set(property, ...values));
24
  }, 'Setting a StylePropertyMap with ' + desc + ' throws TypeError');
25
}
26
27
test(t => {
28
  let styleMap = createDeclaredStyleMap(t, '');
29
  assert_throws_js(TypeError, () => styleMap.set('width', CSS.px(10), CSS.px(10)));
30
}, 'Setting a non list-valued property with multiple arguments throws TypeError');
31
32
test(t => {
33
  let styleMap = createDeclaredStyleMap(t, '');
34
  assert_throws_js(TypeError, () => styleMap.set('width', '1s, 2s'));
35
}, 'Setting a non list-valued property with list-valued string throws TypeError');
36
37
test(t => {
38
  let styleMap = createDeclaredStyleMap(t, '');
39
  assert_throws_js(TypeError, () => {
40
    styleMap.set('transition-duration', '1s', new CSSUnparsedValue([]));
41
  });
42
}, 'Setting a list-valued property with a CSSUnparsedValue and other ' +
43
   'values throws TypeError');
44
45
test(t => {
46
  let styleMap = createDeclaredStyleMap(t, '');
47
  assert_throws_js(TypeError, () => {
48
    styleMap.set('transition-duration', '1s', 'var(--A)');
49
  });
50
}, 'Setting a list-valued property with a var ref() and other values ' +
51
   'throws TypeError');
52
53
test(t => {
54
  let styleMap = createDeclaredStyleMap(t, '');
55
56
  styleMap.set('width', CSS.px(10));
57
  assert_style_value_array_equals(styleMap.get('width'), CSS.px(10));
58
59
  styleMap.set('width', '20px');
60
  assert_style_value_array_equals(styleMap.get('width'), CSS.px(20));
61
}, 'Setting a property with CSSStyleValue or String updates its value');
62
63
test(t => {
64
  let styleMap = createDeclaredStyleMap(t, '');
65
66
  styleMap.set('transition-duration', CSS.s(1), '2s');
67
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2)]);
68
69
  styleMap.set('transition-duration', '3s', CSS.s(4));
70
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(3), CSS.s(4)]);
71
}, 'Setting a list-valued property with CSSStyleValue or String updates its values');
72
73
test(t => {
74
  let styleMap = createDeclaredStyleMap(t, '');
75
76
  styleMap.set('transition-duration', '1s, 2s');
77
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2)]);
78
}, 'Setting a list-valued property with a list-valued string updates its value');
79
80
test(t => {
81
  let styleMap = createDeclaredStyleMap(t, '');
82
83
  styleMap.set('--foo', new CSSUnparsedValue(['auto']));
84
  assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['auto']));
85
86
  styleMap.set('--foo', '20px');
87
  assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['20px']));
88
}, 'Setting a custom property with CSSStyleValue or String updates its value');
89
90
test(t => {
91
  let styleMap = createDeclaredStyleMap(t, 'transition-duration: 5s, 10s');
92
93
  styleMap.set('tRaNsItIoN-dUrAtIoN', '1s', CSS.s(2));
94
  const result = styleMap.getAll('transition-duration');
95
  assert_style_value_array_equals(result, [CSS.s(1), CSS.s(2)]);
96
}, 'StylePropertyMap.set is case-insensitive');
97
98
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/append.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/append.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.px is not a function. (In 'CSS.px(10)', 'CSS.px' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.px is not a function. (In 'CSS.px(10)', 'CSS.px' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/append.tentative.html +59 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/append.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap.append tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#append-to-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
const gInvalidTestCases = [
13
  { property: 'lemon', values: ['ade'], desc: 'an unsupported property name' },
14
  { property: null, values: ['foo'], desc: 'an null property name' },
15
  { property: 'width', values: ['10px'], desc: 'a property that is not list valued' },
16
  { property: 'margin', values: ['10px'], desc: 'a shorthand property' },
17
  { property: 'transition-duration', values: [CSS.px(10)], desc: 'an invalid CSSStyleValue' },
18
  { property: 'transition-duration', values: ['10px'], desc: 'an invalid String value' },
19
  { property: 'transition-duration', values: [CSS.s(1), '10px', CSS.px(10)], desc: 'a mix of valid and invalid values' },
20
  { property: 'transition-duration', values: [new CSSUnparsedValue([])], desc: 'a CSSUnparsedValue' },
21
  { property: 'transition-duration', values: ['var(--A)'], desc: 'a var ref' },
22
];
23
24
for (const {property, values, desc} of gInvalidTestCases) {
25
  test(t => {
26
    let styleMap = createInlineStyleMap(t, '');
27
    assert_throws_js(TypeError, () => styleMap.append(property, ...values));
28
  }, 'Calling StylePropertyMap.append with ' + desc + ' throws TypeError');
29
}
30
31
test(t => {
32
  let styleMap = createInlineStyleMap(t, '');
33
34
  styleMap.append('transition-duration', CSS.s(1), '2s');
35
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2)]);
36
37
  styleMap.append('transition-duration', '3s', CSS.s(4));
38
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2), CSS.s(3), CSS.s(4)]);
39
}, 'Appending a list-valued property with CSSStyleValue or String updates its values');
40
41
test(t => {
42
  let styleMap = createInlineStyleMap(t, '');
43
44
  styleMap.append('transition-duration', '1s, 2s');
45
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2)]);
46
47
  styleMap.append('transition-duration', '3s, 4s');
48
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2), CSS.s(3), CSS.s(4)]);
49
}, 'Appending a list-valued property with list-valued string updates its values');
50
51
test(t => {
52
  let styleMap = createInlineStyleMap(t, 'transition-duration: 5s, 10s');
53
54
  styleMap.append('tRaNsItIoN-dUrAtIoN', '1s', CSS.s(2));
55
  const result = styleMap.getAll('transition-duration');
56
  assert_style_value_array_equals(result, [CSS.s(5), CSS.s(10), CSS.s(1), CSS.s(2)]);
57
}, 'StylePropertyMap.append is case-insensitive');
58
59
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/clear-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/clear-expected.txt_sec1
1
2
FAIL Clearing an empty inline style is a no-op styleMap.clear is not a function. (In 'styleMap.clear()', 'styleMap.clear' is undefined)
3
FAIL Can clear an inline style containing properties styleMap.clear is not a function. (In 'styleMap.clear()', 'styleMap.clear' is undefined)
4
FAIL Inline StylePropertyMap.clear updates the element inline style styleMap.clear is not a function. (In 'styleMap.clear()', 'styleMap.clear' is undefined)
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/clear.html +40 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/clear.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Inline StylePropertyMap.clear</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-clear">
5
<meta name="assert" content="Test inline StylePropertyMap.clear" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<body>
10
<div id="log"></div>
11
<script>
12
'use strict';
13
14
test(t => {
15
  let styleMap = createInlineStyleMap(t, '');
16
  styleMap.clear();
17
  assert_array_equals([...styleMap], []);
18
}, 'Clearing an empty inline style is a no-op');
19
20
test(t => {
21
  let styleMap = createInlineStyleMap(t, '--foo: auto; width: 10px; transition-duration: 1s, 2s');
22
23
  styleMap.clear();
24
  assert_equals(styleMap.get('--foo'), null,
25
    'Custom properties should be cleared');
26
  assert_equals(styleMap.get('width'), null,
27
    'CSS properties should be cleared');
28
  assert_equals(styleMap.get('transition-duration'), null,
29
    'List-valued properties should be cleared');
30
  assert_array_equals([...styleMap], []);
31
}, 'Can clear an inline style containing properties');
32
33
test(t => {
34
  let [elem, styleMap] = createElementWithInlineStyleMap(t, 'width: 10px;');
35
  styleMap.clear();
36
37
  assert_equals(elem.style.width, '', 'Element inline style should be cleared');
38
}, 'Inline StylePropertyMap.clear updates the element inline style');
39
40
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-expected.txt_sec1
1
2
FAIL Deleting a property not in the inline style is a no-op styleMap.delete is not a function. (In 'styleMap.delete('width')', 'styleMap.delete' is undefined)
3
FAIL Deleting a property in the inline style removes it from the inline style styleMap.delete is not a function. (In 'styleMap.delete('width')', 'styleMap.delete' is undefined)
4
FAIL Deleting a custom property in the inline style removes it from the inline style styleMap.delete is not a function. (In 'styleMap.delete('--Foo')', 'styleMap.delete' is undefined)
5
FAIL Deleting a list-valued property in the inline style removes it from the inline style styleMap.delete is not a function. (In 'styleMap.delete('transition-duration')', 'styleMap.delete' is undefined)
6
FAIL Inline StylePropertyMap.delete is not case-sensitive styleMap.delete is not a function. (In 'styleMap.delete('wIdTh')', 'styleMap.delete' is undefined)
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-invalid-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-invalid-expected.txt_sec1
1
2
PASS Deleting an unsupported property name throws a TypeError
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-invalid.html +18 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-invalid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Inline StylePropertyMap.delete Error Handling</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#delete-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  let styleMap = createInlineStyleMap(t, '');
15
  assert_throws_js(TypeError, () => styleMap.delete('lemon'));
16
}, 'Deleting an unsupported property name throws a TypeError');
17
18
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-shorthand-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-shorthand-expected.txt_sec1
1
2
FAIL Deleting a shorthand property not in the inline style is a no-op styleMap.delete is not a function. (In 'styleMap.delete('margin')', 'styleMap.delete' is undefined)
3
FAIL Deleting a shorthand property in the inline style removes both it and its longhands styleMap.delete is not a function. (In 'styleMap.delete('margin')', 'styleMap.delete' is undefined)
4
FAIL Deleting a longhand property in the inline style removes both it and its shorthand styleMap.delete is not a function. (In 'styleMap.delete('margin-top')', 'styleMap.delete' is undefined)
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-shorthand.html +55 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete-shorthand.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Inline StylePropertyMap.delete() with shorthands</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#delete-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  let [elem, styleMap] = createElementWithInlineStyleMap(t, '');
15
  assert_equals(elem.style.getPropertyValue('margin'), '');
16
  assert_equals(elem.style.getPropertyValue('margin-top'), '');
17
  assert_equals(elem.style.getPropertyValue('margin-left'), '');
18
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '');
19
  assert_equals(elem.style.getPropertyValue('margin-right'), '');
20
21
  styleMap.delete('margin');
22
  assert_equals(elem.style.getPropertyValue('margin'), '');
23
  assert_equals(elem.style.getPropertyValue('margin-top'), '');
24
  assert_equals(elem.style.getPropertyValue('margin-left'), '');
25
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '');
26
  assert_equals(elem.style.getPropertyValue('margin-right'), '');
27
}, 'Deleting a shorthand property not in the inline style is a no-op');
28
29
test(t => {
30
  let [elem, styleMap] = createElementWithInlineStyleMap(t, 'margin: 10px');
31
  assert_not_equals(elem.style.getPropertyValue('margin'), '');
32
33
  styleMap.delete('margin');
34
  assert_equals(elem.style.getPropertyValue('margin'), '');
35
  assert_equals(elem.style.getPropertyValue('margin-top'), '');
36
  assert_equals(elem.style.getPropertyValue('margin-left'), '');
37
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '');
38
  assert_equals(elem.style.getPropertyValue('margin-right'), '');
39
}, 'Deleting a shorthand property in the inline style removes both it and ' +
40
   'its longhands');
41
42
test(t => {
43
  let [elem, styleMap] = createElementWithInlineStyleMap(t, 'margin: 10px');
44
  assert_not_equals(elem.style.getPropertyValue('margin-top'), '');
45
46
  styleMap.delete('margin-top');
47
  assert_equals(elem.style.getPropertyValue('margin'), '');
48
  assert_equals(elem.style.getPropertyValue('margin-top'), '');
49
  assert_equals(elem.style.getPropertyValue('margin-left'), '10px');
50
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '10px');
51
  assert_equals(elem.style.getPropertyValue('margin-right'), '10px');
52
}, 'Deleting a longhand property in the inline style removes both it and ' +
53
   'its shorthand');
54
55
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete.html +56 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/delete.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Inline StylePropertyMap.delete</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#delete-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  let [elem, styleMap] = createElementWithInlineStyleMap(t, '');
15
  assert_equals(elem.style.getPropertyValue('width'), '');
16
17
  styleMap.delete('width');
18
  assert_equals(elem.style.getPropertyValue('width'), '');
19
}, 'Deleting a property not in the inline style is a no-op');
20
21
test(t => {
22
  let [elem, styleMap] = createElementWithInlineStyleMap(t, 'width: 10px');
23
  assert_not_equals(elem.style.getPropertyValue('width'), '');
24
25
  styleMap.delete('width');
26
  assert_equals(elem.style.getPropertyValue('width'), '');
27
}, 'Deleting a property in the inline style removes it from the inline style');
28
29
test(t => {
30
  let [elem, styleMap] = createElementWithInlineStyleMap(t, '--Foo: 10px');
31
  assert_not_equals(elem.style.getPropertyValue('--Foo'), '');
32
33
  styleMap.delete('--Foo');
34
  assert_equals(elem.style.getPropertyValue('--Foo'), '');
35
}, 'Deleting a custom property in the inline style removes it from the ' +
36
   'inline style');
37
38
test(t => {
39
  let [elem, styleMap] = createElementWithInlineStyleMap(t,
40
      'transition-duration: 1s, 2s');
41
  assert_not_equals(elem.style.getPropertyValue('transition-duration'), '');
42
43
  styleMap.delete('transition-duration');
44
  assert_equals(elem.style.getPropertyValue('transition-duration'), '');
45
}, 'Deleting a list-valued property in the inline style removes it from ' +
46
   'the inline style');
47
48
test(t => {
49
  let [elem, styleMap] = createElementWithInlineStyleMap(t, 'width: 10px');
50
  assert_not_equals(elem.style.getPropertyValue('width'), '');
51
52
  styleMap.delete('wIdTh');
53
  assert_equals(elem.style.getPropertyValue('width'), '');
54
}, 'Inline StylePropertyMap.delete is not case-sensitive');
55
56
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-expected.txt +9 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-expected.txt_sec1
1
2
FAIL Getting a custom property not in the inline style returns null assert_equals: expected null but got object ""
3
PASS Getting a valid property not in the inline style returns null
4
PASS Getting a valid property from inline style returns the correct entry
5
PASS Getting a valid custom property from inline style returns the correct entry
6
FAIL Getting a list-valued property from inline style returns only the first value assert_equals: expected "CSSUnitValue" but got "CSSUnparsedValue"
7
PASS Declared StylePropertyMap.get is not case-sensitive
8
PASS Declared StylePropertyMap.get reflects changes in the inline style
9
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-invalid-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-invalid-expected.txt_sec1
1
2
FAIL Calling StylePropertyMap.get with an unsupported property throws a TypeError assert_throws_js: function "() => styleMap.get('lemon')" did not throw
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-invalid.html +18 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-invalid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Inline StylePropertyMap.get Error Handling</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  const styleMap = createInlineStyleMap(t);
15
  assert_throws_js(TypeError, () => styleMap.get('lemon'));
16
}, 'Calling StylePropertyMap.get with an unsupported property throws a TypeError');
17
18
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-shorthand-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-shorthand-expected.txt_sec1
1
2
FAIL Getting an shorthand property set explicitly in inline style returns a base CSSStyleValue assert_not_equals: Shorthand value must not be null got disallowed value null
3
PASS Getting a shorthand property that is partially set in inline style returns null
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-shorthand.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get-shorthand.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Inline StylePropertyMap.get with shorthands</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  const styleMap = createInlineStyleMap(t, 'margin: 1px 2px 3px 4px');
15
  const result = styleMap.get('margin');
16
  assert_not_equals(result, null, 'Shorthand value must not be null');
17
  assert_class_string(result, 'CSSStyleValue',
18
    'Shorthand value must be a base CSSStyleValue');
19
}, 'Getting an shorthand property set explicitly in inline style returns ' +
20
   'a base CSSStyleValue');
21
22
test(t => {
23
  const styleMap = createInlineStyleMap(t, 'margin-top: 1px');
24
  const result = styleMap.get('margin');
25
  assert_equals(result, null,
26
    'Shorthand value must be null as it is not explicitly set');
27
}, 'Getting a shorthand property that is partially set in inline style ' +
28
   'returns null');
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get.html +56 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Inline StylePropertyMap.get</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
5
<meta name="assert" content="Test inline StylePropertyMap.get" />
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<body>
10
<div id="log">
11
<script>
12
'use strict';
13
14
test(t => {
15
  const styleMap = createInlineStyleMap(t, '--foo: auto');
16
  assert_equals(styleMap.get('--Foo'), null);
17
}, 'Getting a custom property not in the inline style returns null');
18
19
test(t => {
20
  const styleMap = createInlineStyleMap(t, '');
21
  assert_equals(styleMap.get('width'), null);
22
}, 'Getting a valid property not in the inline style returns null');
23
24
test(t => {
25
  const styleMap = createInlineStyleMap(t, 'width: 10px; height: 20px');
26
  assert_style_value_equals(styleMap.get('width'), new CSSUnitValue(10, 'px'));
27
}, 'Getting a valid property from inline style returns the correct entry');
28
29
test(t => {
30
  const styleMap = createInlineStyleMap(t, '--foo: auto; --bar: 10px');
31
  assert_style_value_equals(styleMap.get('--foo'),
32
      new CSSUnparsedValue([' auto']));
33
}, 'Getting a valid custom property from inline style returns the ' +
34
   'correct entry');
35
36
test(t => {
37
  const styleMap = createInlineStyleMap(t,
38
      'width: 10px; transition-duration: 1s, 2s; height: 10px;');
39
  assert_style_value_equals(styleMap.get('transition-duration'),
40
      new CSSUnitValue(1, 's'));
41
}, 'Getting a list-valued property from inline style returns only ' +
42
   'the first value');
43
44
test(t => {
45
  const styleMap = createInlineStyleMap(t, 'height: 20px; width: 10px;');
46
  assert_style_value_equals(styleMap.get('wIdTh'), new CSSUnitValue(10, 'px'));
47
}, 'Declared StylePropertyMap.get is not case-sensitive');
48
49
test(t => {
50
  const [elem, styleMap] = createElementWithInlineStyleMap(t, 'width: 10px;');
51
  assert_style_value_equals(styleMap.get('width'), new CSSUnitValue(10, 'px'));
52
  elem.style.width = '20px';
53
  assert_style_value_equals(styleMap.get('width'), new CSSUnitValue(20, 'px'));
54
}, 'Declared StylePropertyMap.get reflects changes in the inline style');
55
56
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll-shorthand-expected.txt +4 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll-shorthand-expected.txt_sec1
1
2
FAIL StylePropertyMap.getAll() with a shorthand property set explicitly in inline style returns a base CSSStyleValue styleMap.getAll is not a function. (In 'styleMap.getAll('margin')', 'styleMap.getAll' is undefined)
3
FAIL StylePropertyMap.getAll() with a shorthand property that is partially in inline style returns empty list styleMap.getAll is not a function. (In 'styleMap.getAll('margin')', 'styleMap.getAll' is undefined)
4
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll-shorthand.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll-shorthand.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Inline StylePropertyMap.getAll with shorthands</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-getall">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<div id="log">
10
<script>
11
'use strict';
12
13
test(t => {
14
  const styleMap = createInlineStyleMap(t, 'margin: 1px 2px 3px 4px');
15
  const result = styleMap.getAll('margin');
16
  assert_not_equals(result, null, 'Result must not be null');
17
  assert_equals(result.length, 1, 'Result must be a list with one item');
18
  assert_class_string(result[0], 'CSSStyleValue',
19
    'Only item in result must be a base CSSStyleValue');
20
}, 'StylePropertyMap.getAll() with a shorthand property set explicitly in ' +
21
   'inline style returns a base CSSStyleValue');
22
23
test(t => {
24
  const styleMap = createInlineStyleMap(t, 'margin-top: 1px');
25
  const result = styleMap.getAll('margin');
26
  assert_equals(result.length, 0, 'Result must be an empty list');
27
}, 'StylePropertyMap.getAll() with a shorthand property that is partially ' +
28
   'in inline style returns empty list');
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll.tentative-expected.txt +9 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll.tentative-expected.txt_sec1
1
2
PASS Calling StylePropertyMap.getAll with an unsupported property throws a TypeError
3
FAIL Calling StylePropertyMap.getAll with a property not in the property model returns an empty list styleMap.getAll is not a function. (In 'styleMap.getAll('height')', 'styleMap.getAll' is undefined)
4
FAIL Calling StylePropertyMap.getAll with a custom property not in the property model returns an empty list styleMap.getAll is not a function. (In 'styleMap.getAll('--Foo')', 'styleMap.getAll' is undefined)
5
FAIL Calling StylePropertyMap.getAll with a valid property returns a single element list with the correct entry styleMap.getAll is not a function. (In 'styleMap.getAll('width')', 'styleMap.getAll' is undefined)
6
FAIL StylePropertyMap.getAll is case-insensitive styleMap.getAll is not a function. (In 'styleMap.getAll('wIdTh')', 'styleMap.getAll' is undefined)
7
FAIL Calling StylePropertyMap.getAll with a valid custom property returns a single element list with the correct entry styleMap.getAll is not a function. (In 'styleMap.getAll('--foo')', 'styleMap.getAll' is undefined)
8
FAIL Calling StylePropertyMap.getAll with a list-valued property returns all the values styleMap.getAll is not a function. (In 'styleMap.getAll('transition-duration')', 'styleMap.getAll' is undefined)
9
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll.tentative.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap.getAll tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(t => {
13
  const styleMap = createInlineStyleMap(t);
14
  assert_throws_js(TypeError, () => styleMap.getAll('lemon'));
15
}, 'Calling StylePropertyMap.getAll with an unsupported property throws a TypeError');
16
17
test(t => {
18
  const styleMap = createInlineStyleMap(t);
19
  assert_style_value_array_equals(styleMap.getAll('height'), []);
20
}, 'Calling StylePropertyMap.getAll with a property not in the property model returns an empty list');
21
22
test(t => {
23
  const styleMap = createInlineStyleMap(t, '--foo: auto');
24
  assert_style_value_array_equals(styleMap.getAll('--Foo'), []);
25
}, 'Calling StylePropertyMap.getAll with a custom property not in the property model returns an empty list');
26
27
test(t => {
28
  const styleMap = createInlineStyleMap(t, 'width: 10px; height: 20px');
29
  assert_style_value_array_equals(styleMap.getAll('width'), [CSS.px(10)]);
30
}, 'Calling StylePropertyMap.getAll with a valid property returns a single element list with the correct entry');
31
32
test(t => {
33
  const styleMap = createInlineStyleMap(t, 'height: 20px; width: 10px');
34
  assert_style_value_array_equals(styleMap.getAll('wIdTh'), [CSS.px(10)]);
35
}, 'StylePropertyMap.getAll is case-insensitive');
36
37
test(t => {
38
  const styleMap = createInlineStyleMap(t, '--foo: auto; --bar: 10px');
39
  assert_style_value_array_equals(styleMap.getAll('--foo'), [new CSSUnparsedValue([' auto'])]);
40
}, 'Calling StylePropertyMap.getAll with a valid custom property returns a single element list with the correct entry');
41
42
test(t => {
43
  const styleMap = createInlineStyleMap(t, 'width: 10px; transition-duration: 1s, 2s; height: 20px');
44
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2)]);
45
}, 'Calling StylePropertyMap.getAll with a list-valued property returns all the values');
46
47
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/has.tentative-expected.txt +10 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/has.tentative-expected.txt_sec1
1
2
PASS Calling StylePropertyMap.has with an unsupported property throws a TypeError
3
FAIL Calling StylePropertyMap.has with a property not in the property model returns false styleMap.has is not a function. (In 'styleMap.has(property)', 'styleMap.has' is undefined)
4
FAIL Calling StylePropertyMap.has with a custom property not in the property model returns false styleMap.has is not a function. (In 'styleMap.has(property)', 'styleMap.has' is undefined)
5
FAIL Calling StylePropertyMap.has with a valid property in mixed case returns false styleMap.has is not a function. (In 'styleMap.has(property)', 'styleMap.has' is undefined)
6
FAIL Calling StylePropertyMap.has with a valid property returns true styleMap.has is not a function. (In 'styleMap.has(property)', 'styleMap.has' is undefined)
7
FAIL Calling StylePropertyMap.has with a valid property in mixed case returns true styleMap.has is not a function. (In 'styleMap.has(property)', 'styleMap.has' is undefined)
8
FAIL Calling StylePropertyMap.has with a valid custom property returns true styleMap.has is not a function. (In 'styleMap.has(property)', 'styleMap.has' is undefined)
9
FAIL Calling StylePropertyMap.has with a valid list-valued property returns true styleMap.has is not a function. (In 'styleMap.has(property)', 'styleMap.has' is undefined)
10
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/has.tentative.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/has.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap.has tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#check-if-stylepropertymap-has-a-property">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(t => {
13
  const styleMap = createInlineStyleMap(t);
14
  assert_throws_js(TypeError, () => styleMap.has('lemon'));
15
}, 'Calling StylePropertyMap.has with an unsupported property throws a TypeError');
16
17
const gTestCases = [
18
  { property: 'height', expected: false, desc: 'a property not in the property model' },
19
  { property: '--Foo', expected: false, desc: 'a custom property not in the property model' },
20
  { property: 'margin', expected: false, desc: 'a valid property in mixed case' },
21
  { property: 'width', expected: true, desc: 'a valid property' },
22
  { property: 'wIdTh', expected: true, desc: 'a valid property in mixed case' },
23
  { property: '--foo', expected: true, desc: 'a valid custom property' },
24
  { property: 'transition-duration', expected: true, desc: 'a valid list-valued property' },
25
];
26
27
for (const {property, expected, desc} of gTestCases) {
28
  test(t => {
29
    const styleMap = createInlineStyleMap(t, 'width: 10px; --foo: auto; transition-duration: 1s, 2s');
30
    assert_equals(styleMap.has(property), expected);
31
  }, 'Calling StylePropertyMap.has with ' + desc + ' returns ' + expected);
32
}
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/iterable.tentative-expected.txt +7 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/iterable.tentative-expected.txt_sec1
1
2
FAIL Iterating over an empty StylePropertyMap gives a zero-length array styleMap.entries is not a function. (In 'styleMap.entries()', 'styleMap.entries' is undefined)
3
FAIL StylePropertyMap iterates properties in inline style order styleMap.keys is not a function. (In 'styleMap.keys()', 'styleMap.keys' is undefined)
4
FAIL StylePropertyMap iterator returns CSS properties with the correct CSSStyleValue styleMap.keys is not a function. (In 'styleMap.keys()', 'styleMap.keys' is undefined)
5
FAIL StylePropertyMap iterator returns list-valued properties with the correct CSSStyleValue styleMap.keys is not a function. (In 'styleMap.keys()', 'styleMap.keys' is undefined)
6
FAIL StylePropertyMap iterator returns custom properties with the correct CSSStyleValue styleMap.keys is not a function. (In 'styleMap.keys()', 'styleMap.keys' is undefined)
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/iterable.tentative.html +50 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/iterable.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap iterable tests</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#the-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
test(t => {
13
  const styleMap = createInlineStyleMap(t, '');
14
  assert_array_equals([...styleMap.entries()], []);
15
}, 'Iterating over an empty StylePropertyMap gives a zero-length array');
16
17
test(t => {
18
  const styleMap = createInlineStyleMap(t, '--A: A; width: 10px; --C: C; transition-duration: 1s, 2s; color: red; --B: B;');
19
  assert_array_equals([...styleMap.keys()],
20
    ['--A', 'width', '--C', 'transition-duration', 'color', '--B']);
21
}, 'StylePropertyMap iterates properties in inline style order');
22
23
test(t => {
24
  const styleMap = createInlineStyleMap(t, 'width: 10px; height: 5px');
25
  const keys = [...styleMap.keys()], values = [...styleMap.values()];
26
27
  assert_array_equals(keys, ['width', 'height']);
28
  assert_style_value_array_equals(values[0], [CSS.px(10)]);
29
  assert_style_value_array_equals(values[1], [CSS.px(5)]);
30
}, 'StylePropertyMap iterator returns CSS properties with the correct CSSStyleValue');
31
32
test(t => {
33
  const styleMap = createInlineStyleMap(t, 'transition-duration: 1s, 2s');
34
  const keys = [...styleMap.keys()], values = [...styleMap.values()];
35
36
  assert_array_equals(keys, ['transition-duration']);
37
  assert_style_value_array_equals(values[0], [CSS.s(1), CSS.s(2)]);
38
}, 'StylePropertyMap iterator returns list-valued properties with the correct CSSStyleValue');
39
40
test(t => {
41
  const styleMap = createInlineStyleMap(t, '--A: A; --B: B; --C: C');
42
  const keys = [...styleMap.keys()], values = [...styleMap.values()];
43
44
  assert_array_equals(keys, ['--A', '--B', '--C']);
45
  assert_style_value_array_equals(values[0], [new CSSUnparsedValue([' A'])]);
46
  assert_style_value_array_equals(values[1], [new CSSUnparsedValue([' B'])]);
47
  assert_style_value_array_equals(values[2], [new CSSUnparsedValue([' C'])]);
48
}, 'StylePropertyMap iterator returns custom properties with the correct CSSStyleValue');
49
50
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set-shorthand-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set-shorthand-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.deg is not a function. (In 'CSS.deg(0)', 'CSS.deg' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.deg is not a function. (In 'CSS.deg(0)', 'CSS.deg' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set-shorthand.html +50 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set-shorthand.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>Inline StylePropertyMap.set() with shorthands</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#set-a-value-on-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
const gInvalidTestCases = [
13
  { property: 'margin', values: [CSS.deg(0)], desc: 'an invalid CSSStyleValue' },
14
  { property: 'margin', values: ['10s'], desc: 'an invalid String' },
15
];
16
17
for (const {property, values, desc} of gInvalidTestCases) {
18
  test(t => {
19
    let styleMap = createInlineStyleMap(t, '');
20
    assert_throws_js(TypeError, () => styleMap.set(property, ...values));
21
  }, 'Setting a shorthand with ' + desc + ' on inline style throws TypeError');
22
}
23
24
test(t => {
25
  let [elem, styleMap] = createElementWithInlineStyleMap(t, 'margin: 1px 2px 3px 4px');
26
27
  const result = styleMap.get('margin');
28
  elem.style.margin = '';
29
  styleMap.set('margin', result);
30
31
  assert_equals(elem.style.getPropertyValue('margin'), '1px 2px 3px 4px');
32
  assert_equals(elem.style.getPropertyValue('margin-top'), '1px');
33
  assert_equals(elem.style.getPropertyValue('margin-right'), '2px');
34
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '3px');
35
  assert_equals(elem.style.getPropertyValue('margin-left'), '4px');
36
}, 'Setting a shorthand with a CSSStyleValue updates inline style');
37
38
test(t => {
39
  let [elem, styleMap] = createElementWithInlineStyleMap(t);
40
41
  styleMap.set('margin', '1px 2px 3px 4px');
42
43
  assert_equals(elem.style.getPropertyValue('margin'), '1px 2px 3px 4px');
44
  assert_equals(elem.style.getPropertyValue('margin-top'), '1px');
45
  assert_equals(elem.style.getPropertyValue('margin-right'), '2px');
46
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '3px');
47
  assert_equals(elem.style.getPropertyValue('margin-left'), '4px');
48
}, 'Setting a shorthand with a string updates inline style');
49
50
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set.tentative-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set.tentative-expected.txt_sec1
1
CONSOLE MESSAGE: TypeError: CSS.deg is not a function. (In 'CSS.deg(0)', 'CSS.deg' is undefined)
2
3
Harness Error (FAIL), message = TypeError: CSS.deg is not a function. (In 'CSS.deg(0)', 'CSS.deg' is undefined)
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set.tentative.html +98 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set.tentative.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>StylePropertyMap.set</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#set-a-value-on-a-stylepropertymap">
5
<script src="/resources/testharness.js"></script>
6
<script src="/resources/testharnessreport.js"></script>
7
<script src="../../resources/testhelper.js"></script>
8
<body>
9
<script>
10
'use strict';
11
12
const gInvalidTestCases = [
13
  { property: 'lemon', values: ['ade'], desc: 'an unsupported property name' },
14
  { property: null, values: ['foo'], desc: 'an null property name' },
15
  { property: 'src', values: [new CSSUnparsedValue(['foo'])], desc: 'a descriptor' },
16
  { property: 'width', values: [CSS.deg(0)], desc: 'an invalid CSSStyleValue' },
17
  { property: 'width', values: ['10s'], desc: 'an invalid String' },
18
];
19
20
for (const {property, values, desc} of gInvalidTestCases) {
21
  test(t => {
22
    let styleMap = createInlineStyleMap(t, '');
23
    assert_throws_js(TypeError, () => styleMap.set(property, ...values));
24
  }, 'Setting a StylePropertyMap with ' + desc + ' throws TypeError');
25
}
26
27
test(t => {
28
  let styleMap = createInlineStyleMap(t, '');
29
  assert_throws_js(TypeError, () => styleMap.set('width', CSS.px(10), CSS.px(10)));
30
}, 'Setting a non list-valued property with multiple arguments throws TypeError');
31
32
test(t => {
33
  let styleMap = createInlineStyleMap(t, '');
34
  assert_throws_js(TypeError, () => styleMap.set('width', '1s, 2s'));
35
}, 'Setting a non list-valued property with list-valued string throws TypeError');
36
37
test(t => {
38
  let styleMap = createInlineStyleMap(t, '');
39
  assert_throws_js(TypeError, () => {
40
    styleMap.set('transition-duration', '1s', new CSSUnparsedValue([]));
41
  });
42
}, 'Setting a list-valued property with a CSSUnparsedValue and other ' +
43
   'values throws TypeError');
44
45
test(t => {
46
  let styleMap = createInlineStyleMap(t, '');
47
  assert_throws_js(TypeError, () => {
48
    styleMap.set('transition-duration', '1s', 'var(--A)');
49
  });
50
}, 'Setting a list-valued property with a var ref() and other values ' +
51
   'throws TypeError');
52
53
test(t => {
54
  let styleMap = createInlineStyleMap(t, '');
55
56
  styleMap.set('width', CSS.px(10));
57
  assert_style_value_array_equals(styleMap.get('width'), CSS.px(10));
58
59
  styleMap.set('width', '20px');
60
  assert_style_value_array_equals(styleMap.get('width'), CSS.px(20));
61
}, 'Setting a property with CSSStyleValue or String updates its value');
62
63
test(t => {
64
  let styleMap = createInlineStyleMap(t, '');
65
66
  styleMap.set('transition-duration', CSS.s(1), '2s');
67
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2)]);
68
69
  styleMap.set('transition-duration', '3s', CSS.s(4));
70
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(3), CSS.s(4)]);
71
}, 'Setting a list-valued property with CSSStyleValue or String updates its values');
72
73
test(t => {
74
  let styleMap = createInlineStyleMap(t, '');
75
76
  styleMap.set('transition-duration', '1s, 2s');
77
  assert_style_value_array_equals(styleMap.getAll('transition-duration'), [CSS.s(1), CSS.s(2)]);
78
}, 'Setting a list-valued property with a list-valued string updates its value');
79
80
test(t => {
81
  let styleMap = createInlineStyleMap(t, '');
82
83
  styleMap.set('--foo', new CSSUnparsedValue(['auto']));
84
  assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['auto']));
85
86
  styleMap.set('--foo', '20px');
87
  assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['20px']));
88
}, 'Setting a custom property with CSSStyleValue or String updates its value');
89
90
test(t => {
91
  let styleMap = createInlineStyleMap(t, 'transition-duration: 5s, 10s');
92
93
  styleMap.set('tRaNsItIoN-dUrAtIoN', '1s', CSS.s(2));
94
  const result = styleMap.getAll('transition-duration');
95
  assert_style_value_array_equals(result, [CSS.s(1), CSS.s(2)]);
96
}, 'StylePropertyMap.set is case-insensitive');
97
98
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/accent-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/accent-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/accent-color.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/accent-color.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>'accent-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('accent-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  },
22
  {
23
    syntax: 'auto',
24
    // computes to a <color>, which is not supported in level 1
25
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
26
  }
27
]);
28
29
// <color>s are not supported in level 1
30
runUnsupportedPropertyTests('accent-color', [
31
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
32
  'transparent'
33
]);
34
35
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/alignment-baseline-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/alignment-baseline-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/alignment-baseline.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/alignment-baseline.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'alignment-baseline' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('alignment-baseline', [
17
  { syntax: 'baseline' },
18
  { syntax: 'text-bottom' },
19
  { syntax: 'alphabetic' },
20
  { syntax: 'ideographic' },
21
  { syntax: 'middle' },
22
  { syntax: 'central' },
23
  { syntax: 'mathematical' },
24
  { syntax: 'text-top' },
25
  { syntax: 'bottom' },
26
  { syntax: 'center' },
27
  { syntax: 'top' },
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/all-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/all-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/all.html +18 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/all.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'all' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('all', []);
17
18
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-delay-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-delay-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-delay.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-delay.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'animation-delay' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('animation-delay', [
17
  { syntax: '<time>' }
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-direction-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-direction-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-direction.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-direction.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'animation-direction' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('animation-direction', [
17
  { syntax: 'normal' },
18
  { syntax: 'reverse' },
19
  { syntax: 'alternate-reverse' },
20
  { syntax: 'alternate' },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-duration-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-duration-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-duration.html +19 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-duration.html_sec1
1
<meta charset="utf-8">
2
<title>'animation-duration' property</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<script src="resources/testsuite.js"></script>
10
<body>
11
<div id="log"></div>
12
<script>
13
'use strict';
14
15
runListValuedPropertyTests('animation-duration', [
16
  { syntax: '<time>' },
17
]);
18
19
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-fill-mode-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-fill-mode-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-fill-mode.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-fill-mode.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'animation-fill-mode' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('animation-fill-mode', [
17
  { syntax: 'none' },
18
  { syntax: 'forwards' },
19
  { syntax: 'backwards' },
20
  { syntax: 'both' },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-iteration-count-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-iteration-count-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-iteration-count.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-iteration-count.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'animation-iteration-count' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('animation-iteration-count', [
17
  { syntax: 'infinite' },
18
  { syntax: '<number>' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-name-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-name-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-name.html +27 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-name.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'animation-name' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('animation-name', [
17
  { syntax: 'none' },
18
  // FIXME: This should be <custom-ident>, but the test harness doesn't
19
  // currently support it.
20
  { syntax: 'custom-ident' },
21
]);
22
23
runUnsupportedPropertyTests('animation-name', [
24
  '"foo"'
25
]);
26
27
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-play-state-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-play-state-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-play-state.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-play-state.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'animation-play-state' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('animation-play-state', [
17
  { syntax: 'running' },
18
  { syntax: 'paused' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-timing-function-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-timing-function-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-timing-function.html +40 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation-timing-function.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'animation-timing-function' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('animation-timing-function', [
17
  { syntax: 'linear' },
18
  { syntax: 'ease' },
19
  { syntax: 'ease-in' },
20
  { syntax: 'ease-out' },
21
  { syntax: 'ease-in-out' },
22
  {
23
    syntax: 'step-start',
24
    computed: (_, result) => {
25
      assert_equals(result.toString(), 'steps(1, start)');
26
    }
27
  },
28
  {
29
    syntax: 'step-end',
30
    computed: (_, result) => {
31
      assert_equals(result.toString(), 'steps(1)');
32
    }
33
  },
34
]);
35
36
runUnsupportedPropertyTests('animation-timing-function', [
37
  'cubic-bezier(0.1, 0.7, 1.0, 0.1)', 'steps(4, end)'
38
]);
39
40
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/animation.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'animation' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('animation', [
17
  'slidein 3s ease-in 1s infinite reverse both running',
18
  'slidein .5s linear 1s infinite alternate'
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backdrop-filter-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backdrop-filter-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backdrop-filter.html +25 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backdrop-filter.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'backdrop-filter' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('backdrop-filter', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('filter', [
21
  'blur(2px)',
22
  'url(filters.svg) blur(4px) saturate(150%)',
23
]);
24
25
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backface-visibility-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backface-visibility-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backface-visibility.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/backface-visibility.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'backface-visibility' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('backface-visibility', [
17
  { syntax: 'visible' },
18
  { syntax: 'hidden' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-attachment-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-attachment-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-attachment.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-attachment.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'background-attachment' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('background-attachment', [
17
  { syntax: 'scroll' },
18
  { syntax: 'fixed' },
19
  { syntax: 'local' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-blend-mode-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-blend-mode-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-blend-mode.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-blend-mode.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'background-blend-mode' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('background-blend-mode', [
17
  { syntax: 'normal' },
18
  { syntax: 'multiply' },
19
  { syntax: 'screen' },
20
  { syntax: 'overlay' },
21
  { syntax: 'darken' },
22
  { syntax: 'lighten' },
23
  { syntax: 'color-dodge' },
24
  { syntax: 'color-burn' },
25
  { syntax: 'hard-light' },
26
  { syntax: 'soft-light' },
27
  { syntax: 'difference' },
28
  { syntax: 'exclusion' },
29
  { syntax: 'hue' },
30
  { syntax: 'saturation' },
31
  { syntax: 'color' },
32
  { syntax: 'luminosity' },
33
]);
34
35
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-clip-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-clip-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-clip.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-clip.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'background-clip' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('background-clip', [
17
  { syntax: 'border-box' },
18
  { syntax: 'padding-box' },
19
  { syntax: 'content-box' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-color.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'background-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('background-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  }
22
]);
23
24
// <color>s are not supported in level 1
25
runUnsupportedPropertyTests('background-color', [
26
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
27
  'transparent'
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-image-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-image-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-image.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-image.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'background-image' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('background-image', [
17
  { syntax: 'none' },
18
  { syntax: '<image>' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-origin-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-origin-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-origin.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-origin.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'background-origin' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('background-origin', [
17
  { syntax: 'border-box' },
18
  { syntax: 'padding-box' },
19
  { syntax: 'content-box' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-position-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-position-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-position.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-position.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'background-position' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('background-position', [
17
  { syntax: '<position>' },
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-repeat-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-repeat-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-repeat.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-repeat.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'background-repeat' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('background-position', [
17
  { syntax: 'repeat-x' },
18
  { syntax: 'repeat-y' },
19
  { syntax: 'repeat' },
20
  { syntax: 'space' },
21
  { syntax: 'round' },
22
  { syntax: 'no-repeat' },
23
]);
24
25
runUnsupportedPropertyTests('background-position', [
26
  'space repeat'
27
]);
28
29
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-size-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-size-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-size.html +28 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-size.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'background-size' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('background-size', [
17
  { syntax: '<length>' },
18
  { syntax: '<percentage>' },
19
  { syntax: 'auto' },
20
  { syntax: 'cover' },
21
  { syntax: 'contain' },
22
]);
23
24
runUnsupportedPropertyTests('background-size', [
25
  '200px 100px'
26
]);
27
28
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'background' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('background', []);
17
runUnsupportedPropertyTests('background', [
18
  'green', 'content-box radial-gradient(crimson, skyblue)',
19
  'no-repeat url("http://foo.com")',
20
  'left 5% / 15% 60% repeat-x url("http://foo.com")',
21
  'center / contain no-repeat url("foo.com"), red'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/baseline-shift-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/baseline-shift-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/baseline-shift.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/baseline-shift.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'baseline-shift' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('baseline-shift', [
17
  { syntax: 'sub' },
18
  { syntax: 'super' },
19
  { syntax: '<percentage>' },
20
  { syntax: '<length>' }
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/block-size-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/block-size-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/block-size.html +51 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/block-size.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'block-size' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('block-size', [
17
  { syntax: 'auto' },
18
  {
19
    syntax: '<percentage>',
20
    specified: assert_is_equal_with_range_handling
21
  },
22
  {
23
    syntax: '<length>',
24
    specified: assert_is_equal_with_range_handling
25
  },
26
]);
27
28
runPropertyTests('min-block-size', [
29
  {
30
    syntax: '<percentage>',
31
    specified: assert_is_equal_with_range_handling
32
  },
33
  {
34
    syntax: '<length>',
35
    specified: assert_is_equal_with_range_handling
36
  },
37
]);
38
39
runPropertyTests('max-block-size', [
40
  { syntax: 'none' },
41
  {
42
    syntax: '<percentage>',
43
    specified: assert_is_equal_with_range_handling
44
  },
45
  {
46
    syntax: '<length>',
47
    specified: assert_is_equal_with_range_handling
48
  },
49
]);
50
51
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-collapse-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-collapse-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-collapse.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-collapse.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'border-collapse' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('border-collapse', [
17
  { syntax: 'separate' },
18
  { syntax: 'collapse' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-color.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'border-color' properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const prefix of ['top', 'left', 'right', 'bottom']) {
17
  runPropertyTests(`border-${prefix}-color`, [
18
    {
19
      syntax: 'currentcolor',
20
      // computes to a <color>, which is not supported in level 1
21
      computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
22
    }
23
  ]);
24
25
  // <color>s are not supported in level 1
26
  runUnsupportedPropertyTests(`border-${prefix}-color`, [
27
    'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
28
    'transparent'
29
  ]);
30
}
31
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-outset-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-outset-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-outset.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-outset.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'border-image-outset' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('border-image-outset', [
17
  // Computed value is always four values, which are not supported in
18
  // Typed OM level 1.
19
  {
20
    syntax: '<length>',
21
    computed: (_, result) => assert_is_unsupported(result)
22
  },
23
  {
24
    syntax: '<number>',
25
    computed: (_, result) => assert_is_unsupported(result)
26
  },
27
]);
28
29
runUnsupportedPropertyTests('border-image-outset', [
30
  '1 1.2', '30px 2 45px', '7px 12px 14px 5px'
31
]);
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-repeat-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-repeat-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-repeat.html +41 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-repeat.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'border-image-repeat' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('border-image-repeat', [
17
  // Computed value is always a pair of values, which are not supported in
18
  // Typed OM level 1.
19
  {
20
    syntax: 'stretch',
21
    computed: (_, result) => assert_is_unsupported(result)
22
  },
23
  {
24
    syntax: 'repeat',
25
    computed: (_, result) => assert_is_unsupported(result)
26
  },
27
  {
28
    syntax: 'round',
29
    computed: (_, result) => assert_is_unsupported(result)
30
  },
31
  {
32
    syntax: 'space',
33
    computed: (_, result) => assert_is_unsupported(result)
34
  },
35
]);
36
37
runUnsupportedPropertyTests('border-image-repeat', [
38
  'stretch repeat', 'round space'
39
]);
40
41
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-slice-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-slice-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-slice.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-slice.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'border-image-slice' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('border-image-slice', [
17
  // Computed value is always four values, which are not supported in
18
  // Typed OM level 1.
19
  {
20
    syntax: '<number>',
21
    computed: (_, result) => assert_is_unsupported(result)
22
  },
23
  {
24
    syntax: '<percentage>',
25
    computed: (_, result) => assert_is_unsupported(result)
26
  },
27
]);
28
29
runUnsupportedPropertyTests('border-image-slice', [
30
  '30 fill', '30 40 50', '30 40 50 60 fill'
31
]);
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-source-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-source-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-source.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-source.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'border-image-source' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('border-image-source', [
17
  { syntax: 'none' },
18
  { syntax: '<image>' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-width-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-width-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-width.html +41 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-width.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'border-image-width' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('border-image-width', [
17
  // Computed value is always four values, which are not supported in
18
  // Typed OM level 1.
19
  {
20
    syntax: '<length>',
21
    computed: (_, result) => assert_is_unsupported(result)
22
  },
23
  {
24
    syntax: '<percentage>',
25
    computed: (_, result) => assert_is_unsupported(result)
26
  },
27
  {
28
    syntax: '<number>',
29
    computed: (_, result) => assert_is_unsupported(result)
30
  },
31
  {
32
    syntax: 'auto',
33
    computed: (_, result) => assert_is_unsupported(result)
34
  },
35
]);
36
37
runUnsupportedPropertyTests('border-image-width', [
38
  '2em 3em', '5% 15% 10%', '5% 2em 10% auto'
39
]);
40
41
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-radius-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-radius-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-radius.html +36 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-radius.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>border radius properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const suffix of ['top-left', 'top-right', 'bottom-left', 'bottom-right']) {
17
  // Computed value is always a pair of values, which are not supported in
18
  // Typed OM level 1.
19
  runPropertyTests('border-' + suffix + '-radius', [
20
    {
21
      syntax: '<length>',
22
      computed: (_, result) => assert_is_unsupported(result)
23
    },
24
    {
25
      syntax: '<percentage>',
26
      computed: (_, result) => assert_is_unsupported(result)
27
    },
28
  ]);
29
}
30
31
// shorthand
32
runUnsupportedPropertyTests('border-radius', [
33
  '30px', '25% 10%', '10% / 50%', '50% 20% / 10% 40%'
34
]);
35
36
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-style-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-style-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-style.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-style.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>border style properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const suffix of ['top', 'left', 'right', 'bottom']) {
17
  runPropertyTests('border-' + suffix + '-style', [
18
    { syntax: 'none' },
19
    { syntax: 'solid' },
20
    // and other keywords
21
  ]);
22
}
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-width-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-width-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-width.html +44 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-width.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>border width properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
function assert_is_zero_px(result) {
17
  assert_style_value_equals(result, new CSSUnitValue(0, 'px'));
18
}
19
20
for (const suffix of ['top', 'left', 'right', 'bottom']) {
21
  runPropertyTests('border-' + suffix + '-width', [
22
    // Computed value is 0 when border-style is 'none'.
23
    // FIXME: Add separate test where border-style is not 'none' or 'hidden'.
24
    {
25
      syntax: 'thin',
26
      computed: (_, result) => assert_is_zero_px(result)
27
    },
28
    {
29
      syntax: 'medium',
30
      computed: (_, result) => assert_is_zero_px(result)
31
    },
32
    {
33
      syntax: 'thick',
34
      computed: (_, result) => assert_is_zero_px(result)
35
    },
36
    {
37
      syntax: '<length>',
38
      specified: assert_is_equal_with_range_handling,
39
      computed: (_, result) => assert_is_zero_px(result)
40
    },
41
  ]);
42
}
43
44
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/bottom-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/bottom-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/bottom.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/bottom.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'bottom' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('bottom', [
17
  { syntax: 'auto' },
18
  { syntax: '<percentage>' },
19
  { syntax: '<length>' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-shadow-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-shadow-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-shadow.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-shadow.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'box-shadow' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('box-shadow', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('box-shadow', [
21
  '10px 5px 5px red',
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-sizing-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-sizing-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-sizing.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/box-sizing.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'box-sizing' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('box-sizing', [
17
  { syntax: 'content-box'},
18
  { syntax: 'border-box' }
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/break-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/break-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/break.html +41 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/break.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'break' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const suffix of ['after', 'before']) {
17
  runPropertyTests('break-' + suffix, [
18
    { syntax: 'auto' },
19
    { syntax: 'avoid' },
20
    { syntax: 'avoid-column' },
21
    { syntax: 'avoid-page' },
22
    { syntax: 'avoid-region' },
23
    { syntax: 'column' },
24
    { syntax: 'left' },
25
    { syntax: 'page' },
26
    { syntax: 'recto' },
27
    { syntax: 'region' },
28
    { syntax: 'right' },
29
    { syntax: 'verso' },
30
  ]);
31
}
32
33
runPropertyTests('break-inside', [
34
    { syntax: 'auto' },
35
    { syntax: 'avoid' },
36
    { syntax: 'avoid-column' },
37
    { syntax: 'avoid-page' },
38
    { syntax: 'avoid-region' },
39
  ]);
40
41
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caption-side-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caption-side-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caption-side.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caption-side.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'caption-side' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('caption-side', [
17
  { syntax: 'top' },
18
  { syntax: 'bottom' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caret-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caret-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caret-color.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/caret-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'caret-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('caret-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  },
22
  {
23
    syntax: 'auto',
24
    // computes to a <color>, which is not supported in level 1
25
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
26
  }
27
]);
28
29
// <color>s are not supported in level 1
30
runUnsupportedPropertyTests('caret-color', [
31
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
32
  'transparent'
33
]);
34
35
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/center-coordinate-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/center-coordinate-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/center-coordinate.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/center-coordinate.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'center-coordinate' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('cx', [
17
  { syntax: '<percentage>' },
18
  { syntax: '<length>' },
19
]);
20
21
runPropertyTests('cy', [
22
  { syntax: '<percentage>' },
23
  { syntax: '<length>' },
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clear-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clear-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clear.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clear.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'clear' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('clear', [
17
  { syntax: 'none' },
18
  { syntax: 'left' },
19
  { syntax: 'right' },
20
  { syntax: 'both' },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-path-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-path-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-path.html +32 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-path.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'clip-path' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('clip-path', [
17
  { syntax: 'none' },
18
  { syntax: 'fill-box' },
19
  { syntax: 'stroke-box' },
20
  { syntax: 'view-box' },
21
  { syntax: 'margin-box' },
22
  { syntax: 'border-box' },
23
  { syntax: 'padding-box' },
24
  { syntax: 'content-box' },
25
  { syntax: '<url>' },
26
]);
27
28
runUnsupportedPropertyTests('clip', [
29
  'inset(22% 12% 15px 35px)',
30
]);
31
32
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-rule-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-rule-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-rule.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip-rule.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'clip-rule' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('clip-rule', [
17
  { syntax: 'nonzero' },
18
  { syntax: 'evenodd' }
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/clip.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'clip' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('clip', [
17
  { syntax: 'auto' }
18
]);
19
20
runUnsupportedPropertyTests('clip', [
21
  'rect(0px, 1px, 2px, 3px)'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color-interpolation-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color-interpolation-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color-interpolation.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color-interpolation.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'color-interpolation' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('color-interpolation', [
17
  { syntax: 'auto' },
18
  { syntax: 'srgb' },
19
  { syntax: 'linearrgb' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  }
22
]);
23
24
// <color>s are not supported in level 1
25
runUnsupportedPropertyTests('color', [
26
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
27
  'transparent'
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-count-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-count-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-count.html +41 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-count.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'column-count' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('column-count', [
17
  { syntax: 'auto' },
18
  // FIXME: This should say <integer>, but the test harness currently
19
  // doesn't support <integer> data type.
20
  {
21
    syntax: '<number>',
22
    // column-count needs to be a positive integer
23
    specified: (input, result) => {
24
      if (input instanceof CSSUnitValue && (!Number.isInteger(input.value) || input.value < 1))
25
        assert_style_value_equals(result, new CSSMathSum(input));
26
      else
27
        assert_style_value_equals(result, input);
28
    },
29
    computed: (input, result) => {
30
      const number = input.to('number');
31
      if (number < 1)
32
        assert_style_value_equals(result, new CSSUnitValue(1, 'number'));
33
      else if (!Number.isInteger(number.value))
34
        assert_style_value_equals(result, new CSSUnitValue(Math.round(number.value), 'number'));
35
      else
36
        assert_style_value_equals(result, number);
37
    }
38
  },
39
]);
40
41
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-color.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'column-rule-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('column-rule-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  }
22
]);
23
24
// <color>s are not supported in level 1
25
runUnsupportedPropertyTests('column-rule-color', [
26
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
27
  'transparent'
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-style-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-style-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-style.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-style.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'column-rule-style' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('column-rule-style', [
17
  { syntax: 'none' },
18
  { syntax: 'hidden' },
19
  { syntax: 'dotted' },
20
  { syntax: 'dashed' },
21
  { syntax: 'solid' },
22
  { syntax: 'double' },
23
  { syntax: 'groove' },
24
  { syntax: 'ridge' },
25
  { syntax: 'inset' },
26
  { syntax: 'outset' }
27
]);
28
29
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-width-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-width-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-width.html +42 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-width.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'column-rule-width' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
function assert_is_zero_px(result) {
17
  assert_style_value_equals(result, new CSSUnitValue(0, 'px'));
18
}
19
20
runPropertyTests('column-rule-width', [
21
  // Computed value is 0 when column-rule-style is 'none'.
22
  // FIXME: Add separate test where column-rule-style is not 'none' or 'hidden'.
23
  {
24
    syntax: 'thin',
25
    computed: (_, result) => assert_is_zero_px(result)
26
  },
27
  {
28
    syntax: 'medium',
29
    computed: (_, result) => assert_is_zero_px(result)
30
  },
31
  {
32
    syntax: 'thick',
33
    computed: (_, result) => assert_is_zero_px(result)
34
  },
35
  {
36
    syntax: '<length>',
37
    specified: assert_is_equal_with_range_handling,
38
    computed: (_, result) => assert_is_zero_px(result)
39
  },
40
]);
41
42
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-span-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-span-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-span.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-span.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'column-span' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#dom-stylepropertymapreadonly-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#reify-stylevalue">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('column-span', [
17
  { syntax: 'none' },
18
  { syntax: 'all' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-width-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-width-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-width.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-width.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'column-width' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#dom-stylepropertymapreadonly-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#reify-stylevalue">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('column-width', [
17
  { syntax: 'auto' },
18
  {
19
    syntax: '<length>',
20
    specified: assert_is_equal_with_range_handling
21
  },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/contain-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/contain-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/contain.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/contain.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'contain' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('contain', [
17
  { syntax: 'none' },
18
  { syntax: 'strict' },
19
  { syntax: 'content' },
20
  { syntax: 'size' },
21
  { syntax: 'layout' },
22
  { syntax: 'style' },
23
  { syntax: 'paint' },
24
]);
25
26
runUnsupportedPropertyTests('contain', [
27
  'size layout', 'paint style layout size'
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/coordinate-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/coordinate-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/coordinate.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/coordinate.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'coordinate' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('x', [
17
  { syntax: '<percentage>' },
18
  { syntax: '<length>' },
19
]);
20
21
runPropertyTests('y', [
22
  { syntax: '<percentage>' },
23
  { syntax: '<length>' },
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-increment-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-increment-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-increment.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-increment.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'counter-increment' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('counter-increment', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('counter-increment', [
21
  'chapter', 'chapter 3'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-reset-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-reset-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-reset.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-reset.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'counter-reset' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('counter-reset', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('counter-reset', [
21
  'chapter', 'chapter 3'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-set-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-set-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-set.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/counter-set.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'counter-set' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('counter-set', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('counter-set', [
21
  'chapter', 'chapter 3'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/cursor-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/cursor-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/cursor.html +59 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/cursor.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'cursor' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('cursor', [
17
  { syntax: 'auto' },
18
  { syntax: 'default' },
19
  { syntax: 'none' },
20
  { syntax: 'context-menu' },
21
  { syntax: 'help' },
22
  { syntax: 'pointer' },
23
  { syntax: 'progress' },
24
  { syntax: 'wait' },
25
  { syntax: 'cell' },
26
  { syntax: 'crosshair' },
27
  { syntax: 'text' },
28
  { syntax: 'vertical-text' },
29
  { syntax: 'alias' },
30
  { syntax: 'copy' },
31
  { syntax: 'move' },
32
  { syntax: 'no-drop' },
33
  { syntax: 'not-allowed' },
34
  { syntax: 'grab' },
35
  { syntax: 'grabbing' },
36
  { syntax: 'e-resize' },
37
  { syntax: 'n-resize' },
38
  { syntax: 'ne-resize' },
39
  { syntax: 'nw-resize' },
40
  { syntax: 's-resize' },
41
  { syntax: 'se-resize' },
42
  { syntax: 'sw-resize' },
43
  { syntax: 'w-resize' },
44
  { syntax: 'ew-resize' },
45
  { syntax: 'ns-resize' },
46
  { syntax: 'nesw-resize' },
47
  { syntax: 'nwse-resize' },
48
  { syntax: 'col-resize' },
49
  { syntax: 'row-resize' },
50
  { syntax: 'all-scroll' },
51
  { syntax: 'zoom-in' },
52
  { syntax: 'zoom-out' }
53
]);
54
55
runUnsupportedPropertyTests('cursor', [
56
  'url(hand.cur), pointer', 'url(cursor1.png) 4 12, auto'
57
]);
58
59
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/d-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/d-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/d.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/d.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'d' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('d', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('d', [
21
  'path("M 100 100 L 300 100 L 200 300 Z")'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/direction-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/direction-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/direction.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/direction.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'direction' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('direction', [
17
  { syntax: 'ltr' },
18
  { syntax: 'rtl' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/display-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/display-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/display.html +44 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/display.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'display' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('display', [
17
  { syntax: 'none' },
18
  { syntax: 'block' },
19
  { syntax: 'inline' },
20
  { syntax: 'flow-root' },
21
  { syntax: 'table' },
22
  { syntax: 'flex' },
23
  { syntax: 'grid' },
24
  { syntax: 'list-item' },
25
  { syntax: 'table-row-group' },
26
  { syntax: 'table-header-group' },
27
  { syntax: 'table-footer-group' },
28
  { syntax: 'table-row' },
29
  { syntax: 'table-cell' },
30
  { syntax: 'table-column-group' },
31
  { syntax: 'table-column' },
32
  { syntax: 'table-caption' },
33
  { syntax: 'contents' },
34
  { syntax: 'inline-block' },
35
  { syntax: 'inline-table' },
36
  { syntax: 'inline-flex' },
37
  { syntax: 'inline-grid' },
38
]);
39
40
runUnsupportedPropertyTests('display', [
41
  'block math', 'math block', 'inline math', 'math inline'
42
]);
43
44
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/dominant-baseline-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/dominant-baseline-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/dominant-baseline.html +28 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/dominant-baseline.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'dominant-baseline' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('dominant-baseline', [
17
  { syntax: 'auto' },
18
  { syntax: 'text-bottom' },
19
  { syntax: 'alphabetic' },
20
  { syntax: 'ideographic' },
21
  { syntax: 'middle' },
22
  { syntax: 'central' },
23
  { syntax: 'mathematical' },
24
  { syntax: 'hanging' },
25
  { syntax: 'text-top' },
26
]);
27
28
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/empty-cells-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/empty-cells-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/empty-cells.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/empty-cells.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'empty-cells' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('empty-cells', [
17
  { syntax: 'show' },
18
  { syntax: 'hide' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-color.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'fill-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('fill-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  }
22
]);
23
24
// <color>s are not supported in level 1
25
runUnsupportedPropertyTests('fill-color', [
26
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
27
  'transparent'
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-opacity-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-opacity-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-opacity.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-opacity.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'fill-opacity' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
function assert_is_equal_with_clamping(input, result) {
17
  const number = input.to('number');
18
19
  if (number.value < 0)
20
    assert_style_value_equals(result, new CSSUnitValue(0, 'number'));
21
  else if (number.value > 1)
22
    assert_style_value_equals(result, new CSSUnitValue(1, 'number'));
23
  else
24
    assert_style_value_equals(result, input);
25
}
26
27
runPropertyTests('fill-opacity', [
28
  {
29
    syntax: '<number>',
30
    computed: assert_is_equal_with_clamping
31
  },
32
]);
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-rule-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-rule-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-rule.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill-rule.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'fill-rule' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('fill-rule', [
17
  { syntax: 'nonzero' },
18
  { syntax: 'evenodd' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/fill.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'fill' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('fill', [
17
  'black',
18
  'red gray',
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/filter-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/filter-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/filter.html +25 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/filter.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'filter' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('filter', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('filter', [
21
  'blur(2px)',
22
  'url(filters.svg) blur(4px) saturate(150%)',
23
]);
24
25
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-basis-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-basis-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-basis.html +32 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-basis.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'flex-basis' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('flex-basis', [
17
  { syntax: 'auto' },
18
  { syntax: 'content' },
19
  { syntax: 'fit-content' },
20
  { syntax: 'min-content' },
21
  { syntax: 'max-content' },
22
  {
23
    syntax: '<length>',
24
    specified: assert_is_equal_with_range_handling,
25
  },
26
  {
27
    syntax: '<percentage>',
28
    specified: assert_is_equal_with_range_handling,
29
  },
30
]);
31
32
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-direction-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-direction-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-direction.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-direction.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'flex-direction' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('flex-direction', [
17
  { syntax: 'row' },
18
  { syntax: 'row-reverse' },
19
  { syntax: 'column' },
20
  { syntax: 'column-reverse' },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-flow-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-flow-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-flow.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-flow.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'flex-flow' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('flex-flow', [
17
  'row', 'column wrap', 'row-reverse wrap-reverse'
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-grow-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-grow-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-grow.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-grow.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'flex-grow' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('flex-grow', [
17
  {
18
    syntax: '<number>',
19
    specified: assert_is_equal_with_range_handling,
20
  },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-shrink-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-shrink-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-shrink.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-shrink.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'flex-shrink' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('flex-shrink', [
17
  {
18
    syntax: '<number>',
19
    specified: assert_is_equal_with_range_handling,
20
  },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-wrap-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-wrap-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-wrap.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-wrap.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'flex-wrap' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('flex-wrap', [
17
  { syntax: 'nowrap' },
18
  { syntax: 'wrap' },
19
  { syntax: 'wrap-reverse' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'flex' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('flex', [
17
  'auto', '2', '1 30px', '2 2 10%'
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/float-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/float-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/float.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/float.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'float' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('float', [
17
  { syntax: 'left' },
18
  { syntax: 'right' },
19
  { syntax: 'none' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-color.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'flood-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('flood-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  }
22
]);
23
24
// <color>s are not supported in level 1
25
runUnsupportedPropertyTests('flood-color', [
26
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
27
  'transparent'
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-opacity-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-opacity-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-opacity.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flood-opacity.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'flood-opacity' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
function assert_is_equal_with_clamping(input, result) {
17
  const number = input.to('number');
18
19
  if (number.value < 0)
20
    assert_style_value_equals(result, new CSSUnitValue(0, 'number'));
21
  else if (number.value > 1)
22
    assert_style_value_equals(result, new CSSUnitValue(1, 'number'));
23
  else
24
    assert_style_value_equals(result, input);
25
}
26
27
runPropertyTests('flood-opacity', [
28
  {
29
    syntax: '<number>',
30
    computed: assert_is_equal_with_clamping
31
  },
32
]);
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-family-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-family-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-family.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-family.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-family' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
// FIXME: font-family is list-valued. Run list-valued tests here too.
17
runUnsupportedPropertyTests('font-family', [
18
  'Georgia',
19
  '"Gill Sans"',
20
  'sans-serif',
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-feature-settings-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-feature-settings-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-feature-settings.html +25 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-feature-settings.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-feature-settings' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-feature-settings', [
17
  { syntax: 'normal' }
18
]);
19
20
runUnsupportedPropertyTests('font-feature-settings', [
21
  '"dlig" 1',
22
  '"smcp" on',
23
]);
24
25
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-kerning-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-kerning-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-kerning.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-kerning.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-kerning' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-kerning', [
17
  { syntax: 'auto' },
18
  { syntax: 'normal' },
19
  { syntax: 'none' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-language-override-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-language-override-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-language-override.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-language-override.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-language-override' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-language-override', [
17
  { syntax: 'normal' },
18
]);
19
20
runUnsupportedPropertyTests('font-language-override', [
21
  '"SRB"',
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-optical-sizing-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-optical-sizing-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-optical-sizing.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-optical-sizing.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-optical-sizing' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-optical-sizing', [
17
  { syntax: 'auto' },
18
  { syntax: 'none' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-palette-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-palette-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-palette.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-palette.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-palette' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-palette', [
17
  { syntax: 'normal' },
18
  { syntax: 'light' },
19
  { syntax: 'dark' },
20
]);
21
22
runUnsupportedPropertyTests('font-palette', [
23
  'Augusta'
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-presentation-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-presentation-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-presentation.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-presentation.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-presentation' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-presentation', [
17
  { syntax: 'auto' },
18
  { syntax: 'text' },
19
  { syntax: 'emoji' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size-adjust-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size-adjust-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size-adjust.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size-adjust.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-size-adjust' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-size-adjust', [
17
  { syntax: 'none' },
18
  {
19
    syntax: '<number>',
20
    specified: assert_is_equal_with_range_handling
21
  },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size.html +72 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-size' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const property of ['font-size', 'font-min-size', 'font-max-size']) {
17
  // font-max-size also supports 'infinity' keyword
18
  const infinity = property === 'font-max-size' ?
19
    [{ syntax: 'infinity'}] : [];
20
21
  runPropertyTests(property, [
22
    ...infinity,
23
    {
24
      syntax: 'xx-small',
25
      computed: (_, result) => assert_is_unit('px', result)
26
    },
27
    {
28
      syntax: 'x-small',
29
      computed: (_, result) => assert_is_unit('px', result)
30
    },
31
    {
32
      syntax: 'small',
33
      computed: (_, result) => assert_is_unit('px', result)
34
    },
35
    {
36
      syntax: 'medium',
37
      computed: (_, result) => assert_is_unit('px', result)
38
    },
39
    {
40
      syntax: 'large',
41
      computed: (_, result) => assert_is_unit('px', result)
42
    },
43
    {
44
      syntax: 'x-large',
45
      computed: (_, result) => assert_is_unit('px', result)
46
    },
47
    {
48
      syntax: 'xx-large',
49
      computed: (_, result) => assert_is_unit('px', result)
50
    },
51
    {
52
      syntax: 'larger',
53
      computed: (_, result) => assert_is_unit('px', result)
54
    },
55
    {
56
      syntax: 'smaller',
57
      computed: (_, result) => assert_is_unit('px', result)
58
    },
59
    {
60
      syntax: '<length>',
61
      specified: assert_is_equal_with_range_handling,
62
      computed: (_, result) => assert_is_unit('px', result)
63
    },
64
    {
65
      syntax: '<percentage>',
66
      specified: assert_is_equal_with_range_handling,
67
      computed: (_, result) => assert_is_unit('px', result)
68
    },
69
  ]);
70
}
71
72
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-stretch-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-stretch-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-stretch.html +32 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-stretch.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-stretch' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-stretch', [
17
  { syntax: 'normal' },
18
  { syntax: 'ultra-condensed' },
19
  { syntax: 'extra-condensed' },
20
  { syntax: 'condensed' },
21
  { syntax: 'semi-condensed' },
22
  { syntax: 'semi-expanded' },
23
  { syntax: 'expanded' },
24
  { syntax: 'extra-expanded' },
25
  { syntax: 'ultra-expanded' },
26
  {
27
    syntax: '<percentage>',
28
    specified: assert_is_equal_with_range_handling
29
  },
30
]);
31
32
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-style-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-style-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-style.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-style.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-style' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-style', [
17
  { syntax: 'normal' },
18
  { syntax: 'italic' },
19
  { syntax: 'oblique' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-synthesis-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-synthesis-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-synthesis.html +27 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-synthesis.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-synthesis' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-synthesis', [
17
  { syntax: 'none' },
18
  { syntax: 'weight' },
19
  { syntax: 'style' },
20
  { syntax: 'small-caps' },
21
]);
22
23
runUnsupportedPropertyTests('font-synthesis', [
24
  'weight style', 'style small-caps', 'small-caps weight style'
25
]);
26
27
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-alternates-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-alternates-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-alternates.html +31 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-alternates.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-variant-alternates' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-variant-alternates', [
17
  { syntax: 'normal' },
18
  { syntax: 'historical-forms' },
19
]);
20
21
runUnsupportedPropertyTests('font-variant-alternates', [
22
  'stylistic(foo)',
23
  'styleset(foo)',
24
  'character-variant(foo)',
25
  'swash(foo)',
26
  'ornaments(foo)',
27
  'annotation(foo)',
28
  'swash(foo) annotation(foo2)',
29
]);
30
31
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-caps-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-caps-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-caps.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-caps.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-variant-caps' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-variant-caps', [
17
  { syntax: 'normal' },
18
  { syntax: 'small-caps' },
19
  { syntax: 'all-small-caps' },
20
  { syntax: 'petite-caps' },
21
  { syntax: 'all-petite-caps' },
22
  { syntax: 'unicase' },
23
  { syntax: 'titling-caps' },
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-east-asian-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-east-asian-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-east-asian.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-east-asian.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-variant-east-asian' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-variant-east-asian', [
17
  { syntax: 'normal' },
18
  { syntax: 'jis78' },
19
  { syntax: 'jis83' },
20
  { syntax: 'jis90' },
21
  { syntax: 'jis04' },
22
  { syntax: 'simplified' },
23
  { syntax: 'traditional' },
24
  { syntax: 'full-width' },
25
  { syntax: 'proportional-width' },
26
  { syntax: 'ruby' },
27
]);
28
29
runUnsupportedPropertyTests('font-variant-east-asian', [
30
  'jis78 full-width',
31
  'traditional proportional-width ruby',
32
]);
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-emoji-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-emoji-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-emoji.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-emoji.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-variant-emoji' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-variant-emoji', [
17
  { syntax: 'auto' },
18
  { syntax: 'text' },
19
  { syntax: 'emoji' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-ligatures-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-ligatures-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-ligatures.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-ligatures.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-variant-ligatures' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-variant-ligatures', [
17
  { syntax: 'normal' },
18
  { syntax: 'none' },
19
  { syntax: 'common-ligatures' },
20
  { syntax: 'no-common-ligatures' },
21
  { syntax: 'discretionary-ligatures' },
22
  { syntax: 'no-discretionary-ligatures' },
23
  { syntax: 'historical-ligatures' },
24
  { syntax: 'no-historical-ligatures' },
25
  { syntax: 'contextual' },
26
  { syntax: 'no-contextual' },
27
]);
28
29
runUnsupportedPropertyTests('font-variant-ligatures', [
30
  'common-ligatures contextual',
31
  'no-common-ligatures discretionary-ligatures no-historical-ligatures no-contextual',
32
]);
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-numeric-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-numeric-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-numeric.html +32 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant-numeric.html_sec1
1
<meta charset="utf-8">
2
<title>'font-variant-numeric' property</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<script src="resources/testsuite.js"></script>
10
<body>
11
<div id="log"></div>
12
<script>
13
'use strict';
14
15
runPropertyTests('font-variant-numeric', [
16
  { syntax: 'normal' },
17
  { syntax: 'lining-nums' },
18
  { syntax: 'oldstyle-nums' },
19
  { syntax: 'proportional-nums' },
20
  { syntax: 'tabular-nums' },
21
  { syntax: 'diagonal-fractions' },
22
  { syntax: 'stacked-fractions' },
23
  { syntax: 'ordinal' },
24
  { syntax: 'slashed-zero' },
25
]);
26
27
runUnsupportedPropertyTests('font-variant-numeric', [
28
  'lining-nums ordinal',
29
  'oldstyle-nums tabular-nums stacked-fractions ordinal slashed-zero',
30
]);
31
32
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variant.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-variant' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('font-variant', [
17
  'normal', 'no-common-ligatures proportional-nums',
18
  'common-ligatures tabular-nums', 'small-caps slashed-zero'
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variation-settings-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variation-settings-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variation-settings.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-variation-settings.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-variation-settings' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('font-variation-settings', [
17
  { syntax: 'normal' },
18
]);
19
20
runUnsupportedPropertyTests('font-variation-settings', [
21
  '"XHGT" 0.7',
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-weight-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-weight-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-weight.html +50 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-weight.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font-weight' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
function assert_is_font_weight(weight, result) {
17
  assert_style_value_equals(result, new CSSUnitValue(weight, 'number'));
18
}
19
20
runPropertyTests('font-weight', [
21
  {
22
    syntax: 'normal',
23
    computed: (_, result) => assert_is_font_weight(400, result)
24
  },
25
  {
26
    syntax: 'bold',
27
    computed: (_, result) => assert_is_font_weight(700, result)
28
  },
29
  {
30
    syntax: 'bolder',
31
    computed: (_, result) => assert_is_unit('number', result)
32
  },
33
  {
34
    syntax: 'lighter',
35
    computed: (_, result) => assert_is_unit('number', result)
36
  },
37
  {
38
    syntax: '<number>',
39
    specified: (input, result) => {
40
      if (input instanceof CSSUnitValue &&
41
          (input.value < 0 || input.value > 1000))
42
        assert_style_value_equals(result, new CSSMathSum(input));
43
      else
44
        assert_style_value_equals(result, input);
45
    }
46
  },
47
]);
48
49
</script>
50
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'font' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('font', [
17
  '1.2em "Fira Sans", sans-serif',
18
  'italic 1.2em "Fira Sans", serif',
19
  'italic small-caps bold 16px/2 cursive',
20
  'small-caps bold 24px/1 sans-serif',
21
  'caption',
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/gap-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/gap-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/gap.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/gap.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'*-gap' properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#dom-stylepropertymapreadonly-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#reify-stylevalue">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const prefix of ['column', 'row']) {
17
  runPropertyTests(`${prefix}-gap`, [
18
    { syntax: 'normal' },
19
    {
20
      syntax: '<length>',
21
      specified: assert_is_equal_with_range_handling
22
    },
23
    {
24
      syntax: '<percentage>',
25
      specified: assert_is_equal_with_range_handling
26
    },
27
  ]);
28
}
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-area-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-area-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-area.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-area.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'grid-area' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('grid-area', [
17
  'a', 'a / a', 'auto', 'auto / auto', '2 / 1 / 2',
18
  'span 3', '2 span / a span'
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'grid-auto-columns' and 'grid-auto-rows' properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
// grid-auto-columns/rows are list-valued.
17
// Run list-valued tests here too.
18
for (const suffix of ['columns', 'rows']) {
19
  runPropertyTests(`grid-auto-${suffix}`, [
20
    { syntax: 'min-content' },
21
    { syntax: 'max-content' },
22
    { syntax: 'auto' },
23
    { syntax: '<length>' },
24
    { syntax: '<percentage>' },
25
    { syntax: '<flex>' },
26
  ]);
27
28
  runUnsupportedPropertyTests(`grid-auto-${suffix}`, [
29
    'minmax(100px, auto)', 'fit-content(400px)'
30
  ]);
31
}
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-flow-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-flow-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-flow.html +25 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-flow.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'grid-auto-flow' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('grid-auto-flow', [
17
  { syntax: 'row' },
18
  { syntax: 'column' },
19
]);
20
21
runUnsupportedPropertyTests('grid-auto-flow', [
22
  'row dense', 'column dense',
23
]);
24
25
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-gap-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-gap-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-gap.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-gap.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'grid-gap' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('grid-gap', [
17
  '20px', '16%', '20px 10px', '15% 100%', '21px 82%'
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-start-end-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-start-end-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-start-end.html +28 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-start-end.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'grid-{row/column}-{start/end}' properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const orientation of ['row', 'column']) {
17
  for (const suffix of ['start', 'end']) {
18
    runPropertyTests(`grid-${orientation}-${suffix}`, [
19
      { syntax: 'auto' },
20
    ]);
21
22
    runUnsupportedPropertyTests(`grid-${orientation}-${suffix}`, [
23
      '3', 'span 2', '5 somegridarea span'
24
    ]);
25
  }
26
}
27
28
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-areas-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-areas-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-areas.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-areas.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'grid-template-areas' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('grid-template-areas', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('grid-template-areas', [
21
  '"a a a"', '"a a a" "b b b"',
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-columns-rows-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-columns-rows-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-columns-rows.html +27 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-columns-rows.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'grid-template-columns' and 'grid-template-rows' properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const suffix of ['columns', 'rows']) {
17
  runPropertyTests(`grid-template-${suffix}`, [
18
    { syntax: 'none' },
19
  ]);
20
21
  runUnsupportedPropertyTests(`grid-template-${suffix}`, [
22
    '[linename1] 100px [linename2 linename3]',
23
    '200px repeat(auto-fill, 100px) 300px'
24
  ]);
25
}
26
27
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'grid-template' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('grid-template', [
17
  'none', '100px 1fr / 50px 1fr', '[linename] 100px / [columnname1] 30% [columname2] 70%',
18
  'fit-content(100px) / fit-content(40%)', '"a a a" "b b b"',
19
  '[header-top] "a a a" [header-bottom] [main-top] "b b b" 1fr [main-bottom] / auto 1fr auto'
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'grid' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('grid', [
17
  'auto-flow / 1fr 1fr 1fr', 'auto-flow dense / 40px 40px 1fr',
18
  'repeat(3, 80px) / auto-flow'
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/height-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/height-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/height.html +45 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/height.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'height' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('height', [
17
  { syntax: 'auto' },
18
  { syntax: '<percentage>', specified: assert_is_equal_with_range_handling },
19
  { syntax: '<length>', specified: assert_is_equal_with_range_handling },
20
]);
21
22
runPropertyTests('min-height', [
23
  {
24
    syntax: '<percentage>',
25
    specified: assert_is_equal_with_range_handling
26
  },
27
  {
28
    syntax: '<length>',
29
    specified: assert_is_equal_with_range_handling
30
  },
31
]);
32
33
runPropertyTests('max-height', [
34
  { syntax: 'none' },
35
  {
36
    syntax: '<percentage>',
37
    specified: assert_is_equal_with_range_handling
38
  },
39
  {
40
    syntax: '<length>',
41
    specified: assert_is_equal_with_range_handling
42
  },
43
]);
44
45
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/hyphens-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/hyphens-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/hyphens.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/hyphens.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'hyphens' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('hyphens', [
17
  { syntax: 'none' },
18
  { syntax: 'manual' },
19
  { syntax: 'auto' }
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/image-rendering-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/image-rendering-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/image-rendering.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/image-rendering.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'image-rendering' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('image-rendering', [
17
  { syntax: 'auto' },
18
  { syntax: 'smooth' },
19
  { syntax: 'high-quality' },
20
  { syntax: 'crisp-edges' },
21
  { syntax: 'pixelated' },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/inline-size-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/inline-size-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/inline-size.html +51 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/inline-size.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'inline-size' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('inline-size', [
17
  { syntax: 'auto' },
18
  {
19
    syntax: '<percentage>',
20
    specified: assert_is_equal_with_range_handling
21
  },
22
  {
23
    syntax: '<length>',
24
    specified: assert_is_equal_with_range_handling
25
  },
26
]);
27
28
runPropertyTests('min-inline-size', [
29
  {
30
    syntax: '<percentage>',
31
    specified: assert_is_equal_with_range_handling
32
  },
33
  {
34
    syntax: '<length>',
35
    specified: assert_is_equal_with_range_handling
36
  },
37
]);
38
39
runPropertyTests('max-inline-size', [
40
  { syntax: 'none' },
41
  {
42
    syntax: '<percentage>',
43
    specified: assert_is_equal_with_range_handling
44
  },
45
  {
46
    syntax: '<length>',
47
    specified: assert_is_equal_with_range_handling
48
  },
49
]);
50
51
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/isolation-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/isolation-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/isolation.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/isolation.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'isolation' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('isolation', [
17
  { syntax: 'auto' },
18
  { syntax: 'isolate' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/left-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/left-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/left.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/left.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'left' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('left', [
17
  { syntax: 'auto' },
18
  { syntax: '<percentage>' },
19
  { syntax: '<length>' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/letter-spacing-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/letter-spacing-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/letter-spacing.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/letter-spacing.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'letter-spacing' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('letter-spacing', [
17
  { syntax: 'normal' },
18
  { syntax: '<length>' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/lighting-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/lighting-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/lighting-color.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/lighting-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'lighting-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('lighting-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  }
22
]);
23
24
// <color>s are not supported in level 1
25
runUnsupportedPropertyTests('lighting-color', [
26
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
27
  'transparent'
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-break-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-break-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-break.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-break.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'line-break' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('line-break', [
17
  { syntax: 'auto' },
18
  { syntax: 'loose' },
19
  { syntax: 'normal' },
20
  { syntax: 'strict' },
21
  { syntax: 'anywhere' },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height-step-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height-step-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height-step.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height-step.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'line-height-step' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('line-height-step', [
17
  {
18
    syntax: '<length>',
19
    specified: assert_is_equal_with_range_handling
20
  }
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/line-height.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'line-height' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('line-height', [
17
  { syntax: 'normal' },
18
  {
19
    syntax: '<length>',
20
    specified: assert_is_equal_with_range_handling,
21
    computed: (_, result) => assert_is_unit('px', result)
22
  },
23
  {
24
    syntax: '<number>',
25
    specified: assert_is_equal_with_range_handling,
26
    computed: (_, result) => assert_is_unit('number', result)
27
  },
28
  {
29
    syntax: '<percentage>',
30
    specified: assert_is_equal_with_range_handling,
31
    computed: (_, result) => assert_is_unit('px', result)
32
  },
33
]);
34
35
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-image-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-image-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-image.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-image.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'list-style-image' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('list-style-image', [
17
  { syntax: 'none' },
18
  { syntax: '<image>' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-position-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-position-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-position.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-position.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'list-style-position' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('list-style-position', [
17
  { syntax: 'inside' },
18
  { syntax: 'outside' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-type-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-type-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-type.html +27 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/list-style-type.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'list-style-type' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('list-style-type', [
17
  { syntax: 'none' },
18
  // FIXME: This should be <custom-ident>, but the test harness doesn't
19
  // currently support it.
20
  { syntax: 'custom-ident' },
21
]);
22
23
runUnsupportedPropertyTests('list-style-type', [
24
  '"Note: "', 'symbols("*" "A" "B" "C")'
25
]);
26
27
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/logical-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/logical-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/logical.html +66 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/logical.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>logical margin, inset, padding & border properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
const logical = {
17
  axes: ['block', 'inline'],
18
  sides: ['block-start', 'block-end', 'inline-start', 'inline-end'],
19
  corners: ['start-start', 'start-end', 'end-start', 'end-end'],
20
};
21
22
for (const prefix of ['margin-', 'inset-', 'padding-']) {
23
  for (const side of [...logical.sides, ...logical.axes]) {
24
    runPropertyTests(prefix + side, [
25
      // TODO: Test 'auto'
26
      { syntax: '<percentage>' },
27
      { syntax: '<length>' },
28
    ]);
29
  }
30
}
31
32
// BORDERS
33
for (const side of [...logical.sides, ...logical.axes]) {
34
  runPropertyTests('border-' + side, [
35
    //{ syntax: 'thin solid green' },
36
    //{ syntax: 'thin solid' },
37
    //{ syntax: 'thick' },
38
    { syntax: 'none' },
39
  ]);
40
41
  runPropertyTests(`border-${side}-width`, [
42
    { syntax: 'thin' },
43
    { syntax: 'medium' },
44
    { syntax: 'thick' },
45
    { syntax: '<length>' },
46
  ]);
47
48
  runPropertyTests(`border-${side}-color`, [
49
    { syntax: 'currentcolor' },
50
    //{ syntax: '<color>' },
51
  ]);
52
53
  runPropertyTests(`border-${side}-style`, [
54
    { syntax: 'none' },
55
    { syntax: 'solid' },
56
  ]);
57
}
58
59
// border radius
60
for (const side of logical.corners) {
61
  runPropertyTests(`border-${side}-radius`, [
62
    { syntax: '<percentage>' },
63
    { syntax: '<length>' },
64
  ]);
65
}
66
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/margin-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/margin-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/margin.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/margin.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>margin properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const suffix of ['top', 'left', 'right', 'bottom']) {
17
  runPropertyTests('margin-' + suffix, [
18
    {
19
      syntax: 'auto',
20
      // Depending on which CSS spec is implemented, the computed value
21
      // can be 'auto' or a browser specific value.
22
      // FIXME: Figure out how to test this.
23
      computed: () => {}
24
    },
25
    { syntax: '<percentage>' },
26
    { syntax: '<length>' },
27
  ]);
28
}
29
30
runPropertyTests('margin', []);
31
runUnsupportedPropertyTests('margin',
32
  ['1px', '1px 2px 3px 4px']
33
);
34
35
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/marker-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/marker-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/marker.html +27 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/marker.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'marker-*' properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('marker', [
17
  'none', 'url(#m1)'
18
]);
19
20
for (const suffix of ['start', 'mid', 'end']) {
21
  runPropertyTests(`marker-${suffix}`, [
22
    { syntax: 'none' },
23
    { syntax: '<url>' },
24
  ]);
25
}
26
27
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-image-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-image-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-image.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-image.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'mask-image' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('mask-image', [
17
  { syntax: 'none' },
18
  { syntax: '<image>' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-type-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-type-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-type.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask-type.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'mask-type' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('mask-type', [
17
  { syntax: 'luminance' },
18
  { syntax: 'alpha' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mask.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'mask' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('mask', [
17
  'none', 'url(mask.png)'
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mix-blend-mode-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mix-blend-mode-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mix-blend-mode.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/mix-blend-mode.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'mix-blend-mode' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('mix-blend-mode', [
17
  { syntax: 'normal' },
18
  { syntax: 'multiply' },
19
  { syntax: 'screen' },
20
  { syntax: 'overlay' },
21
  { syntax: 'darken' },
22
  { syntax: 'lighten' },
23
  { syntax: 'color-dodge' },
24
  { syntax: 'color-burn' },
25
  { syntax: 'hard-light' },
26
  { syntax: 'soft-light' },
27
  { syntax: 'difference' },
28
  { syntax: 'exclusion' },
29
  { syntax: 'hue' },
30
  { syntax: 'saturation' },
31
  { syntax: 'color' },
32
  { syntax: 'luminosity' },
33
]);
34
35
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-fit-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-fit-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-fit.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-fit.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'object-fit' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('object-fit', [
17
  { syntax: 'fill' },
18
  { syntax: 'contain' },
19
  { syntax: 'cover' },
20
  { syntax: 'none' },
21
  { syntax: 'scale-down' },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-position-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-position-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-position.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/object-position.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'object-position' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('object-position', [
17
  { syntax: '<position>' },
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-anchor-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-anchor-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-anchor.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-anchor.html_sec1
1
<meta charset="utf-8">
2
<title>'offset-anchor' property</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<script src="resources/testsuite.js"></script>
10
<body>
11
<div id="log"></div>
12
<script>
13
'use strict';
14
15
runPropertyTests('offset-anchor', [
16
  { syntax: 'auto' },
17
  { syntax: '<position>' },
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-distance-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-distance-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-distance.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-distance.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'offset-distance' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('offset-distance', [
17
  { syntax: '<length>' },
18
  { syntax: '<percentage>' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-path-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-path-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-path.html +25 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-path.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'offset-path' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('offset-path', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('offset-path', [
21
  'ray(45deg closest-side)',
22
  'path("M 100 100 L 300 100 L 200 300 Z")',
23
]);
24
25
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-position-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-position-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-position.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-position.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'offset-position' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('offset-position', [
17
  { syntax: 'auto' },
18
  { syntax: '<position>' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-rotate-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-rotate-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-rotate.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-rotate.html_sec1
1
<meta charset="utf-8">
2
<title>'offset-rotate' property</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<script src="resources/testsuite.js"></script>
10
<body>
11
<div id="log"></div>
12
<script>
13
'use strict';
14
15
runPropertyTests('offset-rotate', [
16
  { syntax: 'auto' },
17
  { syntax: 'reverse' },
18
  { syntax: '<angle>' },
19
]);
20
21
runUnsupportedPropertyTests('offset-rotate', [
22
  'auto 90deg',
23
  'reverse -90deg',
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'offset' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('offset', [
17
  'auto', '10px 30px', 'none',
18
  'ray(45deg closest-side)',
19
  'path("M 100 100 L 300 100 L 200 300 z")',
20
  'ray(45deg closest-side) / 40px 20px'
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/opacity-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/opacity-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/opacity.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/opacity.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'opacity' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
function assert_is_equal_with_clamping(input, result) {
17
  const number = input.to('number');
18
19
  if (number.value < 0)
20
    assert_style_value_equals(result, new CSSUnitValue(0, 'number'));
21
  else if (number.value > 1)
22
    assert_style_value_equals(result, new CSSUnitValue(1, 'number'));
23
  else
24
    assert_style_value_equals(result, input);
25
}
26
27
runPropertyTests('opacity', [
28
  {
29
    syntax: '<number>',
30
    computed: assert_is_equal_with_clamping
31
  },
32
]);
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/order-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/order-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/order.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/order.html_sec1
1
<meta charset="utf-8">
2
<title>'order' property</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<script src="resources/testsuite.js"></script>
10
<body>
11
<div id="log"></div>
12
<script>
13
'use strict';
14
15
runPropertyTests('order', [
16
  {
17
    syntax: '<number>',
18
    // order needs to be an integer
19
    specified: (input, result) => {
20
      if (input instanceof CSSUnitValue && !Number.isInteger(input.value))
21
        assert_style_value_equals(result, new CSSMathSum(input));
22
      else
23
        assert_style_value_equals(result, input);
24
    },
25
    computed: (input, result) => {
26
      const number = input.to('number');
27
      if (!Number.isInteger(number.value))
28
        assert_style_value_equals(result, new CSSUnitValue(Math.round(number.value), 'number'));
29
      else
30
        assert_style_value_equals(result, number);
31
    }
32
  },
33
]);
34
35
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/orphans-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/orphans-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/orphans.html +37 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/orphans.html_sec1
1
<meta charset="utf-8">
2
<title>'orphans' property</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<script src="resources/testsuite.js"></script>
10
<body>
11
<div id="log"></div>
12
<script>
13
'use strict';
14
15
runPropertyTests('orphans', [
16
  {
17
    syntax: '<number>',
18
    // orphans needs to be a positive integer
19
    specified: (input, result) => {
20
      if (input instanceof CSSUnitValue && (!Number.isInteger(input.value) || input.value < 1))
21
        assert_style_value_equals(result, new CSSMathSum(input));
22
      else
23
        assert_style_value_equals(result, input);
24
    },
25
    computed: (input, result) => {
26
      const number = input.to('number');
27
      if (number < 1)
28
        assert_style_value_equals(result, new CSSUnitValue(1, 'number'));
29
      else if (!Number.isInteger(number.value))
30
        assert_style_value_equals(result, new CSSUnitValue(Math.round(number.value), 'number'));
31
      else
32
        assert_style_value_equals(result, number);
33
    }
34
  },
35
]);
36
37
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-color.html +31 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'outline-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('outline-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  }
22
  // FIXME: browsers may or may not support 'invert' keyword.
23
]);
24
25
// <color>s are not supported in level 1
26
runUnsupportedPropertyTests('outline-color', [
27
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
28
  'transparent'
29
]);
30
31
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-offset-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-offset-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-offset.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-offset.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'outline-offset' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('outline-offset', [
17
  { syntax: '<length>' },
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-style-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-style-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-style.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-style.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'outline-style' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('outline-style', [
17
  { syntax: 'auto' },
18
  { syntax: 'none' },
19
  { syntax: 'dotted' },
20
  { syntax: 'dashed' },
21
  { syntax: 'solid' },
22
  { syntax: 'double' },
23
  { syntax: 'groove' },
24
  { syntax: 'ridge' },
25
  { syntax: 'inset' },
26
  { syntax: 'outset' },
27
]);
28
29
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-width-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-width-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-width.html +41 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-width.html_sec1
1
<meta charset="utf-8">
2
<title>'outline-width' property</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<script src="resources/testsuite.js"></script>
10
<body>
11
<div id="log"></div>
12
<script>
13
'use strict';
14
15
function assert_is_zero_px(result) {
16
  assert_style_value_equals(result, new CSSUnitValue(0, 'px'));
17
}
18
19
runPropertyTests('outline-width', [
20
  // Computed value is 0 when outline-style is 'none'.
21
  // FIXME: Add separate test where outline-style is not 'none' or 'hidden'.
22
  {
23
    syntax: 'thin',
24
    computed: (_, result) => assert_is_zero_px(result)
25
  },
26
  {
27
    syntax: 'medium',
28
    computed: (_, result) => assert_is_zero_px(result)
29
  },
30
  {
31
    syntax: 'thick',
32
    computed: (_, result) => assert_is_zero_px(result)
33
  },
34
  {
35
    syntax: '<length>',
36
    specified: assert_is_equal_with_range_handling,
37
    computed: (_, result) => assert_is_zero_px(result)
38
  },
39
]);
40
41
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-anchor-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-anchor-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-anchor.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-anchor.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'overflow-anchor' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('overflow-anchor', [
17
  { syntax: 'auto' },
18
  { syntax: 'none' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-wrap-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-wrap-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-wrap.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow-wrap.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'overflow-wrap' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('overflow-wrap', [
17
  { syntax: 'normal' },
18
  { syntax: 'break-word' },
19
  { syntax: 'break-spaces' },
20
]);
21
22
runUnsupportedPropertyTests('overflow-wrap', [
23
  'break-overflow break-spaces'
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overflow.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'overflow' properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const suffix of ['x', 'y']) {
17
  runPropertyTests(`overflow-${suffix}`, [
18
    { syntax: 'visible' },
19
    { syntax: 'hidden' },
20
    { syntax: 'clip' },
21
    { syntax: 'scroll' },
22
    { syntax: 'auto' },
23
  ]);
24
}
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overscroll-behavior-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overscroll-behavior-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overscroll-behavior.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/overscroll-behavior.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'overscroll-behavior' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const suffix of ['x', 'y']) {
17
  runPropertyTests(`overscroll-behavior-${suffix}`, [
18
    { syntax: 'contain' },
19
    { syntax: 'none' },
20
    { syntax: 'auto' }
21
  ]);
22
}
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/padding-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/padding-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/padding.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/padding.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>padding properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const suffix of ['top', 'left', 'right', 'bottom']) {
17
  runPropertyTests('padding-' + suffix, [
18
    {
19
      syntax: '<percentage>',
20
      specified: assert_is_equal_with_range_handling
21
    },
22
    {
23
      syntax: '<length>',
24
      specified: assert_is_equal_with_range_handling
25
    },
26
  ]);
27
}
28
29
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/page-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/page-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/page.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/page.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'page' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('page', [
17
  { syntax: 'auto' },
18
  // FIXME: This should be <custom-ident>, but the test harness doesn't
19
  // currently support it.
20
  { syntax: 'custom-ident' },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/paint-order-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/paint-order-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/paint-order.html +27 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/paint-order.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'paint-order' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('paint-order', [
17
  { syntax: 'normal' },
18
  { syntax: 'fill' },
19
  { syntax: 'stroke' },
20
  { syntax: 'markers' },
21
]);
22
23
runUnsupportedPropertyTests('paint-order', [
24
  'fill stroke', 'markers fill stroke'
25
]);
26
27
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective-origin-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective-origin-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective-origin.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective-origin.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'perspective-origin' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('perspective-origin', [
17
  { syntax: 'none' },
18
  { syntax: '<position>' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'perspective' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('perspective', [
17
  { syntax: 'none' },
18
  {
19
    syntax: '<length>',
20
    specified: assert_is_equal_with_range_handling
21
  },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/pointer-events-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/pointer-events-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/pointer-events.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/pointer-events.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'pointer-events' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('pointer-events', [
17
  { syntax: 'bounding-box' },
18
  { syntax: 'visiblepainted' },
19
  { syntax: 'visiblefill' },
20
  { syntax: 'visiblestroke' },
21
  { syntax: 'visible' },
22
  { syntax: 'painted' },
23
  { syntax: 'fill' },
24
  { syntax: 'stroke' },
25
  { syntax: 'all' },
26
  { syntax: 'none' },
27
]);
28
29
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/position-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/position-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/position.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/position.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'position' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('position', [
17
  { syntax: 'relative' },
18
  { syntax: 'absolute' },
19
  // and other keywords
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/quotes-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/quotes-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/quotes.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/quotes.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'quotes' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('quotes', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('quotes', [
21
  '"<<" ">>" "<" ">"'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/radius-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/radius-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/radius.html +51 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/radius.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'radius' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('r', [
17
  {
18
    syntax: '<percentage>',
19
    specified: assert_is_equal_with_range_handling
20
  },
21
  {
22
    syntax: '<length>',
23
    specified: assert_is_equal_with_range_handling
24
  },
25
]);
26
27
runPropertyTests('rx', [
28
  { syntax: 'auto' },
29
  {
30
    syntax: '<percentage>',
31
    specified: assert_is_equal_with_range_handling
32
  },
33
  {
34
    syntax: '<length>',
35
    specified: assert_is_equal_with_range_handling
36
  },
37
]);
38
39
runPropertyTests('ry', [
40
  { syntax: 'auto' },
41
  {
42
    syntax: '<percentage>',
43
    specified: assert_is_equal_with_range_handling
44
  },
45
  {
46
    syntax: '<length>',
47
    specified: assert_is_equal_with_range_handling
48
  },
49
]);
50
51
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/resize-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/resize-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/resize.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/resize.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'resize' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('resize', [
17
  { syntax: 'none' },
18
  { syntax: 'both' },
19
  { syntax: 'horizontal' },
20
  { syntax: 'vertical' },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/resources/testsuite.js +490 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/resources/testsuite.js_sec1
1
function assert_is_unit(unit, result) {
2
  assert_class_string(result, 'CSSUnitValue',
3
    'relative lengths must compute to a CSSUnitValue');
4
  assert_equals(result.unit, unit, 'unit');
5
}
6
7
function assert_is_calc_sum(result) {
8
  assert_class_string(result, 'CSSMathSum',
9
    'specified calc must be a CSSMathSum');
10
}
11
12
function assert_is_equal_with_range_handling(input, result) {
13
  if (input instanceof CSSUnitValue && input.value < 0)
14
    assert_style_value_equals(result, new CSSMathSum(input));
15
  else
16
    assert_style_value_equals(result, input);
17
}
18
19
function assert_is_unsupported(result) {
20
  assert_class_string(result, 'CSSStyleValue');
21
}
22
23
const gCssWideKeywordsExamples = [
24
  {
25
    description: 'initial keyword',
26
    input: new CSSKeywordValue('initial')
27
  },
28
  {
29
    description: 'inherit keyword',
30
    input: new CSSKeywordValue('initial')
31
  },
32
  {
33
    description: 'unset keyword',
34
    input: new CSSKeywordValue('initial')
35
  },
36
  {
37
    description: 'revert keyword',
38
    input: new CSSKeywordValue('revert')
39
  },
40
];
41
42
const gVarReferenceExamples = [
43
  {
44
    description: 'a var() reference',
45
    input: new CSSUnparsedValue([' ', new CSSVariableReferenceValue('--A')])
46
  },
47
];
48
49
const gTestSyntaxExamples = {
50
  '<length>': {
51
    description: 'a length',
52
    examples: [
53
      {
54
        description: "zero px",
55
        input: new CSSUnitValue(0, 'px')
56
      },
57
      {
58
        description: "a negative em",
59
        input: new CSSUnitValue(-3.14, 'em'),
60
        // 'ems' are relative units, so just check that it computes to px
61
        defaultComputed: (_, result) => assert_is_unit('px', result)
62
      },
63
      {
64
        description: "a positive cm",
65
        input: new CSSUnitValue(3.14, 'cm'),
66
        // 'cms' are relative units, so just check that it computes to px
67
        defaultComputed: (_, result) => assert_is_unit('px', result)
68
      },
69
      {
70
        description: "a calc length",
71
        input: new CSSMathSum(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 'em')),
72
        // Specified/computed calcs are usually simplified.
73
        // FIXME: Test this properly
74
        defaultSpecified: (_, result) => assert_is_calc_sum(result),
75
        defaultComputed: (_, result) => assert_is_unit('px', result)
76
      }
77
    ],
78
  },
79
  '<percentage>': {
80
    description: 'a percent',
81
    examples: [
82
      {
83
        description: "zero percent",
84
        input: new CSSUnitValue(0, 'percent')
85
      },
86
      {
87
        description: "a negative percent",
88
        input: new CSSUnitValue(-3.14, 'percent')
89
      },
90
      {
91
        description: "a positive percent",
92
        input: new CSSUnitValue(3.14, 'percent')
93
      },
94
      {
95
        description: "a calc percent",
96
        input: new CSSMathSum(new CSSUnitValue(0, 'percent'), new CSSUnitValue(0, 'percent')),
97
        // Specified/computed calcs are usually simplified.
98
        // FIXME: Test this properly
99
        defaultSpecified: (_, result) => assert_is_calc_sum(result),
100
        defaultComputed: (_, result) => assert_is_unit('percent', result)
101
      }
102
    ],
103
  },
104
  '<time>': {
105
    description: 'a time',
106
    examples: [
107
      {
108
        description: "zero seconds",
109
        input: new CSSUnitValue(0, 's')
110
      },
111
      {
112
        description: "negative milliseconds",
113
        input: new CSSUnitValue(-3.14, 'ms'),
114
        // Computed values use canonical units
115
        defaultComputed: (_, result) => assert_style_value_equals(result, new CSSUnitValue(-0.00314, 's'))
116
      },
117
      {
118
        description: "positive seconds",
119
        input: new CSSUnitValue(3.14, 's')
120
      },
121
      {
122
        description: "a calc time",
123
        input: new CSSMathSum(new CSSUnitValue(0, 's'), new CSSUnitValue(0, 'ms')),
124
        // Specified/computed calcs are usually simplified.
125
        // FIXME: Test this properly
126
        defaultSpecified: (_, result) => assert_is_calc_sum(result),
127
        defaultComputed: (_, result) => assert_is_unit('s', result)
128
      }
129
    ],
130
  },
131
  '<time>': {
132
    description: 'a time',
133
    examples: [
134
      {
135
        description: "zero seconds",
136
        input: new CSSUnitValue(0, 's')
137
      },
138
      {
139
        description: "negative milliseconds",
140
        input: new CSSUnitValue(-3.14, 'ms'),
141
        // Computed values use canonical units
142
        defaultComputed: (_, result) => assert_style_value_equals(result, new CSSUnitValue(-0.00314, 's'))
143
      },
144
      {
145
        description: "positive seconds",
146
        input: new CSSUnitValue(3.14, 's')
147
      },
148
      {
149
        description: "a calc time",
150
        input: new CSSMathSum(new CSSUnitValue(0, 's'), new CSSUnitValue(0, 'ms')),
151
        // Specified/computed calcs are usually simplified.
152
        // FIXME: Test this properly
153
        defaultSpecified: (_, result) => assert_is_calc_sum(result),
154
        defaultComputed: (_, result) => assert_is_unit('s', result)
155
      }
156
    ],
157
  },
158
  '<angle>': {
159
    description: 'an angle',
160
    examples: [
161
      {
162
        description: "zero degrees",
163
        input: new CSSUnitValue(0, 'deg')
164
      },
165
      {
166
        description: "positive radians",
167
        input: new CSSUnitValue(3.14, 'rad'),
168
        // Computed values use canonical units
169
        defaultComputed: (_, result) => assert_style_value_equals(result, new CSSUnitValue(179.908752, 'deg'))
170
      },
171
      {
172
        description: "negative degrees",
173
        input: new CSSUnitValue(-3.14, 'deg')
174
      },
175
      {
176
        description: "a calc angle",
177
        input: new CSSMathSum(new CSSUnitValue(0, 'rad'), new CSSUnitValue(0, 'deg')),
178
        // Specified/computed calcs are usually simplified.
179
        // FIXME: Test this properly
180
        defaultSpecified: (_, result) => assert_is_calc_sum(result),
181
        defaultComputed: (_, result) => assert_is_unit('deg', result)
182
      }
183
    ],
184
  },
185
  '<flex>': {
186
    description: 'a flexible length',
187
    examples: [
188
      {
189
        description: "zero fractions",
190
        input: new CSSUnitValue(0, 'fr')
191
      },
192
      {
193
        description: "one fraction",
194
        input: new CSSUnitValue(0, 'fr')
195
      },
196
      {
197
        description: "negative fraction",
198
        input: new CSSUnitValue(-3.14, 'fr')
199
      },
200
      // TODO(https://github.com/w3c/css-houdini-drafts/issues/734):
201
      // Add calc tests involving 'fr' when that is spec'd in CSS.
202
    ],
203
  },
204
  '<number>': {
205
    description: 'a number',
206
    examples: [
207
      {
208
        description: 'the number zero',
209
        input: new CSSUnitValue(0, 'number')
210
      },
211
      {
212
        description: 'a negative number',
213
        input: new CSSUnitValue(-3.14, 'number')
214
      },
215
      {
216
        description: 'a positive number',
217
        input: new CSSUnitValue(3.14, 'number')
218
      },
219
      {
220
        description: "a calc number",
221
        input: new CSSMathSum(new CSSUnitValue(2, 'number'), new CSSUnitValue(3, 'number')),
222
        defaultSpecified: (_, result) => assert_is_calc_sum(result),
223
        defaultComputed: (_, result) => {
224
          assert_style_value_equals(result, new CSSUnitValue(5, 'number'));
225
        }
226
      }
227
    ],
228
  },
229
  '<position>': {
230
    description: 'a position',
231
    examples: [
232
      {
233
        decription: "origin position",
234
        input: new CSSPositionValue(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 'px'))
235
      }
236
    ],
237
  },
238
  '<url>': {
239
    description: 'a URL',
240
    examples: [
241
      // TODO(https://github.com/w3c/css-houdini-drafts/issues/716):
242
      // We can't test this until CSSURLValue is spec'd.
243
    ],
244
  },
245
  '<transform>': {
246
    description: 'a transform',
247
    examples: [
248
      {
249
        description: 'a transform containing percents',
250
        input: new CSSTransformValue([
251
          new CSSTranslate(
252
            new CSSUnitValue(50, 'percent'),
253
            new CSSUnitValue(50, 'percent'),
254
          )
255
        ]),
256
      },
257
      {
258
        description: 'a transform containing relative values',
259
        input: new CSSTransformValue([
260
          new CSSPerspective(new CSSUnitValue(10, 'em'))
261
        ]),
262
        defaultComputed: (_, result) => {
263
          // Relative units compute to absolute.
264
          assert_class_string(result, 'CSSTransformValue',
265
            'Result must be a CSSTransformValue');
266
          assert_class_string(result[0], 'CSSPerspective',
267
            'First component must be a CSSTransformValue');
268
          assert_is_unit('px', result[0].length);
269
        }
270
      },
271
      {
272
        description: 'a transform containing all the transform components',
273
        input: new CSSTransformValue([
274
          new CSSTranslate(
275
            new CSSUnitValue(0, 'px'),
276
            new CSSUnitValue(1, 'px'),
277
            new CSSUnitValue(2, 'px'),
278
          ),
279
          new CSSTranslate(
280
            new CSSUnitValue(0, 'px'),
281
            new CSSUnitValue(1, 'px'),
282
          ),
283
          new CSSRotate(1, 2, 3, new CSSUnitValue(45, 'deg')),
284
          new CSSRotate(new CSSUnitValue(45, 'deg')),
285
          new CSSScale(1, 2, 3),
286
          new CSSScale(1, 2),
287
          new CSSSkew(new CSSUnitValue(1, 'deg'), new CSSUnitValue(1, 'deg')),
288
          new CSSSkewX(new CSSUnitValue(1, 'deg')),
289
          new CSSSkewY(new CSSUnitValue(45, 'deg')),
290
          new CSSPerspective(new CSSUnitValue(1, 'px')),
291
          new CSSMatrixComponent(new DOMMatrixReadOnly(
292
            [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16])
293
          ),
294
          new CSSMatrixComponent(new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6])),
295
        ]),
296
      }
297
    ],
298
  },
299
};
300
301
// Test setting a value in a style map and then getting it from the inline and
302
// computed styles.
303
function testPropertyValid(propertyName, examples, specified, computed, description) {
304
  test(t => {
305
    let element = createDivWithStyle(t);
306
307
    for (const example of examples) {
308
      element.attributeStyleMap.set(propertyName, example.input);
309
310
      // specified style
311
      const specifiedResult = element.attributeStyleMap.get(propertyName);
312
      assert_not_equals(specifiedResult, null,
313
        'Specified value must not be null');
314
      assert_true(specifiedResult instanceof CSSStyleValue,
315
        'Specified value must be a CSSStyleValue');
316
317
      if (specified || example.defaultSpecified) {
318
        (specified || example.defaultSpecified)(example.input, specifiedResult);
319
      } else {
320
        assert_style_value_equals(specifiedResult, example.input,
321
          `Setting ${example.description} and getting its specified value`);
322
      }
323
324
      // computed style
325
      const computedResult = element.computedStyleMap().get(propertyName);
326
      assert_not_equals(computedResult, null,
327
        'Computed value must not be null');
328
      assert_true(computedResult instanceof CSSStyleValue,
329
        'Computed value must be a CSSStyleValue');
330
331
      if (computed || example.defaultComputed) {
332
        (computed || example.defaultComputed)(example.input, computedResult);
333
      } else {
334
        assert_style_value_equals(computedResult, example.input,
335
          `Setting ${example.description} and getting its computed value`);
336
      }
337
    }
338
  }, `Can set '${propertyName}' to ${description}`);
339
}
340
341
// We have to special case CSSImageValue as they cannot be created with a
342
// constructor and are completely opaque.
343
function testIsImageValidForProperty(propertyName) {
344
  test(t => {
345
    let element1 = createDivWithStyle(t, `${propertyName}: url("/media/1x1-green.png")`);
346
    let element2 = createDivWithStyle(t);
347
348
    const result = element1.attributeStyleMap.get(propertyName);
349
    assert_not_equals(result, null, 'Image value must not be null');
350
    assert_class_string(result, 'CSSImageValue',
351
      'Image value must be a CSSImageValue');
352
353
    element2.attributeStyleMap.set(propertyName, result);
354
    assert_equals(element2.style[propertyName], element1.style[propertyName],
355
      'Image value can be set on different element');
356
  }, `Can set '${propertyName}' to an image`);
357
}
358
359
// Test that styleMap.set throws for invalid values
360
function testPropertyInvalid(propertyName, examples, description) {
361
  test(t => {
362
    let styleMap = createInlineStyleMap(t);
363
    for (const example of examples) {
364
      assert_throws_js(TypeError, () => styleMap.set(propertyName, example.input));
365
    }
366
  }, `Setting '${propertyName}' to ${description} throws TypeError`);
367
}
368
369
// Test that styleMap.get/.set roundtrips correctly for unsupported values.
370
function testUnsupportedValue(propertyName, cssText) {
371
  test(t => {
372
    let element1 = createDivWithStyle(t);
373
    let element2 = createDivWithStyle(t);
374
375
    element1.style[propertyName] = cssText;
376
    const result = element1.attributeStyleMap.get(propertyName);
377
    assert_not_equals(result, null,
378
      'Unsupported value must not be null');
379
    assert_class_string(result, 'CSSStyleValue',
380
      'Unsupported value must be a CSSStyleValue and not one of its subclasses');
381
382
    element2.attributeStyleMap.set(propertyName, result);
383
    assert_equals(element2.style[propertyName], element1.style[propertyName],
384
      'Unsupported value can be set on different element');
385
386
    const resultAll = element2.attributeStyleMap.getAll(propertyName);
387
    assert_style_value_equals(resultAll[0], result,
388
      `getAll() with single unsupported value returns single-item list ` +
389
      `with same result as get()`);
390
  }, `'${propertyName}' does not supported '${cssText}'`);
391
}
392
393
function createKeywordExample(keyword) {
394
  return {
395
    description: `the '${keyword}' keyword`,
396
    examples: [ { input: new CSSKeywordValue(keyword) } ]
397
  };
398
}
399
400
// Run a battery of StylePropertyMap tests on |propertyName|.
401
// Second argument is a list of test cases. A test case has the form:
402
//
403
// {
404
//   syntax: "<length>",
405
//   specified: /* a callback */ (optional)
406
//   computed: /* a callback */ (optional)
407
// }
408
//
409
// If a callback is passed to |specified|, then the callback will be passed
410
// two arguments:
411
// 1. The input test case
412
// 2. The result of calling get() on the inline style map (specified values).
413
//
414
// The callback should check if the result is expected using assert_* functions.
415
// If no callback is passed, then we assert that the result is the same as
416
// the input.
417
//
418
// Same goes for |computed|, but with the computed style map (computed values).
419
//
420
// FIXME: The reason we pass argument #2 is that it's sometimes difficult to
421
// compute exactly what the expected result should be (e.g. browser-specific
422
// values). Once we can do that, we can remove argument #2 and just return
423
// the expected result.
424
function runPropertyTests(propertyName, testCases) {
425
  let syntaxTested = new Set();
426
427
  // Every property should at least support CSS-wide keywords.
428
  testPropertyValid(propertyName,
429
    gCssWideKeywordsExamples,
430
    null, // should be as specified
431
    () => {}, // could be anything
432
    'CSS-wide keywords');
433
434
  // Every property should support values containing var() references.
435
  testPropertyValid(propertyName,
436
    gVarReferenceExamples,
437
    null, // should be as specified
438
    () => {}, // could compute to anything
439
    'var() references');
440
441
  for (const testCase of testCases) {
442
    // <image> is a special case
443
    if (testCase.syntax === '<image>') {
444
      testIsImageValidForProperty(propertyName);
445
      continue;
446
    }
447
448
    // Retrieve test examples for this test case's syntax. If the syntax
449
    // looks like a keyword, then create an example on the fly.
450
    const syntaxExamples = testCase.syntax.toLowerCase().match(/^[a-z0-9\-]+$/) ?
451
      createKeywordExample(testCase.syntax) :
452
      gTestSyntaxExamples[testCase.syntax];
453
454
    if (!syntaxExamples)
455
      throw new Error(`'${testCase.syntax}' is not a valid CSS component`);
456
457
    testPropertyValid(propertyName,
458
      syntaxExamples.examples,
459
      testCase.specified,
460
      testCase.computed,
461
      syntaxExamples.description);
462
463
    syntaxTested.add(testCase.syntax);
464
  }
465
466
  // Also test that styleMap.set rejects invalid CSSStyleValues.
467
  for (const [syntax, syntaxExamples] of Object.entries(gTestSyntaxExamples)) {
468
    if (!syntaxTested.has(syntax)) {
469
      testPropertyInvalid(propertyName,
470
        syntaxExamples.examples,
471
        syntaxExamples.description);
472
    }
473
  }
474
}
475
476
// Same as runPropertyTests but for list-valued properties.
477
function runListValuedPropertyTests(propertyName, testCases) {
478
  // TODO(https://crbug.com/545318): Run list-valued tests as well.
479
  runPropertyTests(propertyName, testCases);
480
}
481
482
// Check that |propertyName| doesn't "support" examples in |testExamples|.
483
// |testExamples| is a list of CSS string values. An "unsupported" value
484
// doesn't have a corresponding Typed OM representation. It normalizes as
485
// the base CSSStyleValue.
486
function runUnsupportedPropertyTests(propertyName, testExamples) {
487
  for (const cssText of testExamples) {
488
    testUnsupportedValue(propertyName, cssText);
489
  }
490
}
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/right-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/right-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/right.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/right.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'right' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('right', [
17
  { syntax: 'auto' },
18
  { syntax: '<percentage>' },
19
  { syntax: '<length>' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-behavior-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-behavior-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-behavior.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-behavior.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'scroll-behavior' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('scroll-behavior', [
17
  { syntax: 'auto' },
18
  { syntax: 'smooth' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-margin-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-margin-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-margin.html +32 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-margin.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>scroll-margin related properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const suffix of ['top', 'left', 'right', 'bottom']) {
17
  runPropertyTests('scroll-margin-' + suffix, [
18
    { syntax: '<length>' },
19
  ]);
20
}
21
22
for (const suffix of ['inline-start', 'block-start', 'inline-end', 'block-end']) {
23
  runPropertyTests('scroll-margin-' + suffix, [
24
    { syntax: '<length>' },
25
  ]);
26
}
27
28
runUnsupportedPropertyTests('scroll-margin',
29
  ['0px', '1px 2px', '3px 4px 5px', '6px 7px 8px 9px']
30
);
31
32
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>scroll-padding related properties</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
for (const suffix of ['top', 'left', 'right', 'bottom']) {
17
  runPropertyTests('scroll-padding-' + suffix, [
18
    { syntax: '<percentage>' },
19
    { syntax: '<length>' },
20
  ]);
21
}
22
23
for (const suffix of ['inline-start', 'block-start', 'inline-end', 'block-end']) {
24
  runPropertyTests('scroll-padding-' + suffix, [
25
    { syntax: '<percentage>' },
26
    { syntax: '<length>' },
27
  ]);
28
}
29
30
runUnsupportedPropertyTests('scroll-padding',
31
  ['0%', '1px 2px', '3% 4px 5%', '6px 7% 8% 9px']
32
);
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align.html +39 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-align.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'scroll-snap-align' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('scroll-snap-align', [
17
  {
18
    syntax: 'none',
19
    computed: assert_is_unsupported
20
  },
21
  {
22
    syntax: 'start',
23
    computed: assert_is_unsupported
24
  },
25
  {
26
    syntax: 'end',
27
    computed: assert_is_unsupported
28
  },
29
  {
30
    syntax: 'center',
31
    computed: assert_is_unsupported
32
  },
33
]);
34
35
runUnsupportedPropertyTests('scroll-snap-align', [
36
  'none center', 'end start'
37
]);
38
39
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-stop.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'scroll-snap-stop' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('scroll-snap-stop', [
17
  { syntax: 'normal' },
18
  { syntax: 'always' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'scroll-snap-type' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('scroll-snap-type', [
17
  { syntax: 'none' },
18
  { syntax: 'x' },
19
  { syntax: 'y' },
20
  { syntax: 'block' },
21
  { syntax: 'inline' },
22
  { syntax: 'both' },
23
]);
24
25
runUnsupportedPropertyTests('scroll-snap-type', [
26
  'x mandatory', 'inline proximity'
27
]);
28
29
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-gutter-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-gutter-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-gutter.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-gutter.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'scrollbar-gutter' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('scrollbar-gutter', [
17
    { syntax: 'auto' },
18
    { syntax: 'stable' }
19
]);
20
runUnsupportedPropertyTests('scrollbar-gutter', [
21
  'stable both-edges'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-width-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-width-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-width.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scrollbar-width.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'scrollbar-width' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('scrollbar-width', [
17
  { syntax: 'auto' },
18
  { syntax: 'thin' },
19
  { syntax: 'none' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-image-threshold-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-image-threshold-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-image-threshold.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-image-threshold.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'shape-image-threshold' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
function assert_is_equal_with_clamping(input, result) {
17
  const number = input.to('number');
18
19
  if (number.value < 0)
20
    assert_style_value_equals(result, new CSSUnitValue(0, 'number'));
21
  else if (number.value > 1)
22
    assert_style_value_equals(result, new CSSUnitValue(1, 'number'));
23
  else
24
    assert_style_value_equals(result, input);
25
}
26
27
runPropertyTests('shape-image-threshold', [
28
  {
29
    syntax: '<number>',
30
    computed: assert_is_equal_with_clamping
31
  },
32
]);
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-margin-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-margin-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-margin.html +27 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-margin.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'shape-margin' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('shape-margin', [
17
  {
18
    syntax: '<length>',
19
    specified: assert_is_equal_with_range_handling
20
  },
21
  {
22
    syntax: '<percentage>',
23
    specified: assert_is_equal_with_range_handling
24
  },
25
]);
26
27
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-outside-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-outside-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-outside.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-outside.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'shape-outside' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('shape-outside', [
17
  { syntax: 'none' },
18
  { syntax: 'margin-box' },
19
  { syntax: 'border-box' },
20
  { syntax: 'padding-box' },
21
  { syntax: 'content-box' },
22
  { syntax: '<image>' },
23
]);
24
25
// <basic-shape>s are not supported in level 1
26
runUnsupportedPropertyTests('shape-outside', [
27
  'inset(22% 12% 15px 35px)',
28
  'circle(6rem at 12rem 6rem)',
29
  'ellipse(115px 55px at 50% 40%)',
30
  'polygon(50% 20%, 90% 80%, 10% 80%)',
31
]);
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-rendering-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-rendering-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-rendering.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-rendering.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'shape-rendering' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('shape-rendering', [
17
  { syntax: 'auto' },
18
  { syntax: 'optimizespeed' },
19
  { syntax: 'crispedges' },
20
  { syntax: 'geometricprecision' },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/speak-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/speak-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/speak.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/speak.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'speak' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('speak', [
17
  { syntax: 'auto' },
18
  { syntax: 'never' },
19
  { syntax: 'always' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-color.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'stop-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('stop-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  }
22
]);
23
24
// <color>s are not supported in level 1
25
runUnsupportedPropertyTests('stop-color', [
26
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
27
  'transparent'
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-opacity-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-opacity-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-opacity.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stop-opacity.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'stop-opacity' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
function assert_is_equal_with_clamping(input, result) {
17
  const number = input.to('number');
18
19
  if (number.value < 0)
20
    assert_style_value_equals(result, new CSSUnitValue(0, 'number'));
21
  else if (number.value > 1)
22
    assert_style_value_equals(result, new CSSUnitValue(1, 'number'));
23
  else
24
    assert_style_value_equals(result, input);
25
}
26
27
runPropertyTests('stop-opacity', [
28
  {
29
    syntax: '<number>',
30
    computed: assert_is_equal_with_clamping
31
  },
32
]);
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dasharray-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dasharray-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dasharray.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dasharray.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'stroke-dasharray' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('stroke-dasharray', [
17
  { syntax: 'none' }
18
]);
19
20
runUnsupportedPropertyTests('stroke-dasharray', [
21
  '5% 1em 2%',
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dashoffset-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dashoffset-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dashoffset.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dashoffset.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'stroke-dashoffset' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('stroke-dashoffset', [
17
  { syntax: '<length>' },
18
  { syntax: '<percentage>' }
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linecap-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linecap-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linecap.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linecap.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'stroke-linecap' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('stroke-linecap', [
17
  { syntax: 'butt' },
18
  { syntax: 'round' },
19
  { syntax: 'square' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linejoin-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linejoin-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linejoin.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-linejoin.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'stroke-linejoin' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('stroke-linejoin', [
17
  { syntax: 'crop' },
18
  { syntax: 'arcs' },
19
  { syntax: 'miter' },
20
  { syntax: 'bevel' },
21
  { syntax: 'round' },
22
  { syntax: 'stupid' },
23
]);
24
25
runUnsupportedPropertyTests('stroke-linejoin', [
26
  'crop bevel', 'round arcs'
27
]);
28
29
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-miterlimit-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-miterlimit-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-miterlimit.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-miterlimit.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'stroke-miterlimit' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('stroke-miterlimit', [
17
  { syntax: '<number>' },
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-opacity-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-opacity-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-opacity.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-opacity.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'stroke-opacity' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
function assert_is_equal_with_clamping(input, result) {
17
  const number = input.to('number');
18
19
  if (number.value < 0)
20
    assert_style_value_equals(result, new CSSUnitValue(0, 'number'));
21
  else if (number.value > 1)
22
    assert_style_value_equals(result, new CSSUnitValue(1, 'number'));
23
  else
24
    assert_style_value_equals(result, input);
25
}
26
27
runPropertyTests('stroke-opacity', [
28
  {
29
    syntax: '<number>',
30
    computed: assert_is_equal_with_clamping
31
  },
32
]);
33
34
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-width-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-width-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-width.html +27 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-width.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'stroke-width' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('stroke-width', [
17
  {
18
    syntax: '<length>',
19
    specified: assert_is_equal_with_range_handling
20
  },
21
  {
22
    syntax: '<percentage>',
23
    specified: assert_is_equal_with_range_handling
24
  },
25
]);
26
27
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'stroke' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('stroke', [
17
  'black',
18
  'red gray',
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/tab-size-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/tab-size-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/tab-size.html +42 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/tab-size.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'tab-size' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('tab-size', [
17
  {
18
    // tab-size can be a non-negative number
19
    syntax: '<number>',
20
    specified: (input, result) => {
21
      if (input instanceof CSSUnitValue && (!Number.isInteger(input.value) || input.value < 0))
22
        assert_style_value_equals(result, new CSSMathSum(input));
23
      else
24
        assert_style_value_equals(result, input);
25
    },
26
    computed: (input, result) => {
27
      const number = input.to('number');
28
      if (number < 0)
29
        assert_style_value_equals(result, new CSSUnitValue(0, 'number'));
30
      else if (!Number.isInteger(number.value))
31
        assert_style_value_equals(result, new CSSUnitValue(number.value, 'number'));
32
      else
33
        assert_style_value_equals(result, number);
34
    }
35
  },
36
  {
37
    syntax: '<length>',
38
    specified: assert_is_equal_with_range_handling
39
  },
40
]);
41
42
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/table-layout-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/table-layout-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/table-layout.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/table-layout.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'table-layout' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('table-layout', [
17
  { syntax: 'auto' },
18
  { syntax: 'fixed' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align-last-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align-last-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align-last.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align-last.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-align-last' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-align-last', [
17
  { syntax: 'auto' },
18
  { syntax: 'start' },
19
  { syntax: 'end' },
20
  { syntax: 'left' },
21
  { syntax: 'right' },
22
  { syntax: 'center' },
23
  { syntax: 'justify' },
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-align.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-align' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-align', [
17
  { syntax: 'center' },
18
  { syntax: 'justify' },
19
  // and other keywords
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-anchor-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-anchor-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-anchor.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-anchor.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-anchor' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-anchor', [
17
  { syntax: 'start' },
18
  { syntax: 'middle' },
19
  { syntax: 'end' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-combine-upright-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-combine-upright-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-combine-upright.html +25 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-combine-upright.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-combine-upright' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-combine-upright', [
17
  { syntax: 'none' },
18
  { syntax: 'all' },
19
]);
20
21
runUnsupportedPropertyTests('text-combine-upright', [
22
  'digits 3'
23
]);
24
25
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-color.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-decoration-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-decoration-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  }
22
]);
23
24
// <color>s are not supported in level 1
25
runUnsupportedPropertyTests('text-decoration-color', [
26
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
27
  'transparent'
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-line-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-line-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-line.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-line.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-decoration-line' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-decoration-line', [
17
  { syntax: 'none' },
18
  { syntax: 'underline' },
19
  { syntax: 'overline' },
20
  { syntax: 'line-through' },
21
  { syntax: 'blink' },
22
  { syntax: 'spelling-error' },
23
  { syntax: 'grammar-error' },
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip-ink.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-decoration-skip-ink' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-decoration-skip-ink', [
17
  { syntax: 'auto' },
18
  { syntax: 'none' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip.html +29 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-skip.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-decoration-skip' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-decoration-skip', [
17
  { syntax: 'none' },
18
  { syntax: 'objects' },
19
  { syntax: 'edges' },
20
  { syntax: 'box-decoration' },
21
  { syntax: 'spaces' },
22
]);
23
24
runUnsupportedPropertyTests('text-decoration-skip', [
25
  'objects spaces', 'leading-spaces trailing-spaces',
26
  'objects edges box-decoration'
27
]);
28
29
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-style-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-style-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-style.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-style.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-decoration-style' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-decoration-style', [
17
  { syntax: 'solid' },
18
  { syntax: 'double' },
19
  { syntax: 'dotted' },
20
  { syntax: 'dashed' },
21
  { syntax: 'wavy' },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-decoration-thickness' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-decoration-thickness', [
17
  { syntax: 'auto' },
18
  {
19
    syntax: '<length>',
20
  },
21
  {
22
    syntax: '<percentage>',
23
  },
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-decoration' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('text-decoration', [
17
  'underline', 'underline dotted #ff3028', 'green wavy underline'
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-color-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-color-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-color.html +30 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-color.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-emphasis-color' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-emphasis-color', [
17
  {
18
    syntax: 'currentcolor',
19
    // computes to a <color>, which is not supported in level 1
20
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
21
  }
22
]);
23
24
// <color>s are not supported in level 1
25
runUnsupportedPropertyTests('text-emphasis-color', [
26
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
27
  'transparent'
28
]);
29
30
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-indent-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-indent-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-indent.html +25 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-indent.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-indent' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-indent', [
17
  { syntax: '<length>' },
18
  { syntax: '<percentage>' },
19
]);
20
21
runUnsupportedPropertyTests('text-indent', [
22
  '5em each-line', '5em hanging', '5em hanging each-line'
23
]);
24
25
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-justify-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-justify-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-justify.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-justify.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-justify' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-justify', [
17
  { syntax: 'auto' },
18
  { syntax: 'none' },
19
  { syntax: 'inter-word' },
20
  { syntax: 'inter-character' },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-orientation-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-orientation-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-orientation.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-orientation.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-orientation' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-orientation', [
17
  { syntax: 'mixed' },
18
  { syntax: 'upright' },
19
  { syntax: 'sideways' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-overflow-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-overflow-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-overflow.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-overflow.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-overflow' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-overflow', [
17
  { syntax: 'clip' },
18
  { syntax: 'ellipsis' },
19
  { syntax: 'fade' },
20
]);
21
22
runUnsupportedPropertyTests('text-overflow', [
23
  'clip ellipsis', '"..."', 'fade(1px, 50%)'
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-rendering-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-rendering-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-rendering.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-rendering.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-rendering' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-rendering', [
17
  { syntax: 'auto' },
18
  { syntax: 'optimizespeed' },
19
  { syntax: 'optimizelegibility' },
20
  { syntax: 'geometricprecision' },
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-shadow-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-shadow-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-shadow.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-shadow.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-shadow' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-shadow', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('text-shadow', [
21
  '1px 1px 2px pink', '1px 1px 2px red, 0 0 1em blue, 0 0 0.2em blue'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-size-adjust-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-size-adjust-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-size-adjust.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-size-adjust.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-size-adjust' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-size-adjust', [
17
  { syntax: 'none' },
18
  { syntax: 'auto' },
19
  { syntax: '<percentage>' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-transform-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-transform-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-transform.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-transform.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-transform' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-transform', [
17
  { syntax: 'none' },
18
  { syntax: 'captialize' },
19
  { syntax: 'uppercase' },
20
  { syntax: 'lowercase' },
21
  { syntax: 'full-width' },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-underline-offset' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-underline-offset', [
17
  { syntax: 'auto' },
18
  { syntax: '<length>' },
19
  { syntax: '<percentage>' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-position-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-position-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-position.html +27 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-position.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'text-underline-position' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('text-underline-position', [
17
  { syntax: 'auto' },
18
  { syntax: 'under' },
19
  { syntax: 'left' },
20
  { syntax: 'right' },
21
]);
22
23
runUnsupportedPropertyTests('text-underline-position', [
24
  'under left', 'right under'
25
]);
26
27
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/top-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/top-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/top.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/top.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'top' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('top', [
17
  { syntax: 'auto' },
18
  { syntax: '<percentage>' },
19
  { syntax: '<length>' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/touch-action-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/touch-action-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/touch-action.html +33 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/touch-action.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'touch-action' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('touch-action', [
17
  { syntax: 'auto' },
18
  { syntax: 'none' },
19
  { syntax: 'pan-x' },
20
  { syntax: 'pan-left' },
21
  { syntax: 'pan-right' },
22
  { syntax: 'pan-y' },
23
  { syntax: 'pan-up' },
24
  { syntax: 'pan-down' },
25
  { syntax: 'pinch-zoom' },
26
  { syntax: 'manipulation' },
27
]);
28
29
runUnsupportedPropertyTests('touch-action', [
30
  'pan-x pan-down', 'pan-down pinch-zoom pan-right'
31
]);
32
33
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-box-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-box-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-box.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-box.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'transform-box' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('transform-box', [
17
  { syntax: 'border-box' },
18
  { syntax: 'fill-box' },
19
  { syntax: 'view-box' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-interpolated-expected.txt +3 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-interpolated-expected.txt_sec1
1
2
FAIL Computed value for interpolated transforms is not null elem.computedStyleMap is not a function. (In 'elem.computedStyleMap()', 'elem.computedStyleMap' is undefined)
3
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-interpolated.html +31 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-interpolated.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'transform' property with an interpolated value</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<body>
11
<div id="log"></div>
12
<script>
13
'use strict';
14
15
// TODO: Try to support this sort of test with testsuite.js
16
test(t => {
17
  let elem = createDivWithStyle(t);
18
  elem.animate({
19
    transform: ['translate(1px, 1%)', 'rotate(45deg)']
20
  }, {
21
    fill: 'forwards',
22
    iterationStart: 0.5,
23
  });
24
25
  // TODO: The computed value in this case is not fully spec'd
26
  // See https://github.com/w3c/css-houdini-drafts/issues/425
27
  const result = elem.computedStyleMap().get('transform');
28
  assert_not_equals(result, null);
29
}, 'Computed value for interpolated transforms is not null');
30
31
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-style-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-style-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-style.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform-style.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'transform-style' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('transform-style', [
17
  { syntax: 'auto' },
18
  { syntax: 'flat' },
19
  { syntax: 'preserve-3d' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transform.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'transform' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('transform', [
17
  { syntax: 'none' },
18
  { syntax: '<transform>' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-delay-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-delay-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-delay.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-delay.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'transition-delay' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('transition-delay', [
17
  { syntax: '<time>' }
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-duration-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-duration-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-duration.html +19 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-duration.html_sec1
1
<meta charset="utf-8">
2
<title>'transition-duration' property</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<script src="resources/testsuite.js"></script>
10
<body>
11
<div id="log"></div>
12
<script>
13
'use strict';
14
15
runListValuedPropertyTests('transition-duration', [
16
  { syntax: '<time>' },
17
]);
18
19
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-expected.txt +5 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
3
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
4
5
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-property-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-property-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-property.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-property.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'transition-property' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('transition-property', [
17
  { syntax: 'none' },
18
]);
19
20
runUnsupportedPropertyTests('transition-property', [
21
  'width', 'width, height', 'all'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-timing-function-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-timing-function-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-timing-function.html +40 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-timing-function.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'transition-timing-function' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runListValuedPropertyTests('transition-timing-function', [
17
  { syntax: 'linear' },
18
  { syntax: 'ease' },
19
  { syntax: 'ease-in' },
20
  { syntax: 'ease-out' },
21
  { syntax: 'ease-in-out' },
22
  {
23
    syntax: 'step-start',
24
    computed: (_, result) => {
25
      assert_equals(result.toString(), 'steps(1, start)');
26
    }
27
  },
28
  {
29
    syntax: 'step-end',
30
    computed: (_, result) => {
31
      assert_equals(result.toString(), 'steps(1)');
32
    }
33
  },
34
]);
35
36
runUnsupportedPropertyTests('transition-timing-function', [
37
  'cubic-bezier(0.1, 0.7, 1.0, 0.1)', 'steps(4, end)'
38
]);
39
40
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition.html +20 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'transition' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runUnsupportedPropertyTests('transition', [
17
  'none', 'none, none', 'margin-right 4s', 'all 0.5s ease-out, color 1s'
18
]);
19
20
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/unicode-bidi-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/unicode-bidi-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/unicode-bidi.html +25 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/unicode-bidi.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'unicode-bidi' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('unicode-bidi', [
17
  { syntax: 'normal' },
18
  { syntax: 'embed' },
19
  { syntax: 'isolate' },
20
  { syntax: 'bidi-override' },
21
  { syntax: 'isolate-override' },
22
  { syntax: 'plaintext' },
23
]);
24
25
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/user-select-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/user-select-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/user-select.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/user-select.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'user-select' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('user-select', [
17
  { syntax: 'auto' },
18
  { syntax: 'text' },
19
  { syntax: 'none' },
20
  { syntax: 'contain' },
21
  { syntax: 'all' },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vector-effect-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vector-effect-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vector-effect.html +21 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vector-effect.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'vector-effect' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('vector-effect', [
17
  { syntax: 'non-scaling-stroke' },
18
  { syntax: 'none' },
19
]);
20
21
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vertical-align-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vertical-align-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vertical-align.html +23 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vertical-align.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'vertical-align' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('vertical-align', [
17
  { syntax: 'baseline'},
18
  // and other keywords
19
  { syntax: '<length>' },
20
  { syntax: '<percentage>' }
21
]);
22
23
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/visibility-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/visibility-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/visibility.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/visibility.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'visibility' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('visibility', [
17
  { syntax: 'visible'},
18
  { syntax: 'hidden' },
19
  { syntax: 'collapse' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/white-space-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/white-space-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/white-space.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/white-space.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'white-space' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('white-space', [
17
  { syntax: 'normal'},
18
  { syntax: 'pre' },
19
  { syntax: 'nowrap' },
20
  { syntax: 'pre-wrap' },
21
  { syntax: 'pre-line' },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/widows-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/widows-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/widows.html +37 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/widows.html_sec1
1
<meta charset="utf-8">
2
<title>'widows' property</title>
3
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
6
<script src="/resources/testharness.js"></script>
7
<script src="/resources/testharnessreport.js"></script>
8
<script src="../../resources/testhelper.js"></script>
9
<script src="resources/testsuite.js"></script>
10
<body>
11
<div id="log"></div>
12
<script>
13
'use strict';
14
15
runPropertyTests('widows', [
16
  {
17
    syntax: '<number>',
18
    // widows needs to be a positive integer
19
    specified: (input, result) => {
20
      if (input instanceof CSSUnitValue && (!Number.isInteger(input.value) || input.value < 1))
21
        assert_style_value_equals(result, new CSSMathSum(input));
22
      else
23
        assert_style_value_equals(result, input);
24
    },
25
    computed: (input, result) => {
26
      const number = input.to('number');
27
      if (number < 1)
28
        assert_style_value_equals(result, new CSSUnitValue(1, 'number'));
29
      else if (!Number.isInteger(number.value))
30
        assert_style_value_equals(result, new CSSUnitValue(Math.round(number.value), 'number'));
31
      else
32
        assert_style_value_equals(result, number);
33
    }
34
  },
35
]);
36
37
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/width-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/width-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/width.html +51 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/width.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'width' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('width', [
17
  { syntax: 'auto' },
18
  {
19
    syntax: '<percentage>',
20
    specified: assert_is_equal_with_range_handling
21
  },
22
  {
23
    syntax: '<length>',
24
    specified: assert_is_equal_with_range_handling
25
  },
26
]);
27
28
runPropertyTests('min-width', [
29
  {
30
    syntax: '<percentage>',
31
    specified: assert_is_equal_with_range_handling
32
  },
33
  {
34
    syntax: '<length>',
35
    specified: assert_is_equal_with_range_handling
36
  },
37
]);
38
39
runPropertyTests('max-width', [
40
  { syntax: 'none' },
41
  {
42
    syntax: '<percentage>',
43
    specified: assert_is_equal_with_range_handling
44
  },
45
  {
46
    syntax: '<length>',
47
    specified: assert_is_equal_with_range_handling
48
  },
49
]);
50
51
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/will-change-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/will-change-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/will-change.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/will-change.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'will-change' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('will-change', [
17
  { syntax: 'auto' },
18
]);
19
20
runUnsupportedPropertyTests('will-change', [
21
  'scroll-position', 'contents, foo, scroll-position'
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-break-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-break-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-break.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-break.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'word-break' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('word-break', [
17
  { syntax: 'normal' },
18
  { syntax: 'keep-all' },
19
  { syntax: 'break-all' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-spacing-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-spacing-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-spacing.html +22 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-spacing.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'word-spacing' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('word-spacing', [
17
  { syntax: 'normal' },
18
  { syntax: '<length>' },
19
  { syntax: '<percentage>' },
20
]);
21
22
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-wrap-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-wrap-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-wrap.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-wrap.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'word-wrap' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('word-wrap', [
17
  { syntax: 'normal' },
18
  { syntax: 'break-word' },
19
  { syntax: 'break-spaces' },
20
]);
21
22
runUnsupportedPropertyTests('word-wrap', [
23
  'break-word break-spaces'
24
]);
25
26
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/writing-mode-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/writing-mode-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/writing-mode.html +24 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/writing-mode.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'writing-mode' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('writing-mode', [
17
  { syntax: 'horizontal-tb' },
18
  { syntax: 'vertical-rl' },
19
  { syntax: 'vertical-lr' },
20
  { syntax: 'sideways-rl' },
21
  { syntax: 'sideways-lr' },
22
]);
23
24
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/z-index-expected.txt +6 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/z-index-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSKeywordValue
2
CONSOLE MESSAGE: ReferenceError: Cannot access uninitialized variable.
3
4
Harness Error (FAIL), message = ReferenceError: Can't find variable: CSSKeywordValue
5
6
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/z-index.html +37 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/z-index.html_sec1
1
<!doctype html>
2
<meta charset="utf-8">
3
<title>'z-index' property</title>
4
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
5
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
6
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
7
<script src="/resources/testharness.js"></script>
8
<script src="/resources/testharnessreport.js"></script>
9
<script src="../../resources/testhelper.js"></script>
10
<script src="resources/testsuite.js"></script>
11
<body>
12
<div id="log"></div>
13
<script>
14
'use strict';
15
16
runPropertyTests('z-index', [
17
  { syntax: 'auto' },
18
  {
19
    syntax: '<number>',
20
    // z-index needs to be an integer
21
    specified: (input, result) => {
22
      if (input instanceof CSSUnitValue && !Number.isInteger(input.value))
23
        assert_style_value_equals(result, new CSSMathSum(input));
24
      else
25
        assert_style_value_equals(result, input);
26
    },
27
    computed: (input, result) => {
28
      const number = input.to('number');
29
      if (!Number.isInteger(number.value))
30
        assert_style_value_equals(result, new CSSUnitValue(Math.round(number.value), 'number'));
31
      else
32
        assert_style_value_equals(result, number);
33
    }
34
  }
35
]);
36
37
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/width-by-max-px-em-expected.txt +10 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/width-by-max-px-em-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSMathMax
2
layer at (0,0) size 800x600
3
  RenderView at (0,0) size 800x600
4
layer at (0,0) size 800x158
5
  RenderBlock {HTML} at (0,0) size 800x158
6
    RenderBody {BODY} at (8,16) size 784x134
7
      RenderBlock {P} at (0,0) size 784x18
8
        RenderText {#text} at (0,0) size 274x18
9
          text run at (0,0) width 274: "Test passes if there is a filled green square."
10
      RenderBlock {DIV} at (0,34) size 784x100 [bgcolor=#008000]
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/width-by-max-px-em.html +15 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/width-by-max-px-em.html_sec1
1
<!DOCTYPE html>
2
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
3
<link rel="help" href="https://www.w3.org/TR/css-typed-om-1/#stylevalue-subclasses">
4
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
5
<meta name="assert" content="'width' can be set with a CSSMathMax object.">
6
<style>
7
#target { font-size: 10px; background-color: green; height: 100px; }
8
</style>
9
<p>Test passes if there is a filled green square.</p>
10
<div id=target></div>
11
<script>
12
const width = new CSSMathMax(CSS.em(10), CSS.px(90));
13
const target = document.querySelector('#target');
14
target.attributeStyleMap.set('width', width);
15
</script>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/width-by-min-px-em-expected.txt +10 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/width-by-min-px-em-expected.txt_sec1
1
CONSOLE MESSAGE: ReferenceError: Can't find variable: CSSMathMin
2
layer at (0,0) size 800x600
3
  RenderView at (0,0) size 800x600
4
layer at (0,0) size 800x158
5
  RenderBlock {HTML} at (0,0) size 800x158
6
    RenderBody {BODY} at (8,16) size 784x134
7
      RenderBlock {P} at (0,0) size 784x18
8
        RenderText {#text} at (0,0) size 274x18
9
          text run at (0,0) width 274: "Test passes if there is a filled green square."
10
      RenderBlock {DIV} at (0,34) size 784x100 [bgcolor=#008000]
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/width-by-min-px-em.html +15 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/width-by-min-px-em.html_sec1
1
<!DOCTYPE html>
2
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
3
<link rel="help" href="https://www.w3.org/TR/css-typed-om-1/#stylevalue-subclasses">
4
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
5
<meta name="assert" content="'width' can be set with a CSSMathMin object.">
6
<style>
7
#target { font-size: 10px; background-color: green; height: 100px; }
8
</style>
9
<p>Test passes if there is a filled green square.</p>
10
<div id=target></div>
11
<script>
12
const width = new CSSMathMin(CSS.em(10), CSS.px(110));
13
const target = document.querySelector('#target');
14
target.attributeStyleMap.set('width', width);
15
</script>

Return to Bug 229177