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

Bump postcss-values-replace #941

Closed
wants to merge 4 commits into from

Conversation

SkReD
Copy link
Contributor

@SkReD SkReD commented Aug 24, 2020

Closes #909

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Thanks

/cc @anikethsaha

Copy link
Member

@anikethsaha anikethsaha left a comment

Choose a reason for hiding this comment

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

One question.
And also fix the linting issue

Comment on lines +29 to +32
if (u[0] === '.') {
u = u.slice(1);
}

Copy link
Member

Choose a reason for hiding this comment

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

Why removing the leading . ?

Copy link
Contributor Author

@SkReD SkReD Aug 25, 2020

Choose a reason for hiding this comment

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

my thought is that it is not the part of unit but the value

Copy link
Member

Choose a reason for hiding this comment

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

for input like https://github.com/TrySound/postcss-value-parser/blob/master/test/unit.js#L10, there would be still number (length) in the unit.

I wonder whether this should be fixed in postcss-value-parser as .3rem or 3rem is even a value unit or not.

cc @evilebottnawi

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Yes, it is not good idea

Copy link
Member

Choose a reason for hiding this comment

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

@SkReD can you undo this change and we can submit a issue in the parser repo as this should be handled by the parser not by the minifier

Comment on lines +29 to +32
if (u[0] === '.') {
u = u.slice(1);
}

Copy link
Member

Choose a reason for hiding this comment

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

for input like https://github.com/TrySound/postcss-value-parser/blob/master/test/unit.js#L10, there would be still number (length) in the unit.

I wonder whether this should be fixed in postcss-value-parser as .3rem or 3rem is even a value unit or not.

cc @evilebottnawi

@codecov-io
Copy link

codecov-io commented Oct 23, 2020

Codecov Report

Merging #941 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #941   +/-   ##
=======================================
  Coverage   97.51%   97.51%           
=======================================
  Files         120      120           
  Lines        3499     3501    +2     
  Branches     1057     1058    +1     
=======================================
+ Hits         3412     3414    +2     
  Misses         80       80           
  Partials        7        7           
Impacted Files Coverage Δ
packages/postcss-convert-values/src/index.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 91604d3...5ad05d2. Read the comment docs.

Copy link
Member

@anikethsaha anikethsaha left a comment

Choose a reason for hiding this comment

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

Could you please add a test case mentioned here #958

@SkReD SkReD force-pushed the bump-postcss-values-replace branch from 5d98f96 to 5ad05d2 Compare October 23, 2020 10:22
@ludofischer ludofischer added this to the 5.0.0 milestone Mar 9, 2021
@ludofischer
Copy link
Collaborator

css-value-parser has been updated on master already but I think the test cases in this issue are interesting. Should check what happens with the current rc.

@ludofischer
Copy link
Collaborator

Fixed in 5.0.0. I've added the commit with the test case to #1059

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