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

styles linked in document head are not applied to polymer elements in chrome 25 #18930

Closed
DartBot opened this issue May 21, 2014 · 5 comments
Closed
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-obsolete Closed as the reported issue is no longer relevant

Comments

@DartBot
Copy link

DartBot commented May 21, 2014

This issue was originally filed by Erik.Gr...@gmail.com


What steps will reproduce the problem?

  1. Generate the sample polymer application in the editor.
  2. Add bool get applyAuthorStyles => false; to click_counter.dart
  3. Add to the generated css file:

button {
  background-color: blue;
}

  1. Run pub serve
  2. View the application in Chrome 25.

What is the expected output? What do you see instead?

expected: The button should be blue.
actual: The button is default styled.

What version of the product are you using? On what operating system?

polymer: 0.9.5+2
sdk/editor: 1.3.6 STABLE
mac os x: 10.9.2

Please provide any additional information below.

@jmesserly
Copy link

Might be missing something obvious, but:

if your main page says "button { background-color: blue; }" ... it's not supposed to apply to the button inside of click-counter's Shadow DOM, right?


Added Pkg-ShadowDOM, Area-Pkg, NeedsInfo labels.

@DartBot
Copy link
Author

DartBot commented May 21, 2014

This comment was originally written by Erik.G...@gmail.com


You're right it shouldn't, applyAuthorStyles has been deprecated from the Shadow DOM spec. It's been removed from polymer.js (Polymer/polymer#425), but not yet from polymer.dart. Support in Dartium must not have been removed yet (the button will turn blue in Dartium).

@lrhn
Copy link
Member

lrhn commented May 27, 2014

Removed Area-Pkg label.
Added Area-Polymer label.

@jmesserly
Copy link

Removed Area-Polymer label.
Added Area-Pkg label.

@sigmundch
Copy link
Member

applyAuthorStyles is now gone in Dartium too.


Added AssumedStale label.

@DartBot DartBot added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-obsolete Closed as the reported issue is no longer relevant labels Jul 2, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-obsolete Closed as the reported issue is no longer relevant
Projects
None yet
Development

No branches or pull requests

5 participants