NEW 279243
fillSTyle="currentColor" is only respected for styles set as the canvas attribute
https://bugs.webkit.org/show_bug.cgi?id=279243
Summary fillSTyle="currentColor" is only respected for styles set as the canvas attri...
Kaiido
Reported 2024-09-05 19:44:01 PDT
https://jsfiddle.net/pu8gdz9s/ The `fillStyle` or `strokeStyle` of a 2D context of a canvas attached to the DOM should get the computed `color` of its HTMLCanvasElement when set to `"currentColor"`. This works (and is tested) only when the CSS `color` value is set through an HTML `style="color:...` attribute on the `<canvas>` directly. Inheritance or setting through style-sheet doesn't work as it should. Firefox has it correct, Chrome has the same bug: https://issues.chromium.org/issues/364924730
Attachments
Radar WebKit Bug Importer
Comment 1 2024-09-12 19:44:14 PDT
Note You need to log in before you can comment on or make changes to this bug.