{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/autoprefixer/issues/1167","repository_url":"https://api.github.com/repos/postcss/autoprefixer","labels_url":"https://api.github.com/repos/postcss/autoprefixer/issues/1167/labels{/name}","comments_url":"https://api.github.com/repos/postcss/autoprefixer/issues/1167/comments","events_url":"https://api.github.com/repos/postcss/autoprefixer/issues/1167/events","html_url":"https://github.com/postcss/autoprefixer/issues/1167","id":387829799,"node_id":"MDU6SXNzdWUzODc4Mjk3OTk=","number":1167,"title":"Add Option to only allow Grid in IE by using Areas or Autoplacement Algorithms","user":{"login":"fabb","id":153960,"node_id":"MDQ6VXNlcjE1Mzk2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/153960?v=4","gravatar_id":"","url":"https://api.github.com/users/fabb","html_url":"https://github.com/fabb","followers_url":"https://api.github.com/users/fabb/followers","following_url":"https://api.github.com/users/fabb/following{/other_user}","gists_url":"https://api.github.com/users/fabb/gists{/gist_id}","starred_url":"https://api.github.com/users/fabb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabb/subscriptions","organizations_url":"https://api.github.com/users/fabb/orgs","repos_url":"https://api.github.com/users/fabb/repos","events_url":"https://api.github.com/users/fabb/events{/privacy}","received_events_url":"https://api.github.com/users/fabb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-12-05T16:09:21Z","updated_at":"2018-12-05T19:59:07Z","closed_at":null,"author_association":"NONE","body":"Support of Grid for IE is hard to guarantee since it does not support auto placement. Autoprefixer can ensure support when either `autoplace` mode is activated, or `grid-template-areas` are being used. The former is not applicable for all situations (e.g. the order should be different than in the DOM). [The latter only works when `grid-template-areas`, `grid-template-rows` and `grid-template-columns` are provided in the same rule](https://twitter.com/yepninja/status/992280342932291584).\r\n\r\nThe problem is that when writing CSS that follows neither approach, IE compatibility might break silently. E.g. when not using areas but `grid-column/row` on child elements directly - which would be totally supported by IE, but only when not using auto placement for any child. PostCSS cannot check this, as it does not know anything about the DOM structure.  So the safe way would be to dissallow it.\r\n\r\nI would suggest to add an option that throws an error when using any css rule combination that does not enable the „areas“ or „autoplacement“ algorithms, and also when `grid-column/row` is encountered. Plus a control comment to opt out and use manual placement with `grid-column/row` on ones own risk. Combined with „Treat Warnings as Errors“ (#1165) this would enable a rather resilient backward compatibility with IE. "},"comment":{"url":"https://api.github.com/repos/postcss/autoprefixer/issues/comments/444624554","html_url":"https://github.com/postcss/autoprefixer/issues/1167#issuecomment-444624554","issue_url":"https://api.github.com/repos/postcss/autoprefixer/issues/1167","id":444624554,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDYyNDU1NA==","user":{"login":"Dan503","id":10610368,"node_id":"MDQ6VXNlcjEwNjEwMzY4","avatar_url":"https://avatars2.githubusercontent.com/u/10610368?v=4","gravatar_id":"","url":"https://api.github.com/users/Dan503","html_url":"https://github.com/Dan503","followers_url":"https://api.github.com/users/Dan503/followers","following_url":"https://api.github.com/users/Dan503/following{/other_user}","gists_url":"https://api.github.com/users/Dan503/gists{/gist_id}","starred_url":"https://api.github.com/users/Dan503/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dan503/subscriptions","organizations_url":"https://api.github.com/users/Dan503/orgs","repos_url":"https://api.github.com/users/Dan503/repos","events_url":"https://api.github.com/users/Dan503/events{/privacy}","received_events_url":"https://api.github.com/users/Dan503/received_events","type":"User","site_admin":false},"created_at":"2018-12-05T19:59:07Z","updated_at":"2018-12-05T19:59:07Z","author_association":"CONTRIBUTOR","body":"The point of strict mode is to force people to use either the autoplacement algorithm or grid areas. If autoplacement is causing an issue then that means that you should be using grid areas.\r\n\r\nUsing grid areas will prevent the autoplacement algorithm from activating."}}
{"actor":{"display_login":"Dan503"}}