Non-COLR glyphs don't get text color applied
Reported by
r...@zxql3000.net,
May 29 2018
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36 OPR/53.0.2907.68 Steps to reproduce the problem: See https://djr.com/merit-badge/test.html A COLR font can also have the individual layers for its glyph available as stylistic sets. For example, A is made up of A.001, A.002 and A.003 in the COLR table. And then ss01 = A → A.001, ss02 = A → A.002, ss03 = A → A.003. Since the glyphs in the stylistic sets are pointing to regular glyphs (and are not color glyphs themselves), I'd expect them to be rendered as regular glyphs. And they are, but they don't take the color from CSS — they are always rendered in black. (See first text on test page) Weird thing is, they _will_ properly take color from CSS when you change the font weight to font-weigh: bold (see second text on test page) What is the expected behavior? The text should be rendered in the colors specified in the CSS What went wrong? The text is rendered in black only, ignoring colors defined both in CSS as in the CPAL table Did this work before? N/A Does this work in other browsers? N/A Chrome version: 66.0.3359.170 Channel: n/a OS Version: OS X 10.13.3 Flash Version: This works properly in Safari, but fails in the same way in Firefox (except it can't be "fixed" by making the font bold)
,
May 30 2018
|
||
►
Sign in to add a comment |
||
Comment 1 by e...@chromium.org
, May 29 2018Status: Assigned (was: Unconfirmed)