Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 844d3f98b4a6830e0bfc3c03359b26a9acd61e38
      
https://github.com/WebKit/WebKit/commit/844d3f98b4a6830e0bfc3c03359b26a9acd61e38
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-10-14 (Wed, 14 Oct 2026)

  Changed paths:
    M Source/WebCore/css/CSSPropertyInitialValues.cpp

  Log Message:
  -----------
  isInitialValueForLonghand() returns early for mask-border-slice instead of 
breaking like the other cases
https://bugs.webkit.org/show_bug.cgi?id=327177
rdar://189766366

Reviewed by Antti Koivisto.

The CSSPropertyMaskBorderSlice case in isInitialValueForLonghand() ended
with `return false;`, while every other case, including its
CSSPropertyBorderImageSlice counterpart, uses `break;` and falls through
to the generic initial-value comparison after the switch. Make it
consistent.

No behavior change: the parser always produces a CSSMaskBorderSliceValue
for mask-border-slice, so the generic isNumber() check would also return
false for it.

* Source/WebCore/css/CSSPropertyInitialValues.cpp:
(WebCore::isInitialValueForLonghand):

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



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

Reply via email to