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.

@supports (display: flex) is not prefixed

See original GitHub issue

The result of gulp-autoprefixer on the following block

@supports (display: flex) {
  div {
     display: flex;
     /* ... */
  }
}

is

@supports (display: flex) {
  div {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    /* ... */
  }
}

So the display declaration is well prefixed but, if I’m not wrong, the @supports should be prefixed like this:

@supports (display: -webkit-box) or (display: -webkit-flex) or (display: -ms-flexbox) or (display: flex) {
  div {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    /* ... */
  }
}

Is it a bug ? Thank you in advance and sorry if I’m wrong.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
aicommented, Dec 7, 2016

Yeap. Seems like we have a bug here. I will look at in on next week (sorry, preparing for conference)

0reactions
ghostcommented, Dec 15, 2016

Ok Andrey, I will do that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do vendor prefixes not work at all with flexbox? - Stack Overflow
Some browsers will require prefixes for flexbox to work (such as IE 10 and Safari 8), others don't need prefixes at all (like...
Read more >
Backwards compatibility of flexbox - CSS - MDN Web Docs
Flexbox is very well supported across modern browsers, however there are a few issues that you might run into. In this guide we...
Read more >
CSS Flexible Box Layout Module | Can I use... Support tables ...
Support includes all properties prefixed with flex , as well as display: ... 1 Only supports the old flexbox specification and does not...
Read more >
Flexbox prefixes - CSS-Tricks
Hi guys,. My question is simply what prefixes to use for flexbox. I've had a good look around but I can't find anything...
Read more >
Browser Compatibility and Vendor Prefixes
We just learned about flexbox pseudo-classes, and pseudo-elements. ... Like many new CSS features, not every browser supports them. But don't worry!
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