Skip to content

css/scss bugs #3716

Open
Open

Description

@oligot

Prettier 1.10.2
Playground link

--parser scss
--use-tabs

Input:

strong,
//sub, sup,
u,
i, center,
dl,
time
, mark,
audio,
video {
}

Output:

strong,
//sub, sup,
u,
i, center,
dl,
time
, mark,
audio,
video {
}

Expected behavior:

strong,
//sub, sup,
u,
i, 
center,
dl,
time, 
mark,
audio,
video {
}

Activity

  1. j-f1 commented on Jan 11, 2018

    @j-f1
    Member

    We recently removed formatting for selectors with //-style comments in #3649 because the selector parser we use doesn’t correctly parse them, which led to pieces of selectors being commented out.

  2. added
    area:comments
    scope:dependency
    lang:css/scss/less
    on Jan 11, 2018
  3. alexander-akait commented on Mar 26, 2018

    @alexander-akait
    Member

    Related.
    Input:

    $my-list:
      'foo', // Foo
      'bar'; // Bar
    
    $my-map: (
      'foo': 1, // Foo
      'bar': 2, // Bar
    );

    Output:

    $my-list: "foo", / / Foo "bar"; // Bar
    
    $my-map: (
      "foo": 1,
      / / Foo "bar": 2,
      / / Bar
    );
    
  4. darekkay commented on May 16, 2018

    @darekkay

    The last comment is related to #4143 .

  5. added theissue type on Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:commentslang:css/scss/lessscope:dependency

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions