Page MenuHomePhabricator

Bug 1919718 - Part 1: Implement HTMLInputElement.colorSpace r=emilio
ClosedPublic

Authored by saschanaz on Jan 5 2026, 6:32 PM.
Referenced Files
Unknown Object (File)
Mon, Feb 2, 5:20 AM
Unknown Object (File)
Mon, Feb 2, 4:30 AM
Unknown Object (File)
Sun, Feb 1, 5:58 AM
Unknown Object (File)
Sun, Feb 1, 5:58 AM
Unknown Object (File)
Sun, Feb 1, 5:57 AM
Unknown Object (File)
Fri, Jan 30, 4:47 AM
Unknown Object (File)
Thu, Jan 29, 8:35 PM
Unknown Object (File)
Thu, Jan 29, 8:46 AM

Details

Summary

Skipping the picker part for now, as we don't support wide color gamut yet. Color mapping doesn't work either because of how the picker element is implemented - it's using white-and-black-to-transparent linear-gradient on top of the solid color.

Event Timeline

saschanaz created this revision.
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Jan 5 2026, 6:32 PM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
dom/html/HTMLInputElement.cpp
5146

note: the fallback should keep the colorspace, otherwise it always serializes to #000000.

saschanaz updated this revision to Diff 1180277.
saschanaz updated this revision to Diff 1180884.
saschanaz updated this revision to Diff 1181365.
saschanaz updated this revision to Diff 1182360.
saschanaz retitled this revision from WIP: Bug 1919718 - Part 1: Add HTMLInputElement.colorSpace to WIP: Bug 1919718 - Part 1: Implement HTMLInputElement.colorSpace.
saschanaz updated this revision to Diff 1182370.
saschanaz retitled this revision from WIP: Bug 1919718 - Part 1: Implement HTMLInputElement.colorSpace to Bug 1919718 - Part 1: Implement HTMLInputElement.colorSpace r=emilio.
saschanaz edited the summary of this revision. (Show Details)
saschanaz added a reviewer: emilio.
emilio added a project: testing-approved.

Please send intents as appropriate if this is not intended to be behind a pref. Otherwise add the pref :)

dom/html/HTMLInputElement.cpp
799

CopyUTF8toUTF16 saves one temporary.

5146

Can you file a spec issue here or something?

dom/webidl/HTMLInputElement.webidl
41

Do you want to pref this?

This revision is now accepted and ready to land.Fri, Jan 9, 6:25 PM
dom/html/HTMLInputElement.cpp
5146

What spec issue? The #000000 thing? That was purely the patch logic issue.

dom/html/HTMLInputElement.cpp
5146

What spec issue? The #000000 thing? That was purely the patch logic issue.

Ah,I was misreading the spec quote as unconditionally requesting html compatible serialization even for alpha / color-space enums.

saschanaz edited the summary of this revision. (Show Details)

The analysis task source-test-clang-tidy failed, but we could not detect any defect.
Please check this task manually.

The analysis task source-test-clang-external failed, but we could not detect any defect.
Please check this task manually.


If you see a problem in this automated review, please report it here.

The analysis task source-test-clang-tidy failed, but we could not detect any defect.
Please check this task manually.

The analysis task source-test-clang-external failed, but we could not detect any defect.
Please check this task manually.


If you see a problem in this automated review, please report it here.

saschanaz edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Thu, Jan 15, 8:18 PM
saschanaz edited the summary of this revision. (Show Details)