question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

postcss-is-pseudo-class: Complex selectors in ':global :is(...)' can not be transformed to an equivalent selector without ':is()'

See original GitHub issue

I’m getting a lot of warnings from postcss of graphiql/graphiql.css

(794:1) postcss-is-pseudo-class: Complex selectors in ‘:global :is(.graphiql-markdown-deprecation, .CodeMirror-hint-information-deprecation-reason, .CodeMirror-info .info-deprecation) code, :global :is(.graphiql-markdown-deprecation, .CodeMirror-hint-information-deprecation-reason, .CodeMirror-info .info-deprecation) pre’ can not be transformed to an equivalent selector without ‘:is()’.

(v2)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
simPodcommented, Aug 30, 2022

I’m using webpack. Followed readme

import { createGraphiQLFetcher } from '@graphiql/toolkit';
import { GraphiQL } from 'graphiql';
import React from 'react';
import ReactDOM from 'react-dom';

import 'graphiql/graphiql.css';

const fetcher = createGraphiQLFetcher({
  url: 'https://my.backend/graphql',
});

ReactDOM.render(<GraphiQL fetcher={fetcher} />, document.body);

but all my css is post processed using postcss:

{ loader: 'postcss-loader', options: postcssConfig }
const postcssConfig = {
  postcssOptions: { plugins: ['postcss-preset-env'] },
  sourceMap: true,
};

so I’m seeing it during build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

postcss-pseudo-is - npm
PostCSS plugin to transform the :is() CSS pseudo-class into more compatible CSS selectors.. Latest version: 0.3.0, last published: a year ...
Read more >
CSS transform does not get applied on elements selected by ...
It seems the reason is that css transform works only on "block" elements. Since is an "inline"element, it will not be affected.
Read more >
Selectors - W3C
In CSS, pattern matching rules determine which style rules apply to elements in the document tree. These patterns, called selectors, may range from...
Read more >
Complex Selectors - Learn to Code Advanced HTML & CSS
The class selector identifies an element based on its class attribute value, which may be reused on multiple elements as necessary to help...
Read more >
CSS selectors - CSS: Cascading Style Sheets - MDN Web Docs
CSS selectors define the pattern to select elements to which a set of CSS rules are then applied.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found