[webkit-changes] [WebKit/WebKit] d8bfd1: Update CSSProperties.json with 'initial' and 'anim...

Sam Weinig noreply at github.com
Wed Feb 19 07:23:56 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d8bfd1cd3e4416467ed95015b220edc6fc28875b
      https://github.com/WebKit/WebKit/commit/d8bfd1cd3e4416467ed95015b220edc6fc28875b
  Author: Sam Weinig <sam at webkit.org>
  Date:   2025-02-19 (Wed, 19 Feb 2025)

  Changed paths:
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/process-css-properties.py
    M Tools/Scripts/webkitpy/style/checkers/jsonchecker.py

  Log Message:
  -----------
  Update CSSProperties.json with 'initial' and 'animation-type' fields
https://bugs.webkit.org/show_bug.cgi?id=287823

Reviewed by Tim Nguyen.

Updates style properties in CSSProperties.json with "initial" and
"animation-type" fields taken from specification property definition
tables. These currently don't have any effect on code generation
but are validated by process-css-properties.py. They will be used
for code generation in follow up changes.

To increase clarity, a few fields have been renamed:

     "animatable" -> "animation-property" (also moved to codegen-properties)

     "getter" -> "render-style-getter"
     "setter" -> "render-style-setter"
     "initial" -> "render-style-initial"

     "custom" -> "style-builder-custom"
     "converter" -> "style-builder-converter"
     "conditional-converter" -> "style-builder-conditional-converter"
     "name-for-methods" -> "style-builder-name-for-methods"

Additionally, instead of using a "comment" field, properties that
use "top-priority" now must specify a "top-priority-reason" field.

With that use of comment removed, now each shematized dictionary
has an implicitly allowed "comment" field for general commenting,
and every field "foo" has a sibling field "foo-comment" to allow
commenting on that specific field. This is used, for example, to
add explanations when a field doesn't match the current spec.

While going through the list, URLs and keyword lists were updated
where out of date.

* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/process-css-properties.py:
* Tools/Scripts/webkitpy/style/checkers/jsonchecker.py:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list