Comments (6)
This is a duplicate of #44.
There is an incomplete PR to resolve this issue at #46
The story can be worked on by anyone (with a failing test provided) at https://github.com/postcss/postcss-custom-media/tree/release/7.0.6
from postcss-custom-media.
Hmm are you sure it's the same issue?
But in general, from what I described, things should still be working right? Or do we need to change something from our side as well?
Thanks
from postcss-custom-media.
Your setup is a bit confusing. You use PostCSS Preset Env, which includes this plugin, but then you use this plugin. If you want to use it with PostCSS Preset Env, then you will also need to pass stage: 1
or stage: 0
(i.e.. postcssPresetEnv({ stage: 1 })
to get Custom Media to work.
from postcss-custom-media.
You had some queries that used the AND operator, and there was a bug in this. It has been fixed in PostCSS Custom Media v7.0.6 and PostCSS Preset Env v6.1.1. Would you please retest in that version?
from postcss-custom-media.
Hi Jonathan,
I tried several things:
- to update all postcss deps to their latest versions
- also with using
{ stage: 1 }
- also with using
- to update only
postcss-custom-media
to7.0.6
...but I still get the same problem.
Only on version 6.0.0
things are working properly. Something in version 7
clearly stopped working but I'm not too familiar with the plugin and therefore can't say much where the problem might be.
Do you have any other suggestion?
from postcss-custom-media.
Unfortunately, I’ll need more information from you. Specifically, I’ll need you to make a tiny repo with the (please, the bare minimum) code required to reproduce this issue. Then I’ll check it out and look into it.
from postcss-custom-media.
Related Issues (20)
- Incorrect expansion of @custom-media within import '...' $media-query HOT 1
- File-based modularised definitions not propagating up. HOT 9
- How to specify a range instead of min/max width? HOT 1
- min-width & max-width HOT 2
- How can I use custom media with design tokens? HOT 2
- Please add the option for disable all warnings HOT 3
- PostCSS 7 conflicts HOT 5
- 7.0 regression HOT 1
- 7.0 - media types not working HOT 2
- "extensions" option lost since new versions? HOT 7
- Broken AND operator since 7.x.x HOT 4
- Version 7.0.5 not being published to npm HOT 2
- 7.0.6 broke my css HOT 1
- Breakpoints not working properly HOT 2
- Can't import queries from .pcss file HOT 1
- Media Queries not working HOT 2
- Can't use custom-media if it's defined inside node_modules HOT 1
- Is it possible to interpolate values for custom media? HOT 4
- Use PostCSS 8 events HOT 7
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 postcss-custom-media.