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.

-webkit-box over -webkit-flex

See original GitHub issue

Hi,

We’re running version 5.2.0 and trying with “last 50 versions” at the moment and start with this css

.uk-grid {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

we’re ending up with

.uk-grid {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-box;
  display: flex;
  -ms-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

It is putting -webkit-box; after -webkit-flex which means mobile-safari and desktop safari seem to inherit the -webkit-box instead of -webkit-flex and create layout issues as its not handling -webkit-box;

I understand that Safari should use the the correct property definition - however its not - and a fix we’ve found is simply swap the ordering in the output css - but obviously we cant do this every time we generate the CSS.

Could you please advise how we can potentially resolve the ordering issue?

Thanks

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Jan 27, 2016

@ericodes clean prefixes by browsers: [] and then add them again.

0reactions
ericodescommented, Jan 27, 2016

ah good to know, thanks for the quick comment!

Read more comments on GitHub >

github_iconTop Results From Across the Web

box-flex - CSS: Cascading Style Sheets - MDN Web Docs
The containing box allocates the available extra space in proportion to the flex value of each of the content elements. Content elements that ......
Read more >
css - something about display:-webkit-box; -webkit-box-flex:1
Looks like you have misunderstood the purpose of the flexible box layout. It works by taking the unused space in the containing element...
Read more >
Using Flexbox: Mixing Old and New for the Best Browser ...
Flexbox is pretty awesome and is certainly part of the future of layout. The syntax has changed quite a bit over the past...
Read more >
Which is better to use for CSS: webkit-box or flex? - Quora
CSS flexbox is a one-dimensional layout pattern that makes it easy to design flexible and effective layouts. Divide space between items and control...
Read more >
webkit-box quirks from -webkit-line-clamp
Practically speaking there are two separate uses for "display: -webkit-box": 1) Multi-line clamping. 2) Flex fallback. This intent discusses ...
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