{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular/issues/6637","labels_url":"https://api.github.com/repos/angular/angular/issues/6637/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/6637/comments","events_url":"https://api.github.com/repos/angular/angular/issues/6637/events","html_url":"https://github.com/angular/angular/issues/6637","id":128149375,"number":6637,"title":"[question] Support for image/font relative paths in css","user":{"login":"Necroskillz","id":346477,"avatar_url":"https://avatars.githubusercontent.com/u/346477?v=3","gravatar_id":"","url":"https://api.github.com/users/Necroskillz","html_url":"https://github.com/Necroskillz","followers_url":"https://api.github.com/users/Necroskillz/followers","following_url":"https://api.github.com/users/Necroskillz/following{/other_user}","gists_url":"https://api.github.com/users/Necroskillz/gists{/gist_id}","starred_url":"https://api.github.com/users/Necroskillz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Necroskillz/subscriptions","organizations_url":"https://api.github.com/users/Necroskillz/orgs","repos_url":"https://api.github.com/users/Necroskillz/repos","events_url":"https://api.github.com/users/Necroskillz/events{/privacy}","received_events_url":"https://api.github.com/users/Necroskillz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-22T12:41:31Z","updated_at":"2016-01-22T12:41:31Z","closed_at":null,"body":"I found a few very old issues about this, but the code seems to have been refactored a lot since. (#2384)\r\n\r\nI couldn't find any support for this any more.\r\n\r\nExample:\r\n```\r\nproject\r\n│   app.js\r\n└───components\r\n    ├───my-component\r\n    │   │   my-component.ts\r\n    │   │   my-component.css\r\n    │   │   image.jpg\r\n```\r\n\r\nmy-component.css\r\n```\r\ndiv {\r\n  background: url('image.jpg')\r\n}\r\n```\r\n\r\nSince the css is put into style tags, the browser assumes it's relative to the root, not the `my-component.css` file (or to `my-component.ts` if it's inlined). Also, the host may be different - the files could be served from different domain, and expect the image be requested from the same domain, not the current browser domain.\r\n\r\nSo my question is - is this something that you want to support or should it be handled differently (maybe I missed something)?"}}