[4.1.2 / 2017-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v4.1.1...4.1)
==================
+* Fixed issue [#939](https://github.com/jakubpawlowicz/clean-css/issues/939) - semicolon after `@apply` at rule.
* Fixed issue [#940](https://github.com/jakubpawlowicz/clean-css/issues/940) - handling more `font` keywords.
* Fixed issue [#941](https://github.com/jakubpawlowicz/clean-css/issues/941) - breaking up vendor prefixed `animation`.
switch (token[0]) {
case Token.AT_RULE:
store(context, token);
- store(context, position < lastPropertyAt ? semicolon(context, Breaks.AfterProperty, false) : emptyCharacter);
+ store(context, semicolon(context, Breaks.AfterProperty, false));
break;
case Token.COMMENT:
store(context, token);
}, { inline: 'none' })
)
.addBatch(
- optimizerContext('body at-rules', {
+ optimizerContext('@apply', {
'single @apply': [
- 'a{@apply(--rule)}',
- 'a{@apply(--rule)}'
+ 'a{@apply(--rule);}',
+ 'a{@apply(--rule);}'
],
'multiple @apply': [
- 'a{@apply(--rule1);@apply(--rule2)}',
- 'a{@apply(--rule1);@apply(--rule2)}'
+ 'a{@apply(--rule1);@apply(--rule2);}',
+ 'a{@apply(--rule1);@apply(--rule2);}'
],
'multiple @apply with some styling': [
'a{@apply(--rule1);@apply(--rule2);color:red;display:block}',
'a{@apply(--rule1);@apply(--rule2);color:red;display:block}'
],
'@apply another rule within :root context': [
- ':root{--layout:{display:flex};--layout-horizontal:{@apply(--layout)};}',
- ':root{--layout:{display:flex};--layout-horizontal:{@apply(--layout)};}'
+ ':root{--layout:{display:flex};--layout-horizontal:{@apply(--layout);};}',
+ ':root{--layout:{display:flex};--layout-horizontal:{@apply(--layout);};}'
]
})
)