|
235 | 235 | --variable-property-after-property: 3px; |
236 | 236 | --variable-property-after-assignment: 4px; |
237 | 237 | --variable-property-before-assignment: 5px; |
238 | | - --variable-into-first-variable: 9px; |
239 | | - --variable-into-second-variable: 10px; |
240 | | - --variable-into-third-variable: 11px; |
241 | 238 | } |
242 | 239 | </style> |
243 | 240 | <child-variable-with-var id="child"></child-variable-with-var> |
|
254 | 251 | --variable-between-properties: 6px; |
255 | 252 | background-color: var(--variable-property-before-property); padding-top: var(--variable-property-after-property); |
256 | 253 | --variable-assignment-before-property: 7px; padding-bottom: var(--variable-property-after-assignment); |
257 | | - padding-left: var(--variable-property-before-assignment);--variable-assignment-after-property: 8px; |
258 | | - top: 12px;--variable-from-other-variable: var(--variable-into-first-variable);--variable-from-another-variable: var(--variable-into-second-variable); --variable-from-last-variable: var(--variable-into-third-variable); |
| 254 | + padding-left: var(--variable-property-before-assignment);--variable-assignment-after-property: 8px |
259 | 255 | } |
260 | 256 | </style> |
261 | 257 | <child-of-child-with-var id="child"></child-of-child-with-var> |
|
270 | 266 | padding-right: var(--variable-between-properties); |
271 | 267 | margin-left: var(--variable-assignment-before-property); |
272 | 268 | margin-right: var(--variable-assignment-after-property); |
273 | | - bottom: var(--variable-from-other-variable); |
274 | | - left: var(--variable-from-another-variable); |
275 | | - right: var(--variable-from-last-variable); |
276 | 269 | } |
277 | 270 | </style> |
278 | 271 | Text |
|
475 | 468 | assertComputed(el, '7px', 'margin-left'); |
476 | 469 | assertComputed(el, '8px', 'margin-right'); |
477 | 470 | assertComputed(el, 'rgb(255, 255, 0)', 'background-color'); |
478 | | - assertComputed(el, '9px', 'bottom'); |
479 | | - assertComputed(el, '10px', 'left'); |
480 | | - assertComputed(el, '11px', 'right'); |
481 | | - assertComputed(el, '12px', 'top'); |
482 | 471 |
|
483 | 472 | // Because FireFox and Chrome parse font-family differently... |
484 | 473 | var computed = getComputedStyle(el); |
485 | 474 | assert.equal(computed['font-family'].replace(/['"]+/g, ''), 'Varela font'); |
486 | 475 | }); |
487 | | - |
488 | 476 | test('BEM-like CSS selectors under media queries', function() { |
489 | 477 | assertComputed(document.querySelector('.foo--bar'), '3px'); |
490 | 478 | }); |
|
0 commit comments