Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8fc75a523e00c6976854d51ce31d4885364ee229
      
https://github.com/WebKit/WebKit/commit/8fc75a523e00c6976854d51ce31d4885364ee229
  Author: Anne van Kesteren <[email protected]>
  Date:   2024-10-17 (Thu, 17 Oct 2024)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color-attributes.window-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color-attributes.window.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color-attributes.window.js
    R 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color-expected.txt
    R 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.tentative-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.tentative.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.window-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.window.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.window.js
    M 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/w3c-import.log
    M LayoutTests/platform/glib/TestExpectations
    M LayoutTests/platform/mac-wk1/TestExpectations
    M LayoutTests/platform/wpe/TestExpectations
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/html/ColorInputType.cpp
    M Source/WebCore/html/HTMLAttributeNames.in
    M Source/WebCore/html/HTMLInputElement.cpp
    M Source/WebCore/html/HTMLInputElement.h
    M Source/WebCore/html/HTMLInputElement.idl

  Log Message:
  -----------
  Enhanced <input type=color>: infrastructure for alpha and colorspace 
attributes
https://bugs.webkit.org/show_bug.cgi?id=281213
rdar://137663314

Reviewed by Sam Weinig.

Add the necessary infrastructure for
https://github.com/whatwg/html/pull/10456. In particular:

- Support the alpha and colorspace attributes behind a preference.
- When the preference is enabled vastly expand the CSS color parsing
  and serialization capabilities of <input type=color>.

Future changes will adjust the UI accordingly.

Tests are upstreamed here:
https://github.com/web-platform-tests/wpt/pull/48630

* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color-attributes.window-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color-attributes.window.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color-attributes.window.js:
 Added.
(test):
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.tentative-expected.txt:
 Renamed from 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color-expected.txt.
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.tentative.html:
 Renamed from 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.html.
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.window-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.window.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/color.window.js:
 Added.
(const.assert_colors.set_up_fuzzy_color_test):
(forEach):
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/w3c-import.log:
* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/mac-wk1/TestExpectations:
* LayoutTests/platform/wpe/TestExpectations:
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/html/ColorInputType.cpp:
(WebCore::colorParsingParameters):
(WebCore::parseColorValue):
(WebCore::serializeColorValue):
(WebCore::ColorInputType::fallbackValue const):
(WebCore::ColorInputType::sanitizeValue const):
(WebCore::ColorInputType::valueAsColor const):
(WebCore::ColorInputType::typeMismatchFor const):
(WebCore::ColorInputType::didChooseColor):
(WebCore::ColorInputType::suggestedColors const):
(WebCore::ColorInputType::selectColor):
* Source/WebCore/html/HTMLAttributeNames.in:
* Source/WebCore/html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::attributeChanged):
(WebCore::HTMLInputElement::alpha):
(WebCore::HTMLInputElement::colorSpace):
(WebCore::HTMLInputElement::setColorSpace):
* Source/WebCore/html/HTMLInputElement.h:
* Source/WebCore/html/HTMLInputElement.idl:

Canonical link: https://commits.webkit.org/285322@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to