@@ -23,19 +23,33 @@ module.exports = function (grunt) {
23
23
var mq4HoverShim = require ( 'mq4-hover-shim' ) ;
24
24
var autoprefixer = require ( 'autoprefixer' ) ( {
25
25
browsers : [
26
- 'Android 2.3' ,
27
- 'Android >= 4' ,
28
- 'Chrome >= 35' ,
29
- 'Firefox >= 31' ,
26
+ //
27
+ // Official browser support policy:
28
+ // http://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers
29
+ //
30
+ 'Chrome >= 35' , // Exact version number here is kinda arbitrary
31
+ // Rather than using Autoprefixer's native "Firefox ESR" version specifier string,
32
+ // we deliberately hardcode the number. This is to avoid unwittingly severely breaking the previous ESR in the event that:
33
+ // (a) we happen to ship a new Bootstrap release soon after the release of a new ESR,
34
+ // such that folks haven't yet had a reasonable amount of time to upgrade; and
35
+ // (b) the new ESR has unprefixed CSS properties/values whose absence would severely break webpages
36
+ // (e.g. `box-sizing`, as opposed to `background: linear-gradient(...)`).
37
+ // Since they've been unprefixed, Autoprefixer will stop prefixing them,
38
+ // thus causing them to not work in the previous ESR (where the prefixes were required).
39
+ 'Firefox >= 31' , // Current Firefox Extended Support Release (ESR)
30
40
// Note: Edge versions in Autoprefixer & Can I Use refer to the EdgeHTML rendering engine version,
31
41
// NOT the Edge app version shown in Edge's "About" screen.
32
42
// For example, at the time of writing, Edge 20 on an up-to-date system uses EdgeHTML 12.
33
43
// See also https://github.com/Fyrd/caniuse/issues/1928
34
44
'Edge >= 12' ,
35
45
'Explorer >= 9' ,
46
+ // Out of leniency, we prefix these 1 version further back than the official policy.
36
47
'iOS >= 7' ,
37
- 'Opera >= 12' ,
38
- 'Safari >= 7.1'
48
+ 'Safari >= 7.1' ,
49
+ // The following remain NOT officially supported, but we're lenient and include their prefixes to avoid severely breaking in them.
50
+ 'Android 2.3' ,
51
+ 'Android >= 4' ,
52
+ 'Opera >= 12'
39
53
]
40
54
} ) ;
41
55
0 commit comments