|
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"> |
5 | | - <title>column-rule-outset properties interpolation</title> |
| 5 | + <title>column-rule-inset properties interpolation</title> |
6 | 6 | <link rel=" author" title=" Javier Contreras" href=" mailto:[email protected]" > |
7 | 7 | <link rel="help" href="https://drafts.csswg.org/css-gaps-1/#outset"> |
8 | 8 | <script src="/resources/testharness.js"></script> |
|
11 | 11 | <style> |
12 | 12 | .parent { |
13 | 13 | column-rule-style: solid; |
14 | | - column-rule-edge-start-outset: 20px; |
15 | | - column-rule-edge-end-outset: 20px; |
16 | | - column-rule-interior-start-outset: 20px; |
17 | | - column-rule-interior-end-outset: 20px; |
| 14 | + column-rule-edge-start-inset: 20px; |
| 15 | + column-rule-edge-end-inset: 20px; |
| 16 | + column-rule-interior-start-inset: 20px; |
| 17 | + column-rule-interior-end-inset: 20px; |
18 | 18 | } |
19 | 19 |
|
20 | 20 | .target { |
|
24 | 24 | column-rule: 10px solid black; |
25 | 25 |
|
26 | 26 | column-rule-break: intersection; |
27 | | - column-rule-edge-start-outset: 5px; |
28 | | - column-rule-edge-end-outset: 5px; |
29 | | - column-rule-interior-start-outset: 5px; |
30 | | - column-rule-interior-end-outset: 5px; |
| 27 | + column-rule-edge-start-inset: 5px; |
| 28 | + column-rule-edge-end-inset: 5px; |
| 29 | + column-rule-interior-start-inset: 5px; |
| 30 | + column-rule-interior-end-inset: 5px; |
31 | 31 | } |
32 | 32 | </style> |
33 | 33 | </head> |
34 | 34 | <body> |
35 | 35 | <script> |
36 | 36 | test_interpolation({ |
37 | | - property: 'column-rule-edge-start-outset', |
| 37 | + property: 'column-rule-edge-start-inset', |
38 | 38 | from: neutralKeyframe, |
39 | 39 | to: '15px', |
40 | 40 | }, [ |
|
46 | 46 | { at: 1.5, expect: '20px' }, |
47 | 47 | ]); |
48 | 48 | test_interpolation({ |
49 | | - property: 'column-rule-edge-end-outset', |
| 49 | + property: 'column-rule-edge-end-inset', |
50 | 50 | from: neutralKeyframe, |
51 | 51 | to: '15px', |
52 | 52 | }, [ |
|
58 | 58 | { at: 1.5, expect: '20px' }, |
59 | 59 | ]); |
60 | 60 | test_interpolation({ |
61 | | - property: 'column-rule-interior-start-outset', |
| 61 | + property: 'column-rule-interior-start-inset', |
62 | 62 | from: neutralKeyframe, |
63 | 63 | to: '15px', |
64 | 64 | }, [ |
|
70 | 70 | { at: 1.5, expect: '20px' }, |
71 | 71 | ]); |
72 | 72 | test_interpolation({ |
73 | | - property: 'column-rule-interior-end-outset', |
| 73 | + property: 'column-rule-interior-end-inset', |
74 | 74 | from: neutralKeyframe, |
75 | 75 | to: '15px', |
76 | 76 | }, [ |
|
83 | 83 | ]); |
84 | 84 |
|
85 | 85 | test_interpolation({ |
86 | | - property: 'column-rule-edge-start-outset', |
| 86 | + property: 'column-rule-edge-start-inset', |
87 | 87 | from: 'initial', // initial for `edge` is 0px. |
88 | 88 | to: '10px', |
89 | 89 | }, [ |
|
95 | 95 | { at: 1.5, expect: '15px' }, |
96 | 96 | ]); |
97 | 97 | test_interpolation({ |
98 | | - property: 'column-rule-edge-end-outset', |
| 98 | + property: 'column-rule-edge-end-inset', |
99 | 99 | from: 'initial', // initial for `edge` is 0px. |
100 | 100 | to: '10px', |
101 | 101 | }, [ |
|
107 | 107 | { at: 1.5, expect: '15px' }, |
108 | 108 | ]); |
109 | 109 | test_interpolation({ |
110 | | - property: 'column-rule-interior-start-outset', |
| 110 | + property: 'column-rule-interior-start-inset', |
111 | 111 | from: 'initial', // initial is 50%. |
112 | 112 | to: '40%', |
113 | 113 | }, [ |
|
119 | 119 | { at: 1.5, expect: '35%' }, |
120 | 120 | ]); |
121 | 121 | test_interpolation({ |
122 | | - property: 'column-rule-interior-end-outset', |
| 122 | + property: 'column-rule-interior-end-inset', |
123 | 123 | from: 'initial', // initial is 50%. |
124 | 124 | to: '40%', |
125 | 125 | }, [ |
|
132 | 132 | ]); |
133 | 133 |
|
134 | 134 | test_interpolation({ |
135 | | - property: 'column-rule-edge-start-outset', |
| 135 | + property: 'column-rule-edge-start-inset', |
136 | 136 | from: 'inherit', |
137 | 137 | to: '10px', |
138 | 138 | }, [ |
|
144 | 144 | { at: 1.5, expect: '5px' }, |
145 | 145 | ]); |
146 | 146 | test_interpolation({ |
147 | | - property: 'column-rule-edge-end-outset', |
| 147 | + property: 'column-rule-edge-end-inset', |
148 | 148 | from: 'inherit', |
149 | 149 | to: '10px', |
150 | 150 | }, [ |
|
156 | 156 | { at: 1.5, expect: '5px' }, |
157 | 157 | ]); |
158 | 158 | test_interpolation({ |
159 | | - property: 'column-rule-interior-start-outset', |
| 159 | + property: 'column-rule-interior-start-inset', |
160 | 160 | from: 'inherit', |
161 | 161 | to: '10px', |
162 | 162 | }, [ |
|
168 | 168 | { at: 1.5, expect: '5px' }, |
169 | 169 | ]); |
170 | 170 | test_interpolation({ |
171 | | - property: 'column-rule-interior-end-outset', |
| 171 | + property: 'column-rule-interior-end-inset', |
172 | 172 | from: 'inherit', |
173 | 173 | to: '10px', |
174 | 174 | }, [ |
|
181 | 181 | ]); |
182 | 182 |
|
183 | 183 | test_interpolation({ |
184 | | - property: 'column-rule-edge-start-outset', |
| 184 | + property: 'column-rule-edge-start-inset', |
185 | 185 | from: 'unset', |
186 | 186 | to: '10px', |
187 | 187 | }, [ |
|
193 | 193 | { at: 1.5, expect: '15px' }, |
194 | 194 | ]); |
195 | 195 | test_interpolation({ |
196 | | - property: 'column-rule-edge-end-outset', |
| 196 | + property: 'column-rule-edge-end-inset', |
197 | 197 | from: 'unset', |
198 | 198 | to: '10px', |
199 | 199 | }, [ |
|
205 | 205 | { at: 1.5, expect: '15px' }, |
206 | 206 | ]); |
207 | 207 | test_interpolation({ |
208 | | - property: 'column-rule-interior-start-outset', |
| 208 | + property: 'column-rule-interior-start-inset', |
209 | 209 | from: 'unset', |
210 | 210 | to: '40%', |
211 | 211 | }, [ |
|
217 | 217 | { at: 1.5, expect: '35%' }, |
218 | 218 | ]); |
219 | 219 | test_interpolation({ |
220 | | - property: 'column-rule-interior-end-outset', |
| 220 | + property: 'column-rule-interior-end-inset', |
221 | 221 | from: 'unset', |
222 | 222 | to: '40%', |
223 | 223 | }, [ |
|
230 | 230 | ]); |
231 | 231 |
|
232 | 232 | test_interpolation({ |
233 | | - property: 'column-rule-edge-start-outset', |
| 233 | + property: 'column-rule-edge-start-inset', |
234 | 234 | from: '-5px', |
235 | 235 | to: '5px' |
236 | 236 | }, [ |
237 | | - { at: -0.3, expect: '-8px' }, // column-rule-edge-start-outset can be negative |
| 237 | + { at: -0.3, expect: '-8px' }, // column-rule-edge-start-inset can be negative |
238 | 238 | { at: 0, expect: '-5px' }, |
239 | 239 | { at: 0.3, expect: '-2px' }, |
240 | 240 | { at: 0.6, expect: '1px' }, |
241 | 241 | { at: 1, expect: '5px' }, |
242 | 242 | { at: 1.5, expect: '10px' }, |
243 | 243 | ]); |
244 | 244 | test_interpolation({ |
245 | | - property: 'column-rule-edge-end-outset', |
| 245 | + property: 'column-rule-edge-end-inset', |
246 | 246 | from: '-5px', |
247 | 247 | to: '5px' |
248 | 248 | }, [ |
249 | | - { at: -0.3, expect: '-8px' }, // column-rule-edge-end-outset can be negative |
| 249 | + { at: -0.3, expect: '-8px' }, // column-rule-edge-end-inset can be negative |
250 | 250 | { at: 0, expect: '-5px' }, |
251 | 251 | { at: 0.3, expect: '-2px' }, |
252 | 252 | { at: 0.6, expect: '1px' }, |
253 | 253 | { at: 1, expect: '5px' }, |
254 | 254 | { at: 1.5, expect: '10px' }, |
255 | 255 | ]); |
256 | 256 | test_interpolation({ |
257 | | - property: 'column-rule-interior-start-outset', |
| 257 | + property: 'column-rule-interior-start-inset', |
258 | 258 | from: '-5px', |
259 | 259 | to: '5px' |
260 | 260 | }, [ |
261 | | - { at: -0.3, expect: '-8px' }, // column-rule-interior-start-outset can be negative |
| 261 | + { at: -0.3, expect: '-8px' }, // column-rule-interior-start-inset can be negative |
262 | 262 | { at: 0, expect: '-5px' }, |
263 | 263 | { at: 0.3, expect: '-2px' }, |
264 | 264 | { at: 0.6, expect: '1px' }, |
265 | 265 | { at: 1, expect: '5px' }, |
266 | 266 | { at: 1.5, expect: '10px' }, |
267 | 267 | ]); |
268 | 268 | test_interpolation({ |
269 | | - property: 'column-rule-interior-end-outset', |
| 269 | + property: 'column-rule-interior-end-inset', |
270 | 270 | from: '-5px', |
271 | 271 | to: '5px' |
272 | 272 | }, [ |
273 | | - { at: -0.3, expect: '-8px' }, // column-rule-interior-end-outset can be negative |
| 273 | + { at: -0.3, expect: '-8px' }, // column-rule-interior-end-inset can be negative |
274 | 274 | { at: 0, expect: '-5px' }, |
275 | 275 | { at: 0.3, expect: '-2px' }, |
276 | 276 | { at: 0.6, expect: '1px' }, |
|
279 | 279 | ]); |
280 | 280 |
|
281 | 281 | test_interpolation({ |
282 | | - property: 'column-rule-edge-start-outset', |
| 282 | + property: 'column-rule-edge-start-inset', |
283 | 283 | from: '100%', |
284 | 284 | to: '1px', |
285 | 285 | }, [ |
|
291 | 291 | { at: 1.5, expect: 'calc(-50% + 1.5px)' }, |
292 | 292 | ]); |
293 | 293 | test_interpolation({ |
294 | | - property: 'column-rule-edge-end-outset', |
| 294 | + property: 'column-rule-edge-end-inset', |
295 | 295 | from: '100%', |
296 | 296 | to: '1px', |
297 | 297 | }, [ |
|
303 | 303 | { at: 1.5, expect: 'calc(-50% + 1.5px)' }, |
304 | 304 | ]); |
305 | 305 | test_interpolation({ |
306 | | - property: 'column-rule-interior-start-outset', |
| 306 | + property: 'column-rule-interior-start-inset', |
307 | 307 | from: '100%', |
308 | 308 | to: '1px', |
309 | 309 | }, [ |
|
315 | 315 | { at: 1.5, expect: 'calc(-50% + 1.5px)' }, |
316 | 316 | ]); |
317 | 317 | test_interpolation({ |
318 | | - property: 'column-rule-interior-end-outset', |
| 318 | + property: 'column-rule-interior-end-inset', |
319 | 319 | from: '100%', |
320 | 320 | to: '1px', |
321 | 321 | }, [ |
|
328 | 328 | ]); |
329 | 329 |
|
330 | 330 | test_interpolation({ |
331 | | - property: 'column-rule-edge-start-outset', |
| 331 | + property: 'column-rule-edge-start-inset', |
332 | 332 | from: '10px', |
333 | 333 | to: '10%', |
334 | 334 | }, [ |
|
340 | 340 | { at: 1.5, expect: 'calc(15% - 5px)' }, |
341 | 341 | ]); |
342 | 342 | test_interpolation({ |
343 | | - property: 'column-rule-edge-end-outset', |
| 343 | + property: 'column-rule-edge-end-inset', |
344 | 344 | from: '10px', |
345 | 345 | to: '10%', |
346 | 346 | }, [ |
|
352 | 352 | { at: 1.5, expect: 'calc(15% - 5px)' }, |
353 | 353 | ]); |
354 | 354 | test_interpolation({ |
355 | | - property: 'column-rule-interior-start-outset', |
| 355 | + property: 'column-rule-interior-start-inset', |
356 | 356 | from: '10px', |
357 | 357 | to: '10%', |
358 | 358 | }, [ |
|
364 | 364 | { at: 1.5, expect: 'calc(15% - 5px)' }, |
365 | 365 | ]); |
366 | 366 | test_interpolation({ |
367 | | - property: 'column-rule-interior-end-outset', |
| 367 | + property: 'column-rule-interior-end-inset', |
368 | 368 | from: '10px', |
369 | 369 | to: '10%', |
370 | 370 | }, [ |
|
0 commit comments