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

refactor: parseNestedCSS function #4208

Merged
merged 1 commit into from Apr 13, 2018
Merged

Conversation

alexander-akait
Copy link
Member

Improve speed and fix places where we can break code

@@ -357,7 +357,7 @@ $KeepScssVar: val;
.Keep();
.Keep(4px) !important;
.Keep() when (@Keep=Keep);
.Keep() when (@Keep=12px);
.Keep() when (@Keep=12PX);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In last LESS version value case sensitivity, let's output as is

@@ -1303,20 +1303,20 @@ $var: /* comment 1 */ all /* comment 2 */ !default /* comment 3 */ ; /* comment
/* comment 20 */
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$var: /* comment 1 */ all /* comment 2 */ !default /* comment 3 */ ; /* comment 4 */
$var: /* comment 1 */ all /* comment 2 */ !default /* comment 3 */; /* comment 4 */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better output comments in value properties

.desktop-and-old-ie({
background-color: red;
});
.desktop-and-old-ie({background-color: red;});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use postcss-selector-parser and it is can break code. We should use postcss-value-parser for this. I can do this in other PR.

@alexander-akait
Copy link
Member Author

/cc @lydell @j-f1

@alexander-akait alexander-akait merged commit 7c0dee6 into master Apr 13, 2018
@alexander-akait alexander-akait deleted the refactor-parse-nested-CSS branch April 13, 2018 19:13
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jul 12, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants