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

Dart polymer: style bindings do not compile to JS #13325

Closed
DartBot opened this issue Sep 16, 2013 · 3 comments
Closed

Dart polymer: style bindings do not compile to JS #13325

DartBot opened this issue Sep 16, 2013 · 3 comments

Comments

@DartBot
Copy link

DartBot commented Sep 16, 2013

This issue was originally filed by yurir...@gmail.com


What steps will reproduce the problem?

  1. Take custom_element_with_style project
    https://github.com/sethladd/dart-polymer-dart-examples/blob/master/web/custom_element_with_style/index.html
  2. In html file replace
                    #message {
                        color: pink;
                    }
    with
                    #message {
                        color: {{color}};
                    }
  3. in Dart file add
      @­observable
      String color = "pink";
    to MyElement class
  4. Create build file:
    import 'dart:io';
    import 'package:polymer/component_build.dart';
    main() {
      build(new Options().arguments, ['web/custom_element_with_style/index.html']);
    }
  5. Run the build file

What is the expected output? What do you see instead?
Expected: no errors. Generated java script code works like dart code
 Actual:
warning :17:29: expected }, but found {
                    color: {{color}};
                            ^
warning :17:35: expected :, but found }
                    color: {{color}};
                                  ^
warning :17:37: premature end of file unknown CSS
                    color: {{color}};

What version of the product are you using? On what operating system?
  polymer:
    description: polymer
    source: hosted
    version: "0.7.2+1"

Please provide any additional information below.

@dgrove
Copy link
Contributor

dgrove commented Sep 17, 2013

cc @terrylucas.
Added Area-Polymer, Triaged labels.

@jmesserly
Copy link

style bindings cannot work under polyfill, see
Polymer/polymer#270


Added MovedToGithub label.

@sigmundch
Copy link
Member

Issue #15776 has been merged into this issue.

This issue was closed.
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

5 participants