[Webkit-unassigned] [Bug 192922] CSS variables don't work for colors in "border" property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 21 10:46:31 PST 2018


--- Comment #3 from Justin Michaud <justin_michaud at apple.com> ---
This works:
.fail {
    --foreground: 100;
    border: 4px rgb(100, 0, var(--foreground)) dashed;
This does not:
.fail {
    --foreground: 100;
    border: 4px dashed rgb(100, 0, var(--foreground));

The reason is that in the first case, in CSSPropertyParser::consumeBorder, we do not consume the entire value and so consuming the border fails. In the second case, consuming the border does not fail. In CSSPropertyParser::parseValueStart, we expect the parsing to fail in order to fall through to the variable reference parser.

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/20181221/fdb13eaa/attachment-0001.html>

More information about the webkit-unassigned mailing list