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.

not getting display: -webkit-flex with any options

See original GitHub issue

Safari 8 needs display: -webkit-flex. With any options I pass — I on’t get it. Even with such hardcore as:

gulp.task('cssOwn:build', () => {
  return gulp.src(path.src.css) // css: 'src/css/styles.scss',
    .pipe(sass({
      includePaths: [path.dist.css],
      errLogToConsole: true
    }))
    .pipe(sass().on('error', sass.logError))
    .pipe(prefixer({
      browser: ['last 10 versions']
    }))
    .pipe(sourcemaps.write('./maps'))
    .pipe(gulp.dest(path.dist.css))
    .pipe(connect.reload())
});

This results in:

ol.o-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: column;
      flex-flow: column;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between; }

It sets display: -webkit-box; for Safari 6, but not display: -webkit-flex for Safari 8

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
terion-namecommented, Nov 9, 2016

@farcaller browser → browsers

0reactions
aicommented, Nov 16, 2018

@rouberg there is better way. Always put browsers to .browserslistrc config (as we recommend). If you use browsers option, cssnano’s Autoprefixer (Babel and many other tools) will have different browsers. If you use Browserslist config, all your tools will have the same target browsers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

display:flex not working in Chrome - Stack Overflow
This worked perfectly in Firefox, but I'm working on the mobile version of my site and added box-sizing:border-box; to my code. This messed...
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 >
Forums - CSS - Flexbox Not Working On Safari - CSS-Tricks
The problem is that on safari the navbars aren't fluid and don't stretch to match the container width. HI, The problem is caused...
Read more >
CSS flex property - W3Schools
Note: If the element is not a flexible item, the flex property has no effect. ... queries to create a different layout for...
Read more >
Cross-browser issues with Flexbox - fastfwd
It means adding another div or pseudo-elements. Moreover, you have to have exact widths of at least one element to make sure they...
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