Add support for import at-rule layer functionality#4340
Add support for import at-rule layer functionality#4340matthew-dean merged 5 commits intoless:masterfrom
Conversation
* Add support for layer at-rule. * Add tests for layer at-rule.
* Add support for layer import at-rule syntax. See: https://developer.mozilla.org/en-US/docs/Web/CSS/@import
* Cleanup layer import at-rule solution before merge.
|
Hi @puckowski! Do you have updates on this? Thanks! |
|
@luangong Hello, this PR is currently awaiting peer review from another Less.js contributor before it can be merged. @matthew-dean What do you think of this PR to enhance |
|
@puckowski Sorry for missing this. So this just adds support for |
|
Yes, this PR bolsters which are documented here: https://developer.mozilla.org/en-US/docs/Web/CSS/@import |
* Add fix for media query list parsing in import. * Add test for import with media query list syntax.
|
Cool, thanks! |
Is there a ticket about this (I couldn't find one) or it's simply not planned? |
|
@jmpri3 I have made a note to take a look at expanding support of Less |
|
For now I'm successfully using the @layer directive for my needs. Thanks for all the hard work, @puckowski! |
What:
Add support for
@importlayer functionality documented in https://developer.mozilla.org/en-US/docs/Web/CSS/@importBuilds on top of #4337
The above syntax has widely available browser support according to MDN.
Why:
Supporting the additional
@importCSS syntax may benefit Less users.Checklist:
I did not venture into
.lessimports using this syntax as existingimportcode makes a clear distinction between.cssand.lessand the two have significantly different behavior.