[Webkit-unassigned] [Bug 167959] New: The formatForeColor event fired by the touch bar when changing color sends the color in rgb(x, y, z) format instead of hex.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 7 14:32:51 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=167959

            Bug ID: 167959
           Summary: The formatForeColor event fired by the touch bar when
                    changing color sends the color in rgb(x, y, z) format
                    instead of hex.
    Classification: Unclassified
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: charleyroy at google.com

Steps to reproduce:

1. Go to https://jsfiddle.net/v79uznt7/1/
2. Open JS console
3. Put cursor in the editable body
4. Use the touch bar to set the color of the text

Observe that e.data is sent as "rgb(x, y, z)"

This is inconsistent with the spec for Input Events (https://w3c.github.io/input-events/) which states that `If the inputType is "formatBackColor" or "formatFontColor" the value of data is to be the hex digit value of the proposed color.`

While the formatForeColor event is not specified in the Input Events spec, it would be nice to be consistent on how this data is represented across all events. Secondly, why is formatForeColor being used and not formatFontColor?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170207/59d98617/attachment-0001.html>


More information about the webkit-unassigned mailing list