Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 041f3d27f174ec75d21ec2f2759925014f54d3a1
      
https://github.com/WebKit/WebKit/commit/041f3d27f174ec75d21ec2f2759925014f54d3a1
  Author: Rob Buis <[email protected]>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/inheritance-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/parsing/block-ellipsis-invalid-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/parsing/block-ellipsis-valid-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/parsing/line-clamp-valid-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/parsing/max-lines-invalid-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/parsing/max-lines-valid-expected.txt
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/ShorthandSerializer.cpp
    M Source/WebCore/css/parser/CSSPropertyParserCustom.h
    M 
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLineBuilder.cpp
    M Source/WebCore/style/values/overflow/StyleBlockEllipsis.cpp
    M Source/WebCore/style/values/overflow/StyleBlockEllipsis.h
    M Source/WebCore/style/values/overflow/StyleMaximumLines.h

  Log Message:
  -----------
  [line-clamp] Update line-clamp, max-lines and block-ellipsis to the latest 
specification
https://bugs.webkit.org/show_bug.cgi?id=323605

Reviewed by Tim Nguyen.

Update line-clamp, max-lines and block-ellipsis to the latest specification 
according to this github issue [1]:
max-lines = <integer [1,inf]> || auto
block-lines = no-ellipsis | ellipsis | <string>
line-clamp = none | [<integer [1,∞]> || <'block-ellipsis'>] -webkit-legacy?

To support this, max-lines parsing can now returns a CSSValueList and likewise 
line-clamp parsing can result
in a CSSValueList if both auto and an integer are provided.

The current WPT tests expect this and chromium already updated these properties 
to match the specification.

[1] w3c/csswg-drafts#13670

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/inheritance-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/parsing/block-ellipsis-invalid-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/parsing/block-ellipsis-valid-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/parsing/line-clamp-valid-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/parsing/max-lines-invalid-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/parsing/max-lines-valid-expected.txt:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ShorthandSerializer.cpp:
(WebCore::ShorthandSerializer::serializeLineClamp const):
* Source/WebCore/css/parser/CSSPropertyParserCustom.h:
(WebCore::CSS::PropertyParserCustom::consumeLineClampShorthand):
* 
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLineBuilder.cpp:
(WebCore::Layout::InlineDisplayLineBuilder::applyEllipsisIfNeeded):
* Source/WebCore/style/values/overflow/StyleBlockEllipsis.cpp:
(WebCore::Style::CSSValueConversion<BlockEllipsis>::operator):
* Source/WebCore/style/values/overflow/StyleBlockEllipsis.h:
(WebCore::Style::BlockEllipsis::BlockEllipsis):
(WebCore::Style::BlockEllipsis::isEllipsis const):
(WebCore::Style::BlockEllipsis::switchOn const):
(WebCore::Style::BlockEllipsis::isAuto const): Deleted.
* Source/WebCore/style/values/overflow/StyleMaximumLines.h:

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



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

Reply via email to