[Webkit-unassigned] [Bug 279243] New: fillSTyle="currentColor" is only respected for styles set as the canvas attribute
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 5 19:44:01 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=279243
Bug ID: 279243
Summary: fillSTyle="currentColor" is only respected for styles
set as the canvas attribute
Product: WebKit
Version: WebKit Nightly Build
Hardware: Mac (Apple Silicon)
OS: macOS 15
Status: NEW
Severity: Normal
Priority: P2
Component: Canvas
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tristan.fraipont at gmail.com
CC: sabouhallawa at apple.com
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240906/13860551/attachment-0001.htm>
More information about the webkit-unassigned
mailing list