[webkit-changes] [WebKit/WebKit] c07a3c: [text-wrap] Enable `text-wrap: balance` in STP

Tim Nguyen noreply at github.com
Mon Oct 23 15:56:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c07a3c339c79176f5c06ffc5a285a450f4db7f8a
      https://github.com/WebKit/WebKit/commit/c07a3c339c79176f5c06ffc5a285a450f4db7f8a
  Author: Tim Nguyen <ntim at apple.com>
  Date:   2023-10-23 (Mon, 23 Oct 2023)

  Changed paths:
    A LayoutTests/fast/css/text-wrap-pretty-disabled-expected.txt
    A LayoutTests/fast/css/text-wrap-pretty-disabled.html
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/parser/CSSParserContext.cpp
    M Source/WebCore/css/parser/CSSParserContext.h
    M Source/WebCore/css/parser/CSSPropertyParser.cpp

  Log Message:
  -----------
  [text-wrap] Enable `text-wrap: balance` in STP
https://bugs.webkit.org/show_bug.cgi?id=263516
rdar://117336969

Reviewed by Brent Fulgham.

Enable the `text-wrap-style` property in STP (and hence `text-wrap: balance`).

Also split out `text-wrap-style: pretty` in its own preference since it is not currently implemented.

* LayoutTests/fast/css/text-wrap-pretty-disabled-expected.txt: Added.
* LayoutTests/fast/css/text-wrap-pretty-disabled.html: Added.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/parser/CSSParserContext.cpp:
(WebCore::add):
* Source/WebCore/css/parser/CSSParserContext.h:
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::CSSPropertyParser::consumeTextWrapShorthand):

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




More information about the webkit-changes mailing list