[Webkit-unassigned] [Bug 216795] New: System color 'canvas' cannot be set or read
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 21 12:10:17 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=216795
Bug ID: 216795
Summary: System color 'canvas' cannot be set or read
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dpa-webkit at aegee.org
The way to obtain the default background color set by the user, is to call
function getDefaultBackgroundColor() {
let div = document.createElement("div");
div.style.backgroundColor = "canvas";
document.documentElement.appendChild(div);
let color = getComputedStyle(div).backgroundColor;
div.remove();
return color;
}
This does not work with WebKitGTK 2.28.1/Epiphany 3.36.4. In particular it allows setting custom CSS, and body.background-color in it, but it is unclear how to use the Canvas keyword as calor there.
• How to configure WebKit to change the default canvas system colour, in terms of https://www.w3.org/TR/css-color-4/#css-system-colors
• Please make the snippet above work.
See also https://bugzilla.mozilla.org/show_bug.cgi?id=1666127 and https://gitlab.gnome.org/GNOME/epiphany/-/issues/1344
--
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/20200921/f9bcf715/attachment-0001.htm>
More information about the webkit-unassigned
mailing list