Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 618186fc714c0734742ef6d6eb7406abe9b6c1f6
      
https://github.com/WebKit/WebKit/commit/618186fc714c0734742ef6d6eb7406abe9b6c1f6
  Author: Ahmad Saleem <[email protected]>
  Date:   2025-12-08 (Mon, 08 Dec 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-display/display-first-line-001-expected.txt
    M Source/WebCore/style/StyleAdjuster.cpp
    M Source/WebCore/style/StyleAdjuster.h

  Log Message:
  -----------
  Adjust display type of ::first-line pseudo-element
https://bugs.webkit.org/show_bug.cgi?id=303696

Reviewed by Antti Koivisto.

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

According to web specification [1]. we cannot set the display on first-line
pseudo element and we should force display type inline.

[1] https://www.w3.org/TR/css-display-3/#placement

* Source/WebCore/style/StyleAdjuster.cpp:
(WebCore::Style::Adjuster::adjustFirstLineStyle):
(WebCore::Style::Adjuster::adjust const):
* Source/WebCore/style/StyleAdjuster.h:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-display/display-first-line-001-expected.txt:
 Progression

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



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

Reply via email to