[webkit-changes] [WebKit/WebKit] a62f77: -webkit-radial-gradient parsing accidentally treat...

Darin Adler noreply at github.com
Tue Nov 8 16:50:54 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a62f77706c4f564444d9f5a36a1e0a295d050692
      https://github.com/WebKit/WebKit/commit/a62f77706c4f564444d9f5a36a1e0a295d050692
  Author: Darin Adler <darin at apple.com>
  Date:   2022-11-08 (Tue, 08 Nov 2022)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/compat/webkit-gradient-comma-expected.txt
    M Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp

  Log Message:
  -----------
  -webkit-radial-gradient parsing accidentally treats a number of mandatory commas as optional
https://bugs.webkit.org/show_bug.cgi?id=247649
rdar://problem/102111231

Reviewed by Sam Weinig.

* LayoutTests/imported/w3c/web-platform-tests/compat/webkit-gradient-comma-expected.txt:
Expect PASS.

* Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumePrefixedRadialGradient): Rearranged the comma parsing
so it matches the grammar, and fail if the commas are missing.

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




More information about the webkit-changes mailing list