Open dholbert opened 5 years ago
I'm not sure if this is worth speccing, since it doesn't need to impact other browsers' behavior. (The situation is different from e.g. -webkit prefixed gradients, where a fraction of the web just serves those up to all browsers with no fallback.) But @gsnedders requested a github issue for this, so here you go. :)
I think there are two options here:
-moz-
prefixed functions (ugly, but better)I think there are two options here:
* Have everyone support the `-moz-` prefixed functions (ugly, but better)
I don't think other engines have much incentive to do this, and I can't see a very strong practical case for them to do that.
* Tie this to the [navigator compatibility mode](https://html.spec.whatwg.org/multipage/system-state.html#concept-navigator-compatibility-mode), and require it for the Gecko value (IMO less good, given it preserves inconsistencies between browsers)
That makes more sense to me, and matches the state of the web better.
In other words, I think it's accurate to model this (i.e. support for -moz prefixed gradients) as a Gecko-specific quirk/bug, which web content has to accommodate Gecko having. (In practice, that accommodation is trivial on the part of web developers -- just don't use these gradient functions with completely broken/unwanted values, or else your site may look broken in specifically Gecko when it honors your unwanted gradient where other engines do not. :) )
Tie this to the navigator compatibility mode, and require it for the Gecko value (IMO less good, given it preserves inconsistencies between browsers)
This would also work generally for the -webkit-
prefixed things that we don't have strong evidence for needing in Gecko, e.g. webkit prefixed fullscreen.
I have a very strong preference of avoiding things forking based on that unless we absolutely have to (i.e., mutual incompatibility being a requirement of the platform); I'd much rather have browsers be interoperable unless we absolutely cannot avoid it.
Per https://bugzilla.mozilla.org/show_bug.cgi?id=1337655#c53 , we've discovered that the web seems to depend on Firefox-flavored browsers (as determined by UA sniffing) supporting legacy -moz prefixed gradient functions. (So far,
-moz-linear-gradient
in every case I think, but perhaps the other syntaxes (radial, repeating-linear/repeating-radial as well.)Some sites do UA sniffing and then send Firefox only this prefixed syntax, with no fallback (including large properties like Facebook (in the past), Google properties like gmail (in the past) and blogger, and frameworks/deployments like Eclipse RAP and Zimbra.)
I'm not sure if this is worth speccing, since it doesn't need to impact other browsers' behavior. (The situation is different from e.g.
-webkit
prefixed gradients, where a fraction of the web just serves those up to all browsers with no fallback.) But @gsnedders requested a github issue for this, so here you go. :)