Closed Bug 1889133 Opened 2 months ago Closed 2 months ago

[css-color] Parse the `from` keyword for relative color syntax.

Categories

(Core :: CSS Parsing and Computation, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: tlouw, Assigned: tlouw)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed)

Attachments

(1 file)

No description provided.

All color functions support a from keyword as part of the relative color
syntax.

https://drafts.csswg.org/css-color-5/#relative-colors

This patch adds a pref layout.css.relative-color-syntax.enabled that is
off by default.

We start passing tests that only check for the validity of the from
keyword in different color functions.

This should probably be documented at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features once the patch lands (even when it just adds the parsing part).

Sebastian

Keywords: dev-doc-needed
Pushed by tlouw@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2162274710de
Parse the `from <color>` part of the relative color syntax. r=layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch

If I am reading this correctly there is no actual support for from keyword as yet this is just allowing it be parsed. Is that correct?

Flags: needinfo?(tlouw)

(In reply to Dave Letorey from comment #5)

If I am reading this correctly there is no actual support for from keyword as yet this is just allowing it be parsed. Is that correct?

Correct. If you are after the progress of relative color syntax, see bug 1701488.

Flags: needinfo?(tlouw)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: