{"action":"created","issue":{"url":"https://api.github.com/repos/google/closure-compiler/issues/1780","repository_url":"https://api.github.com/repos/google/closure-compiler","labels_url":"https://api.github.com/repos/google/closure-compiler/issues/1780/labels{/name}","comments_url":"https://api.github.com/repos/google/closure-compiler/issues/1780/comments","events_url":"https://api.github.com/repos/google/closure-compiler/issues/1780/events","html_url":"https://github.com/google/closure-compiler/issues/1780","id":153506498,"number":1780,"title":"Name clash with CSS extern","user":{"login":"acordex","id":4094199,"avatar_url":"https://avatars.githubusercontent.com/u/4094199?v=3","gravatar_id":"","url":"https://api.github.com/users/acordex","html_url":"https://github.com/acordex","followers_url":"https://api.github.com/users/acordex/followers","following_url":"https://api.github.com/users/acordex/following{/other_user}","gists_url":"https://api.github.com/users/acordex/gists{/gist_id}","starred_url":"https://api.github.com/users/acordex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acordex/subscriptions","organizations_url":"https://api.github.com/users/acordex/orgs","repos_url":"https://api.github.com/users/acordex/repos","events_url":"https://api.github.com/users/acordex/events{/privacy}","received_events_url":"https://api.github.com/users/acordex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/closure-compiler/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/google/closure-compiler/labels/Externs","name":"Externs","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-06T18:04:20Z","updated_at":"2016-05-06T18:14:17Z","closed_at":null,"body":"We were trying to make a \"Rect\" class, but Rect is defined in the css externs file:\r\n\r\n    ERROR - Variable Rect first declared in externs.zip//browser/w3c_css.js\r\n\r\nHowever, Rect is not available in JS (at least not in Chrome). So this basically means that Closure is banning `Rect` from ever being used. Shouldn't the externs that aren't actually available as JS objects be obfuscated in some way so that they are less likely to clash with client code? E.g. W3c_Css_Rect or something like that?\r\n\r\nNot sure if this is a problem or if we just don't understand how this is supposed to work."},"comment":{"url":"https://api.github.com/repos/google/closure-compiler/issues/comments/217518837","html_url":"https://github.com/google/closure-compiler/issues/1780#issuecomment-217518837","issue_url":"https://api.github.com/repos/google/closure-compiler/issues/1780","id":217518837,"user":{"login":"Dominator008","id":1403453,"avatar_url":"https://avatars.githubusercontent.com/u/1403453?v=3","gravatar_id":"","url":"https://api.github.com/users/Dominator008","html_url":"https://github.com/Dominator008","followers_url":"https://api.github.com/users/Dominator008/followers","following_url":"https://api.github.com/users/Dominator008/following{/other_user}","gists_url":"https://api.github.com/users/Dominator008/gists{/gist_id}","starred_url":"https://api.github.com/users/Dominator008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dominator008/subscriptions","organizations_url":"https://api.github.com/users/Dominator008/orgs","repos_url":"https://api.github.com/users/Dominator008/repos","events_url":"https://api.github.com/users/Dominator008/events{/privacy}","received_events_url":"https://api.github.com/users/Dominator008/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T18:14:17Z","updated_at":"2016-05-06T18:14:17Z","body":"@ChadKillingsworth IMO instead of changing the externs, the compiler should be told that `Rect` isn't available in JavaScript and only serves as a type. We should then do the renaming internally. Changing it to things like `w3c_css_Rect` seems pretty messy and is a big loss for documentation purposes."}}