Polymer/platform-dev — pull request #31 by liudongmiao (2014-07-02 15:22:36+00:00)
Title: make the resource is css always be absolute

Our platform is built on polymer and pjax. But there is an issue for the import of css.

When the element is resolved in the `/path/a/b`, and use the `url:(urlpath)`, it's resolved to a relative path, like `../../path/a/b/urlpath`. And then, if the page is switch to another path, like `/path/a/c/d/e`, as the page is not refreshed, then the path is the same as `../../path/a/b/urlpath`, so the resource cannot be visited.

Now, we have following solutions:
1. deploy the static element to another host, then makeRelPath won't work, then the absolute link works well
2. in the element, using absolute path, however, there is no recommend..
3. use base64 instead of relative resource.
4. This pull request...