[webkit-changes] [WebKit/WebKit] a21e36: Always use no-quirks mode for CSS.supports()

Anne van Kesteren noreply at github.com
Fri Jun 2 10:58:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a21e36ac280d7e9918b0fa43094bbf37da3c01d9
      https://github.com/WebKit/WebKit/commit/a21e36ac280d7e9918b0fa43094bbf37da3c01d9
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2023-06-02 (Fri, 02 Jun 2023)

  Changed paths:
    M LayoutTests/css3/css-supports-document-parser-context-expected.txt
    M LayoutTests/css3/css-supports-document-parser-context.html
    M LayoutTests/css3/resources/css-supports-document-parser-context-nonstrict.html
    M LayoutTests/imported/w3c/resources/import-expectations.json
    M LayoutTests/imported/w3c/web-platform-tests/quirks/classname-query-after-sibling-adoption.html
    M LayoutTests/imported/w3c/web-platform-tests/quirks/supports-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/quirks/text-decoration-doesnt-propagate-into-tables/standards-expected.html
    M LayoutTests/imported/w3c/web-platform-tests/quirks/text-decoration-doesnt-propagate-into-tables/standards-ref.html
    M LayoutTests/imported/w3c/web-platform-tests/quirks/text-decoration-doesnt-propagate-into-tables/standards.html
    M LayoutTests/tests-options.json
    M Source/WebCore/css/DOMCSSNamespace.cpp

  Log Message:
  -----------
  Always use no-quirks mode for CSS.supports()
https://bugs.webkit.org/show_bug.cgi?id=257643
rdar://110162243

Reviewed by Tim Nguyen.

Align with the standard and other browsers. In particular

  https://drafts.csswg.org/css-color-4/#quirky-color
  https://drafts.csswg.org/css-values-4/#deprecated-quirky-length

mandate this and those are the only quirks applying to CSS.supports().
As stated there this is not applicable to @supports.

* LayoutTests/css3/css-supports-document-parser-context-expected.txt:
* LayoutTests/css3/css-supports-document-parser-context.html:
* LayoutTests/css3/resources/css-supports-document-parser-context-nonstrict.html:
* LayoutTests/imported/w3c/resources/import-expectations.json:
* LayoutTests/imported/w3c/web-platform-tests/quirks/classname-query-after-sibling-adoption.html:
* LayoutTests/imported/w3c/web-platform-tests/quirks/supports-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/quirks/text-decoration-doesnt-propagate-into-tables/standards-expected.html:
* LayoutTests/imported/w3c/web-platform-tests/quirks/text-decoration-doesnt-propagate-into-tables/standards-ref.html:
* LayoutTests/imported/w3c/web-platform-tests/quirks/text-decoration-doesnt-propagate-into-tables/standards.html:
* LayoutTests/tests-options.json:
* Source/WebCore/css/DOMCSSNamespace.cpp:
(WebCore::DOMCSSNamespace::supports):

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




More information about the webkit-changes mailing list