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

[Bug]: Don't convert -webkit-line-clamp: initial to -webkit-line-clamp: none #1535

Closed
nex3 opened this issue Dec 7, 2023 · 0 comments · Fixed by #1564
Closed

[Bug]: Don't convert -webkit-line-clamp: initial to -webkit-line-clamp: none #1535

nex3 opened this issue Dec 7, 2023 · 0 comments · Fixed by #1564
Labels

Comments

@nex3
Copy link
Contributor

nex3 commented Dec 7, 2023

Describe the bug

Currently, postcss-reduce-initial will convert -webkit-line-clamp: initial to -webkit-line-clamp: none. However, the latter has dramatically lower browser compatibility (only Firefox supports the value none, not Edge or Safari).

Expected behaviour

-webkit-line-clamp: initial should be left as-is until -webkit-line-clamp: none is widely supported, or unless Firefox is the only targeted browser in the browserslist.

Steps to reproduce

  1. Go to https://cssnano.co/playground/
  2. Paste in a {-webkit-line-clamp: initial}

Version

6.0.1

Preset

default

Environment

Default playground environment

Package details

Default playground packages

Additional context

No response

ludofischer added a commit that referenced this issue Feb 23, 2024
Fix #1535

test(postcss-reduce-initial): replace spy with built-in mock

This concerns only the tests for the utilities used to retrieve the
property lists, so it is not code that will be run by users and
it only needs to run on the latest stable Node.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants