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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] :where() CSS pseudo-class function not working #150

Open
nasgnat opened this issue Jun 3, 2022 · 2 comments
Open

[Bug] :where() CSS pseudo-class function not working #150

nasgnat opened this issue Jun 3, 2022 · 2 comments
Assignees
Labels
Type: Bug Something isn't working as expected.

Comments

@nasgnat
Copy link

nasgnat commented Jun 3, 2022

馃悶 Bug Report

Describe the bug

The :where() CSS pseudo-class function does not work if preceded by a selector.


Is this a regression?

I am not sure.

To Reproduce

  1. Create a basic HTML page:
<!DOCTYPE html>
<html lang="id">
  <head>
    <title>Foo</title>
    <link href="style.css" rel="stylesheet">
  </head>
  <body>
    <header>
      <h1 class="title">Foo</h1>
      <p class="description">The quick brown fox jumps over the lazy dog.</p>
    </header>
  </body>
</html>
  1. The style.css file:
header :where(.description,.title) {
  padding-inline: 1rem;
}
  1. Open the style.css
  2. Right click on it and click "Minify this document."

Expected behaviour

header :where(.description,.title){padding-inline:1rem;}


Actual behaviour

header:where(.description,.title){padding-inline:1rem;}
Notice the missing space between "header" and ":where"


Media prove


Your environment


Additional context

Maybe there are some CSS pseudo-class functions that I haven't tried that are also affected by this issue.

@nasgnat nasgnat added the Type: Bug Something isn't working as expected. label Jun 3, 2022
@welcome
Copy link

welcome bot commented Jun 3, 2022

Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers!

@jmengual-sollutia
Copy link

jmengual-sollutia commented Sep 22, 2023

I have the same issue. Some solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

3 participants