{"action":"created","issue":{"url":"https://api.github.com/repos/xem/CSS3Dprototypes/issues/1","repository_url":"https://api.github.com/repos/xem/CSS3Dprototypes","labels_url":"https://api.github.com/repos/xem/CSS3Dprototypes/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/xem/CSS3Dprototypes/issues/1/comments","events_url":"https://api.github.com/repos/xem/CSS3Dprototypes/issues/1/events","html_url":"https://github.com/xem/CSS3Dprototypes/pull/1","id":180864842,"number":1,"title":"Fix Firefox z-sorting issues.","user":{"login":"keithclark","id":588665,"avatar_url":"https://avatars.githubusercontent.com/u/588665?v=3","gravatar_id":"","url":"https://api.github.com/users/keithclark","html_url":"https://github.com/keithclark","followers_url":"https://api.github.com/users/keithclark/followers","following_url":"https://api.github.com/users/keithclark/following{/other_user}","gists_url":"https://api.github.com/users/keithclark/gists{/gist_id}","starred_url":"https://api.github.com/users/keithclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithclark/subscriptions","organizations_url":"https://api.github.com/users/keithclark/orgs","repos_url":"https://api.github.com/users/keithclark/repos","events_url":"https://api.github.com/users/keithclark/events{/privacy}","received_events_url":"https://api.github.com/users/keithclark/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-04T11:11:19Z","updated_at":"2016-10-04T12:05:50Z","closed_at":"2016-10-04T12:03:41Z","pull_request":{"url":"https://api.github.com/repos/xem/CSS3Dprototypes/pulls/1","html_url":"https://github.com/xem/CSS3Dprototypes/pull/1","diff_url":"https://github.com/xem/CSS3Dprototypes/pull/1.diff","patch_url":"https://github.com/xem/CSS3Dprototypes/pull/1.patch"},"body":"This PR addresses the Firefox glitching issues in [demo 5](https://github.com/xem/CSS3Dprototypes/tree/gh-pages/5).\r\n\r\nFirefox's sorting of z-transformed elements is pretty awful. Creating a scene that renders correctly often relies on balancing transforms along the z axis with `z-index` and (in this case) DOM order. This \"fix\" moves the track into it's own element and places it after the other elements in the scene — in Firefox this will cause the track element to render underneath the other objects, preventing the glitching. If you move the element to the top of the scene you'll see the glitching again.\r\n\r\nI've made the track an `<img>` element but there's no reason not to use a CSS background instead.\r\n\r\n**Something else you should be aware of;** Firefox won't try to depth sort anything if there are more than 100 descendant elements in your 3D scene. Once you hit that magic number you'll have to sort the elements yourself by shifting them around in the DOM, which will kill performance. You can see this issue in my old [CSS lighting demo](http://keithclark.co.uk/articles/calculating-element-vertex-data-from-css-transforms/demo6/). Try using the DOM inspector to remove elements until the x-wing renders correctly."},"comment":{"url":"https://api.github.com/repos/xem/CSS3Dprototypes/issues/comments/251369362","html_url":"https://github.com/xem/CSS3Dprototypes/pull/1#issuecomment-251369362","issue_url":"https://api.github.com/repos/xem/CSS3Dprototypes/issues/1","id":251369362,"user":{"login":"xem","id":1225909,"avatar_url":"https://avatars.githubusercontent.com/u/1225909?v=3","gravatar_id":"","url":"https://api.github.com/users/xem","html_url":"https://github.com/xem","followers_url":"https://api.github.com/users/xem/followers","following_url":"https://api.github.com/users/xem/following{/other_user}","gists_url":"https://api.github.com/users/xem/gists{/gist_id}","starred_url":"https://api.github.com/users/xem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xem/subscriptions","organizations_url":"https://api.github.com/users/xem/orgs","repos_url":"https://api.github.com/users/xem/repos","events_url":"https://api.github.com/users/xem/events{/privacy}","received_events_url":"https://api.github.com/users/xem/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T12:05:50Z","updated_at":"2016-10-04T12:05:50Z","body":"amazing! it works perfectly! Thanks a lot for the explanations, I'll add them in my tutorial :) "}}
{"actor":{"display_login":"xem"}}