Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'page-break-inside' outputs incorrectly if followed by break-inside #2

Open
hobwell opened this issue Aug 1, 2017 · 0 comments
Open

Comments

@hobwell
Copy link

hobwell commented Aug 1, 2017

Installed product versions

  • Visual Studio: Community 2017
  • This extension: 0.9.38

Description

if a less file contains:

page-break-inside: avoid;
break-inside: avoid;

the less compiler instead outputs this to the css file:

-webkit-column-break-inside: avoid;
break-inside: avoid;

Steps to recreate

Place break-inside: avoid; on the line following page-break-inside: avoid; in a less file, then compile it and examine the relevant style in the css file.

Current behavior

Instead of outputting page-break-inside: avoid;, the less compiler is outputting -webkit-column-break-inside: avoid; if the page-break-inside: avoid; is immediately followed by break-inside: avoid;

The issue can be worked around by placing the lines in reverse order.

break-inside: avoid;
page-break-inside: avoid;

outputs correctly.

Expected behavior

The less compiler should output page-break-inside: avoid; regardless of what the following line is.

Gratitude

Thanks for making such an amazing tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant