{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/6267","labels_url":"https://api.github.com/repos/angular/material/issues/6267/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/6267/comments","events_url":"https://api.github.com/repos/angular/material/issues/6267/events","html_url":"https://github.com/angular/material/issues/6267","id":121847814,"number":6267,"title":"mdCard: non-matching CSS selector","user":{"login":"Frank3K","id":8014077,"avatar_url":"https://avatars.githubusercontent.com/u/8014077?v=3","gravatar_id":"","url":"https://api.github.com/users/Frank3K","html_url":"https://github.com/Frank3K","followers_url":"https://api.github.com/users/Frank3K/followers","following_url":"https://api.github.com/users/Frank3K/following{/other_user}","gists_url":"https://api.github.com/users/Frank3K/gists{/gist_id}","starred_url":"https://api.github.com/users/Frank3K/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frank3K/subscriptions","organizations_url":"https://api.github.com/users/Frank3K/orgs","repos_url":"https://api.github.com/users/Frank3K/repos","events_url":"https://api.github.com/users/Frank3K/events{/privacy}","received_events_url":"https://api.github.com/users/Frank3K/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-12T10:33:18Z","updated_at":"2015-12-15T19:58:17Z","closed_at":"2015-12-15T19:58:16Z","body":"The [compiled material CSS](https://github.com/angular/bower-material/blob/91ada8d78c4b7a37c4f5a294e2c839b00ed329d2/angular-material.css#L9929-L9939) includes an non-matching selector:\r\n\r\n``` css\r\n  md-card md-card img,\r\n  md-card > :not(md-card-content) img {\r\n    box-sizing: border-box;\r\n    display: -webkit-flex;\r\n    display: -ms-flexbox;\r\n    display: flex;\r\n    -webkit-flex: 0 0 auto;\r\n        -ms-flex: 0 0 auto;\r\n            flex: 0 0 auto;\r\n    width: 100%;\r\n    height: auto; }\r\n```\r\n\r\nThe selector `md-card md-card img` should be `md-card img`. This way the appropriate styles are not applied to images inside cards. As a result of this, issues like #761 are not fixed anymore.\r\n\r\nThe bug was introduced in 61bb6c47c3242bac7c9993f434a5676f3356d43b:\r\n\r\n``` css\r\n  md-card img,\r\n  > :not(md-card-content) img {\r\n    box-sizing: border-box;\r\n    display: flex;\r\n    flex: 0 0 auto;\r\n    width: 100%;\r\n    height: auto;\r\n  }\r\n```\r\n\r\nThe `md-card` is nested here and should therefore not be here."},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/164878629","html_url":"https://github.com/angular/material/issues/6267#issuecomment-164878629","issue_url":"https://api.github.com/repos/angular/material/issues/6267","id":164878629,"user":{"login":"Frank3K","id":8014077,"avatar_url":"https://avatars.githubusercontent.com/u/8014077?v=3","gravatar_id":"","url":"https://api.github.com/users/Frank3K","html_url":"https://github.com/Frank3K","followers_url":"https://api.github.com/users/Frank3K/followers","following_url":"https://api.github.com/users/Frank3K/following{/other_user}","gists_url":"https://api.github.com/users/Frank3K/gists{/gist_id}","starred_url":"https://api.github.com/users/Frank3K/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frank3K/subscriptions","organizations_url":"https://api.github.com/users/Frank3K/orgs","repos_url":"https://api.github.com/users/Frank3K/repos","events_url":"https://api.github.com/users/Frank3K/events{/privacy}","received_events_url":"https://api.github.com/users/Frank3K/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T19:58:16Z","updated_at":"2015-12-15T19:58:16Z","body":"Fixed in 8ab8a55bd00d87062f1215c74a40fb7457db7ddc."}}