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

It loads style into imported document, what is deprecated and throw warnings #20

Open
1 of 8 tasks
tomalec opened this issue May 17, 2018 · 0 comments
Open
1 of 8 tasks

Comments

@tomalec
Copy link

tomalec commented May 17, 2018

Description

https://github.com/PolymerElements/font-roboto/blob/master/roboto.html#L10 loads stylesheet directly into imported document. That is deprecated and throws a warning (for every page that uses paper-styles)

See https://github.com/TakayoshiKochi/deprecate-style-in-html-imports
https://bugs.chromium.org/p/chromium/issues/detail?id=523952

Expected outcome

Pages that use the latest version of Polymer Elements and Chrome should be free of warnings, or at least of actual cases that would stop working soon (<link>s and <style>s which are not moved by <custom-style>).

Actual outcome

A warning is thrown, <link> element is not copied to the main document.

Live Demo

https://jsbin.com/regiweh/1/edit?html,console,output

Steps to reproduce

  1. Import a paper-item element in the page.
    <link rel="import" href="paper-item/paper-item.html">
  2. Open the page in Chromium.
  3. Watch the console.

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant