Comments (4)
[email protected] not support @container ,@layer
from cssom.
Same, it's breaking JSDOM for me too. Here is my CSS parsing error detail
detail: '\n' +
' @layer theme {\n' +
' :root {\n' +
' --theme-bodyBackgroundColor: #a85a5a;\n' +
' --theme-bodyTextColor: #a85a5a;\n' +
' --theme-buttonBackgroundColor: #a85a5a;\n' +
' --theme-buttonTextColor: #a85a5a;\n' +
' --theme-footerBackgroundColor: #a85a5a;\n' +
' --theme-footerTextColor: #a85a5a;\n' +
' --theme-headerBackgroundColor: #a85a5a;\n' +
" --theme-headerImage: 'TEST_HEADER_IMAGE_FILE_NAME.png';\n" +
' --theme-headerTextColor: #a85a5a;\n' +
' }\n' +
' }\n' +
' @layer overrides {\n' +
' nx-platform-shell {\n' +
' --header-bg-color-h: 0deg;\n' +
' --header-bg-color-s: 31%;\n' +
' --header-bg-color-l: 50.6%;\n' +
' --header-text-color: #a85a5a;\n' +
' --nav-toggle-icon-hover-color: #a85a5a;\n' +
' }\n' +
' nx-platform-menu-item {\n' +
' --active-bg-stop1-h: 0deg;\n' +
' --active-bg-stop1-s: 31%;\n' +
' --active-bg-stop1-l: 50.6%;\n' +
' --active-bg-stop2-h: 0deg;\n' +
' --active-bg-stop2-s: 31%;\n' +
' --active-bg-stop2-l: 50.6%;\n' +
' --icon-hover-color: #a85a5a;\n' +
' }\n' +
' }\n' +
' ',
type: 'css parsing'
My guess is that my custom element names are breaking it.
Here are the version numbers I had when writing this comment.
jest-environment-jsdom
: 29.3.1
jsdom
:^20.0.0
jsdom
: 20.0.3
cssom
:^0.5.0
cssom
: 0.5.0
from cssom.
[email protected] not support @container ,@layer
will it ever support? or there's a version that does? 🤔 this bug basically exists pointing to CSSOM since 2017, kinda weird no? 🤔
from cssom.
Anyone coming here from tailwind land, I ended up using cva
package to ignore the container styles when in a jest environment
const component = cva('bg-blue-500', {
variants: {
isTestEnv: { false: '@md:bg-red-500' }
},
defaultVariants: {
isTestEnv: typeof jest !== 'undefined',
},
})
component()
I couldn't just suppress the error as I have tests which check if elements are hidden that require css parsing
from cssom.
Related Issues (20)
- Why @charset rules doesn't appear HOT 1
- Why it can not parse (div span a{color: #789}) into tree nodes? HOT 1
- Can't parse @font-face nested in @media. HOT 3
- Nested media queries HOT 3
- CSSMediaRule should derive from CSSConditionRule HOT 1
- material-ui - JSS issues
- parseError on @media print {
- "font-size" not accessible
- Security Policy
- ")" not found when trying to import font with multiple weights HOT 3
- should not remove spaces in calc() function HOT 4
- restore master branch HOT 1
- missing CSS.escape HOT 1
- CSSTransformValue HOT 1
- parse: Unexpected } (line 1, char 43385) HOT 2
- @supports bug HOT 2
- Wrong type for CSSKeyframesRule and CSSKeyframeRule HOT 1
- CSSFontFaceRule is missing from npm package exports HOT 4
- npm package is missing several exports HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cssom.