8000 [Bug]: Wrong grid-template-areas order · Issue #1652 · cssnano/cssnano · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Bug]: Wrong grid-template-areas order #1652

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

Open
tonai opened this issue Jul 22, 2024 · 1 comment
Open

[Bug]: Wrong grid-template-areas order #1652

tonai opened this issue Jul 22, 2024 · 1 comment
Labels

Comments

@tonai
Copy link
tonai commented Jul 22, 2024

Describe the bug

When using the advanced preset the order of the areas defined with grid-template-areas are not respected.

Expected behaviour

When I write:

.project {
  display: grid;
  grid-template-areas:
    'b a'
    'b c';
}

I expect minified output to respect the order of the areas in grid-template-areas.

Steps to reproduce

  1. In the CSSnano playground past the above mentioned CSS
  2. Choose "Preset Advanced" in the preset dropdown
  3. Click "Minimize"
  4. The generated output is .project{display:grid;grid-template-areas:"b a" "a c"}

Version

7.0.4

Preset

advanced

Environment

System:
    OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz
    Memory: 24.38 GB / 30.74 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash

Package details

├─┬ cssnano@7.0.4
│ ├─┬ cssnano-preset-default@7.0.4
│ │ ├─┬ css-declaration-sorter@7.2.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ cssnano-utils@5.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-calc@10.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-colormin@7.0.1
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-convert-values@7.0.2
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-discard-comments@7.0.1
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-discard-duplicates@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-discard-empty@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-discard-overridden@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-merge-longhand@7.0.2
│ │ │ ├── postcss@8.4.39 deduped
│ │ │ └─┬ stylehacks@7.0.2
│ │ │   └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-merge-rules@7.0.2
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-minify-font-values@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-minify-gradients@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-minify-params@7.0.1
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-minify-selectors@7.0.2
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-normalize-charset@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-normalize-display-values@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-normalize-positions@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-normalize-repeat-style@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-normalize-string@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-normalize-timing-functions@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-normalize-unicode@7.0.1
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-normalize-url@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-normalize-whitespace@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-ordered-values@7.0.1
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-reduce-initial@7.0.1
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-reduce-transforms@7.0.0
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-svgo@7.0.1
│ │ │ └── postcss@8.4.39 deduped
│ │ ├─┬ postcss-unique-selectors@7.0.1
│ │ │ └── postcss@8.4.39 deduped
│ │ └── postcss@8.4.39 deduped
│ └── postcss@8.4.39 deduped
├─┬ postcss-cli@11.0.0
│ ├─┬ postcss-load-config@5.1.0
│ │ └── postcss@8.4.39 deduped
│ ├─┬ postcss-reporter@7.1.0
│ │ └── postcss@8.4.39 deduped
│ └── postcss@8.4.39 deduped
└── postcss@8.4.39

Additional context

No response

@ludofischer
Copy link
Collaborator

Since it is preset-advanced only, the issue should come from either discard-unused, merge-idents, reduce-idents or zindex.

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

No branches or pull requests

2 participants
0