Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parenthesis "(" in custom property value causes the page fails to load #2251

Closed
frankiefu opened this issue Aug 11, 2015 · 0 comments
Closed
Assignees
Labels

Comments

@frankiefu
Copy link
Member

This issue only happens in #master and works fine in v1.0.9.
When I load index.html I got:
Uncaught TypeError: Cannot read property '__urlResolver' of undefined resolve-url.html:66

x-app.css

:host {
  display: block;
  --x-app-background-image: url(http://placehold.it/400x300);
}

.bg {
  height: 300px;
  background-image: var(--x-app-background-image);
}

x-app.html

<dom-module id="x-app">

  <link rel="import" type="css" href="x-app.css">

  <template>

    <div class="bg">Hello World</div>

  </template>

  <script>

    Polymer({

      is: 'x-app'

    });

  </script>

</dom-module>

index.html

<!doctype html>
<html>
<head>

  <title></title>
  <meta charset="utf-8">
  <script src="../../../polymer/components/webcomponentsjs/webcomponents-lite.js"></script>
  <link rel="import" href="x-app.html">

</head>
<body>

  <x-app></x-app>

</body>
</html>
@sorvell sorvell added the p1 label Aug 11, 2015
kevinpschaaf added a commit that referenced this issue Aug 13, 2015
Fixes #2251: resolve imported stylesheets against correct document.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants