#1765 Support calc-in-color

Open
opened 7 months ago by Moonchild · 2 comments

While we support variables and calc() in CSS, we currently don’t support calc() inside color functions like rgb[a]() and hsl[a]().

Mozilla added this in Firefox59 (rust only). The changeset did not indicate a BZ bug so we’d have to dig for that for potential alternative implementations outside Servo and/or inspiration to approach this enhancement.

While we support variables and `calc()` in CSS, we currently don't support `calc()` inside color functions like `rgb[a]()` and `hsl[a]()`. Mozilla added this in Firefox59 (rust only). The changeset did not indicate a BZ bug so we'd have to dig for that for potential alternative implementations outside Servo and/or inspiration to approach this enhancement.
Moonchild added the
C: Layout - CSS
label 7 months ago
Moonchild added the
Enhancement
label 7 months ago

Seems to be https://bugzilla.mozilla.org/show_bug.cgi?id=984021 an absolute minimal bug.
This is a webkit-specific feature that was adopted into Firefox (after years of not supporting it) after an advocacy run.

Seems to be https://bugzilla.mozilla.org/show_bug.cgi?id=984021 an absolute minimal bug. This is a webkit-specific feature that was adopted into Firefox (after years of not supporting it) after an advocacy run.

For a non-rust implementation we can probably draw inspiration from https://bugzilla.mozilla.org/show_bug.cgi?id=594933 and similar.

For a non-rust implementation we can probably draw inspiration from https://bugzilla.mozilla.org/show_bug.cgi?id=594933 and similar.
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Due Date

No due date set.

Loading…
There is no content yet.