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

Media query range context has undesirable spaces after formatting #2164

Open
romainmenke opened this issue Jul 6, 2023 · 0 comments
Open

Comments

@romainmenke
Copy link

romainmenke commented Jul 6, 2023

Description

Formatting media queries with a range context doesn't result in the expected spaces before and after range operators.

Input

The code looked like this before beautification:

@media (width >= 90rem) {
    .foo {}
}

@media (width>=90rem) {
    .foo {}
}

@media (width  >=  90rem) {
    .foo {}
}

Expected Output

The code should have looked like this after beautification:

@media (width >= 90rem) {
    .foo {}
}

@media (width >= 90rem) {
    .foo {}
}

@media (width >= 90rem) {
    .foo {}
}

Actual Output

The code actually looked like this after beautification:

@media (width >=90rem) {
    .foo {}
}

@media (width>=90rem) {
    .foo {}
}

@media (width >=90rem) {
    .foo {}
}

Steps to Reproduce

Environment

https://beautifier.io

Settings

{
  "indent_size": "4",
  "indent_char": " ",
  "max_preserve_newlines": "5",
  "preserve_newlines": true,
  "keep_array_indentation": false,
  "break_chained_methods": false,
  "indent_scripts": "normal",
  "brace_style": "collapse",
  "space_before_conditional": true,
  "unescape_strings": false,
  "jslint_happy": false,
  "end_with_newline": false,
  "wrap_line_length": "0",
  "indent_inner_html": false,
  "comma_first": false,
  "e4x": false,
  "indent_empty_lines": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants