Daniel Holbert
unread,Jul 6, 2015, 5:24:41 PM7/6/15You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mike Taylor, j...@mozilla.com, Celik, Tantek, Andrew Overholt, Karl Dubost, compatibility
On 07/02/2015 03:02 PM, Mike Taylor wrote:
>> Some questions:
>>
>> * -webkit-flexbox (implemented currently by 1107378
>> <
https://bugzilla.mozilla.org/show_bug.cgi?id=1107378>)
>>
>> - Is the current implementation satisfactory? Anything else missing here?
>
> AFAIK, it's solved all* issues we've run into. I've cc'd Daniel in case
> there's something he's noticed that I'm forgetting.
Just to be extra-clear -- I think you're talking about "-webkit-box",
not "-webkit-flexbox". [1]
Right, I don't think we've run into any issues beyond the one you
mentioned. However, that's partly because our whitelisted sites don't do
anything too complex with it.
When we enable global unprefixing, we may run into some more tricky
cases with complex mobile webapps that depend on quirks which
"-webkit-box" does not share with modern "display:flex".
It may be difficult to standardize a universal way to unprefix
"-webkit-box" & friends; I think all we can shoot for is a
best-effort-which-works-in-simple-cases. I'm curious how Microsoft
implements "-webkit-box" -- i.e. if they just map it to modern syntax
like we do, and (if so) if they use the same mappings that we do. [2]
~Daniel
[1] -webkit-box is the older, more prevalent, trickier one.
-webkit-flexbox would be a prefixed early draft of the modern syntax. I
don't know that any sizeable number of webkit browsers shipped with
support for that syntax, though - they're more likely to be using
"-webkit-flex", which would be the (prefixed) final modern syntax.
[2] Our flexbox property-mappings are here, FWIW:
http://mxr.mozilla.org/mozilla-central/source/layout/style/CSSUnprefixingService.js?rev=39c35b0c2e04&mark=43-44,60-86#38
(combined with C++ code to treat "-webkit-box" as "flex")