-webkit-box over -webkit-flex
See original GitHub issueHi,
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:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top 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 >
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 Free
Top 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
@ericodes clean prefixes by
browsers: []
and then add them again.ah good to know, thanks for the quick comment!