Open mariusGundersen opened 2 months ago
@mariusGundersen Experimental CSS, by definition, is generally not supported by Less. That said, Less's default behavior of bubbling any at-rule that is undefined should probably be re-thought, or an escape-hatch provided. So this is more a feature request than a bug.
With more and more @-rules being added (e.g. @starting-style
and @position-try
) and browsers supporting nested css (and thus @-rules), I think the default behavior of Less should indeed be changed. Should we move this into a separate ticket?
Additional information:
@starting-style
is now supported on Chromium and WebKit. Firefox has it implemented and plans to enable it soon.
To reproduce:
Playground link
Current behavior:
This produces the following output, which is clearly incorrect:
Expected behavior:
It should produce the following css:
Environment information:
less
version: 4.2.0This is based on the sample code from mdn: https://developer.mozilla.org/en-US/docs/Web/CSS/@starting-style