question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not check if -js-display: flex; already exists

See original GitHub issue

Multiple 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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Dan503commented, Mar 11, 2016

Yep, tested and working now.

Thanks 😃

0reactions
Dan503commented, Mar 11, 2016

Ahh ok, I was running postcss-flexibility 1.0.2. I’ll update and see if the issue is still happening.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found