-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
canvas context property changes ignored (fillStyle, etc.) in polymer, dart2js in chrome #14565
Comments
Added Area-Polymer, Triaged labels. |
This is a bug in ShadowDOM. We can try updating; otherwise we need to move it to github: Added Library-ShadowDOM label. |
Yay, both of the PRs got merged! This is a customer facing blocking issue. Maybe we can update our polyfills now that upstream is fixed? |
John updated the polyfills yesterday. Can you try again with version 0.8.8? Added NeedsInfo label. |
Awesome, great news :) |
This comment was originally written by @hpoul i have just tried it with a continuous build (dart editor from http://gsdview.appspot.com/dart-editor-archive-continuous/latest/) but it's still showing the same issues.. $ dart-sdk/bin/dart --version i've ran pub update which fetched polymer 0.8.10 and i'm compiling with: void main() { i'm pretty sure i've rebuilt everything with the latest versions.. am i missing something? thanks |
This comment was originally written by @hpoul OK, I just tried to reproduce it in polymer.js and had the same problem.. (i've downloaded the latest version from github and builded it with grunt..) is there something like unwrap(...) in polymer.dart? Polymer/polymer#288 |
Added Triaged label. |
probably need this? googlearchive/ShadowDOM#298 |
Removed Priority-Unassigned label. |
This comment was originally written by @hpoul Yep, googlearchive/ShadowDOM#298 looks good! just updated my local polymer.js checkout, and now it works for me in javascript without workarounds :) so another pull into dart should do the trick |
Added this to the M9 milestone. |
This comment was originally written by andriy....@gmail.com I am still facing this issue with latest dart editor. |
FYI - change pulling in the fixes is now out for review: https://codereview.chromium.org/68113020/ Set owner to @sigmundch. |
I submitted the fix in r30282. It should be part of the next release of the shadow_dom package (likely next week) Added Fixed label. |
This comment was originally written by andriy.kemin...@gmail.com When i try to draw something on canvas nothing is displayed on IOS. Not sure if it's related with this issue or it'a a completely separate defect. Anyway i created a new one "Issue #15780". |
I, too, had an app where I couldn't draw on canvas on iOS. I never tracked it down, but maybe it's the same thing. |
Removed Library-ShadowDOM label. |
This issue was originally filed by @hpoul
What steps will reproduce the problem?
example:
_context.beginPath();
_context.clearRect(0, 0, _width, _height);
_context.fillStyle = '#ffffff';
_context.strokeStyle = 'rgb(255,0,0)';
_context.lineWidth = 2;
var circleRadius = 100;
_context.arc(_width/2, _height/2, circleRadius, 0, degreeToRadians(360));
_context.stroke();
_context.fill();
What is the expected output? What do you see instead?
i expect white fill color, red stroke color - instead only a black circle is rendered.
What version of the product are you using? On what operating system?
the problem first appeared in dart/polymer 0.8.5 and reproduced in 0.8.7
it works in dartium with dart.. but after dart2js it doesn't work in chrome (stable) and safari, but it works in firefox..
(attached screenshot from left to right: dartium, chrome 30 (stable), firefox 24
Please provide any additional information below.
i've tried debugging a bit the generated dart2js in 0.8.5 but didn't get too far:
https://groups.google.com/a/dartlang.org/d/msg/web-ui/8YmGCAPBh14/pfAE22rIEaIJ
if this is not enough information i can create a running polymer element example if required..
Attachment:
dartium-chrome30-firefox.png (57.27 KB)
The text was updated successfully, but these errors were encountered: