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

SDK and Editor 1.4 .0dev_06_05 polymer element extends dom style problem #18833

Closed
DartBot opened this issue May 15, 2014 · 14 comments
Closed

SDK and Editor 1.4 .0dev_06_05 polymer element extends dom style problem #18833

DartBot opened this issue May 15, 2014 · 14 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.

Comments

@DartBot
Copy link

DartBot commented May 15, 2014

This issue was originally filed by joo.tsao...@gmail.com


<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sample app</title>
    
    <link rel="import" href="packages/polymer/polymer.html">
  </head>
  <body>
    <polymer-element name="x-button" extends="button">
      <template>
        <style>
          :host {
            background-color: blue;
          }
        </style>
        
        <content></content>
      </template>
      <script type="application/dart;component=1">
      import 'dart:html';
      import 'package:polymer/polymer.dart';

      @­CustomTag('x-button')
      class XButton extends ButtonElement with Polymer, Observable {
        XButton.created(): super.created() {
          polymerCreated();
        }
      }
      </script>
    </polymer-element>
    
    <button is="x-button" type="button">test</button>
  </body>
</html>

first confirm, polymer element extends dom element, to used by is="x-tag".

above sample run on dartium style apply to polymer element, but run on chrome by dart2js style not apply to polymer element.

above sample if use noscript property run on dartium and chrome work fine.

please help test confirmed, thanks!

@DartBot
Copy link
Author

DartBot commented May 15, 2014

This comment was originally written by joo...@gmail.com


Even more surprising is:

by editor tool "run as" > "browser launch", polymer element has noscript property can apply style, has not noscript property can't apply style. after pub build, has or not noscript property can't apply style.

@DartBot
Copy link
Author

DartBot commented May 15, 2014

This comment was originally written by joo.t...@gmail.com


sorry, polymer ver is 0.10.0-pre.12

@dgrove
Copy link
Contributor

dgrove commented May 15, 2014

What version of chrome are you running on? We currently have a problem that is caused by Dartium's Shadow DOM support being incompatible with Chrome stable (Chrome 35).

@DartBot
Copy link
Author

DartBot commented May 16, 2014

This comment was originally written by joo...@gmail.com


chrome and dartium ver is 34.

@DartBot
Copy link
Author

DartBot commented May 16, 2014

This comment was originally written by joo.tsao...@gmail.com


looks like using polymer element by is="x-tag" cause don't apply style.

@dgrove
Copy link
Contributor

dgrove commented May 17, 2014

Added Area-Polymer, Triaged labels.

@jmesserly
Copy link

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

@sigmundch
Copy link
Member

Added this to the 1.6 milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@sigmundch
Copy link
Member

This seems related to issue #18171 and issue #17741

@sigmundch
Copy link
Member

Removed this from the 1.6 milestone.
Added Polymer-P-1 label.

@sigmundch
Copy link
Member

Removed Polymer-P-1 label.
Added Polymer-Milestone-Next label.

@sigmundch
Copy link
Member

Added PolymerMilestone-Next label.

@sigmundch
Copy link
Member

Removed Polymer-Milestone-Next label.

@DartBot DartBot added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Jul 9, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#183.

@DartBot DartBot closed this as completed Jun 5, 2015
@kevmoo kevmoo removed the triaged label Mar 1, 2016
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.
Projects
None yet
Development

No branches or pull requests

5 participants