Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1f3404a0e9fa9f4e00501f3c2db7aba5edfb0a99
      
https://github.com/WebKit/WebKit/commit/1f3404a0e9fa9f4e00501f3c2db7aba5edfb0a99
  Author: Jessica Cheung <[email protected]>
  Date:   2026-04-30 (Thu, 30 Apr 2026)

  Changed paths:
    M Source/WebCore/editing/TextListParser.cpp
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SmartLists.mm

  Log Message:
  -----------
  [Smart Lists] Preserve styling of the initial dashes used to create the list
https://bugs.webkit.org/show_bug.cgi?id=313666
rdar://175057775

Reviewed by Megan Gardner and Ryosuke Niwa.

Smart list dashed lists should include support for hyphens, en dashes, and em 
dashes.
Implement this along with preserving their style for smart lists. Include API
tests for creating lists of all supported dash styles.

Additionally, remove InsertingSpaceAndTextAfterHyphenGeneratesDashedList due to
the logic being included in the new tests, causing it to be redundant. Alter
InsertingDifferentListStylesDoesNotMergeLists to expect hyphens instead of en 
dashes
since the expectation is not for all dashed lists to be of en dashed type 
anymore.

* Source/WebCore/editing/TextListParser.cpp:
(WebCore::tryConsumeUnorderedDashTextList):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SmartLists.mm:
(InsertingSpaceAfterHyphenMinusGeneratesDashedListWithHyphenMinusMarker)):
((SmartLists, 
InsertingSpaceAfterUnicodeHyphenGeneratesDashedListWithHyphenMarker)):
((SmartLists, 
InsertingSpaceAfterUnicodeEnDashGeneratesDashedListWithEnDashMarker)):
((SmartLists, InsertingSpaceAfterEmDashGeneratesDashedListWithEmDashMarker)):
((SmartLists, InsertingDifferentListStylesDoesNotMergeLists)):
(InsertingSpaceAndTextAfterHyphenGeneratesDashedList)): Deleted.

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



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

Reply via email to