lightningcss: Unsupported pseudo class or element: cue
🐛 bug report
I believe this is valid SCSS - it worked in my old environment (node 16, parcel 2.0), but now that I’ve needed to upgrade (node 18, parcel 2.6) it says “Unsupported pseudo class or element: cue”
::cue(v[voice="active"]) {
color: yellow;
}
🎛 Configuration (.babelrc, package.json, cli command)
parcel build --public-url . src/index.html
🤔 Expected Behavior
::cue(v[voice="active"]) {color: yellow;}
appears in the final CSS
😯 Current Behavior
Build error: “Unsupported pseudo class or element: cue”
💁 Possible Solution
🔦 Context
This is the syntax for styling VTT subtitles used in HTML5 videos
https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#styling_webvtt_cues
💻 Code Sample
🌍 Your Environment
Software | Version(s) |
---|---|
Parcel | 2.6.0 |
Node | 18.3.0 |
npm/Yarn | 8.11 |
Operating System | Linux in Docker on an M1 Mac |
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 18 (8 by maintainers)
no but I guess we should probably suppress these vendor prefixed ones. I didn’t realize there were so many.
Should be fixed in v1.13.1. Thanks @pfroud!
Well I submitted a low-effort pull request (#266), let me know how it looks…
(It’s my first time using Rust!)
Hello folks, I’m getting the same situation with parcel 2.6.2 and React 18.2.0:
A lot of warnings for unsupported elements, this time with Ant Design library, so please do open that issue if you can 😃
Thx in advance
@devongovett Should I open an issue for suppressing this warning on vendor-prefixed classes as well, then?
I’d offer to put up a PR, but looking at https://github.com/parcel-bundler/parcel-css/commit/32c9e85805c96a69921ae88eaa6242693f88613b, it’s not immediately obvious to me what code might be needed for this.
@devongovett
--log-level error
works, but suppresses all the status output, too, which is a bit unexpectedThe fix for this issue was released, but this issue only covers the standard
cue
pseudo-class, not any other browser-specific pseudo-classes