Skip to content

Commit

Permalink
Merge pull request #1002 from alphagov/set-browser-versions
Browse files Browse the repository at this point in the history
Update `browserslist` in package.json
  • Loading branch information
hannalaakso authored Sep 21, 2018
2 parents 28e757e + 903de75 commit 0c84f4e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@

([PR #986](https://github.com/alphagov/govuk-frontend/pull/986))

- Update `browsersList` in `package.json` to reflect our supported browsers

`browsersList` is used by PostCSS in our current build to determine which browser prefixes or rules to generate for the built CSS files. This PR adds rules to specify that the browsers in our [browser matrix](https://github.com/alphagov/govuk-frontend#browser-support) should always be prefixed for. Additionally, any browser with more than 0.1% of the global market share is prefixed for.

In terms of changes to our built CSS, this means that `-webkit-box-sizing` and `-webkit-box-shadow` prefixes will be removed - neither of these prefixes are required by desktop Safari 5.1 or later so this seems a fairly safe change to make.

([PR #1002](https://github.com/alphagov/govuk-frontend/pull/1002))

- Pull Request Title goes here

Description goes here (optional)
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,14 @@
"fsevents": "*"
},
"browserslist": [
"last 2 versions",
"ie 8",
"ie 9",
"iOS 9"
">0.1%",
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Edge versions",
"last 2 Samsung versions",
"Safari >= 9",
"ie 8-11",
"iOS >= 9"
],
"standard": {
"ignore": [
Expand Down

0 comments on commit 0c84f4e

Please sign in to comment.