{"action":"created","issue":{"url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/23","labels_url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/23/comments","events_url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/23/events","html_url":"https://github.com/bramstein/fontfaceobserver/issues/23","id":78473127,"number":23,"title":"Promise fails on OSX Chrome 42","user":{"login":"davidhund","id":260518,"avatar_url":"https://avatars.githubusercontent.com/u/260518?v=3","gravatar_id":"","url":"https://api.github.com/users/davidhund","html_url":"https://github.com/davidhund","followers_url":"https://api.github.com/users/davidhund/followers","following_url":"https://api.github.com/users/davidhund/following{/other_user}","gists_url":"https://api.github.com/users/davidhund/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhund/subscriptions","organizations_url":"https://api.github.com/users/davidhund/orgs","repos_url":"https://api.github.com/users/davidhund/repos","events_url":"https://api.github.com/users/davidhund/events{/privacy}","received_events_url":"https://api.github.com/users/davidhund/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-20T10:44:26Z","updated_at":"2015-07-02T10:31:34Z","closed_at":"2015-07-02T10:31:33Z","body":"For some reason I can't get FFO to work on my Chrome 42, OSX.\r\n\r\nI've added FFO (standalone) just above `</body>` and initialize FFO as:\r\n\r\n```\r\n// main.js\r\n(function( win, doc, undefined ){\r\n  var observer = new FontFaceObserver('Open Sans', { weight: 300 } );\r\n  observer.check()\r\n    .then(function(result){\r\n      console.log('Fonts loaded');\r\n      doc.documentElement.className += \" fonts-loaded\";\r\n    }, function(error){\r\n      console.log('Fonts NOT loaded');\r\n    });\r\n}( this, document ));\r\n```\r\n\r\nThis works in Fx, Safari and **even my Chrome Mobile 42 on my Nexus4**, but *not on my Desktop Chrome*…\r\n\r\nThe Promise does return a `z` `observer` object that looks ok to me:\r\n\r\n```\r\n{\r\n  family: \"Open Sans\"\r\n  featureSettings: \"normal\"\r\n  stretch: \"stretch\"\r\n  style: \"normal\"\r\n  variant: \"normal\"\r\n  weight: 300\r\n}\r\n```\r\n\r\nI must be missing something but I can't see why Chrome fails.\r\n\r\n## Some details:\r\n\r\n- I am using local fonts created by https://google-webfonts-helper.herokuapp.com/fonts/open-sans?subsets=latin (\"Best Support\" font-face syntax)\r\n- Running a local Browsersync live-reloading dev-server\r\n\r\nReading up on #1 I've considered the scroll-stuff to potentially conflict with Browsersync's scroll-syncing stuff, but that's just a wild guess.\r\n\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/comments/117993341","html_url":"https://github.com/bramstein/fontfaceobserver/issues/23#issuecomment-117993341","issue_url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/23","id":117993341,"user":{"login":"bramstein","id":114871,"avatar_url":"https://avatars.githubusercontent.com/u/114871?v=3","gravatar_id":"","url":"https://api.github.com/users/bramstein","html_url":"https://github.com/bramstein","followers_url":"https://api.github.com/users/bramstein/followers","following_url":"https://api.github.com/users/bramstein/following{/other_user}","gists_url":"https://api.github.com/users/bramstein/gists{/gist_id}","starred_url":"https://api.github.com/users/bramstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bramstein/subscriptions","organizations_url":"https://api.github.com/users/bramstein/orgs","repos_url":"https://api.github.com/users/bramstein/repos","events_url":"https://api.github.com/users/bramstein/events{/privacy}","received_events_url":"https://api.github.com/users/bramstein/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T10:31:33Z","updated_at":"2015-07-02T10:31:33Z","body":"Sorry for the late response, some things came up that prevented me from working on this. I fixed the issue in the latest release. It turns out `* { font-size: inherit; }` was indeed the culprit, it changed how the font load detection worked, which in this case made it fail. I've added explicit font sizes to all test elements, so the issue no longer happens.\r\n\r\nThanks again for the test cases, they were really helpful in tracking down this issue."}}