Does not check if -js-display: flex; already exists
See original GitHub issueMultiple times across different projects, I’ve checked my css output after a while and saw this:
.rule { display: -webkit-flex; display: -ms-flexbox; -js-display: flex; -js-display: flex; -js-display: flex; -js-display: flex; -js-display: flex; -js-display: flex; -js-display: flex; -js-display: flex; -js-display: flex; display: flex; }
I’m not sure where in my CSS generation process the cause of this is, but if the flexibility postCSS plugin could check if -js-display: flex; already exists in the rule before adding a new one, it would safeguard against this sort of thing and make it easier to use.
The easy way to remove the extra -js-display: flex; rules is by deleting the css files and regenerating them. It would be nice if the extra -js-display: flex; rules were never added in the first place though.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Why is adding display flex here into the parent not allowing ...
I know we can fix it by using inline block or grid but I wanted a flexbox way of doing the same. CSS:...
Read more >Basic concepts of flexbox - CSS: Cascading Style Sheets | MDN
To create a flex container, we set the value of the area's container's display property to flex or inline-flex . As soon as...
Read more >DRY-ing up styled-components - CSS-Tricks
The approach is clean and modular and I don't have to go digging in some gigantic CSS file to see if a class...
Read more >Flex Cheatsheet
For example, floats do not intrude into the flex container, and the flex container's ... If an element's specified display is inline-flex, then...
Read more >Data definition language (DDL) statements in ... - Google Cloud
Create a table snapshot: fail if it already exists ... A comma-separated list of column references that determine how to cluster the materialized...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, tested and working now.
Thanks 😃
Ahh ok, I was running postcss-flexibility 1.0.2. I’ll update and see if the issue is still happening.