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

Feature request: workarounds and inline pragmas #408

Closed
Mrten opened this issue Nov 5, 2019 · 1 comment
Closed

Feature request: workarounds and inline pragmas #408

Mrten opened this issue Nov 5, 2019 · 1 comment

Comments

@Mrten
Copy link

Mrten commented Nov 5, 2019

When you write multiple equivalent statements csso removes the duplicate ones. This is a bit difficult if you write backup statements to support older browsers (IE):

.foo { color: #ff0000; }
.foo { color: --red; }

get merged to

.foo{color:--red}

Now, I can use --no-restructure and the two lines will stay, however, this disables an possibly important optimization overall.

Would it be possible to have pragma's to say that some lines should not be merged?

For example:

/* +csso: no-restructure */
.foo { color: #ff0000; }
.foo { color: --red; }
/* -csso: no-restructure */
@Mrten
Copy link
Author

Mrten commented Nov 5, 2019

I think this is a wrong example, closing.

@Mrten Mrten closed this as completed Nov 5, 2019
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