|
|
|
@ -213,11 +213,15 @@ describe('StyleManager', () => { |
|
|
|
|
|
|
|
test('Mixed classes', () => { |
|
|
|
const cmp = domc.addComponent('<div class="cls1 cls2"></div>'); |
|
|
|
const [rule1, rule2] = cssc.addRules(` |
|
|
|
const [a, b, rule1, rule2] = cssc.addRules(` |
|
|
|
h1 { color: white; } |
|
|
|
h1 .test { color: black; } |
|
|
|
.cls1 { color: red; } |
|
|
|
.cls1.cls2 { color: blue; } |
|
|
|
.cls2 { color: green; } |
|
|
|
.cls1.cls3 { color: green; } |
|
|
|
h2 { color: white; } |
|
|
|
h2 .test { color: black; } |
|
|
|
`);
|
|
|
|
em.setSelected(cmp); |
|
|
|
obj.__upSel(); |
|
|
|
|