react-scoped-css
react-scoped-css copied to clipboard
Scoping doesn't work with css @container queries
The data attributes aren't added to CSS selectors inside an @container query. This effectively disables scoping for all styles applied within an @container rule. Take the following example:
The above code only works because of the !important keyword.
This shortcoming causes specificity issues: the attribute selector has an additional (0, 1, 0) specificity. Refer to this example: