[webkit-changes] [WebKit/WebKit] 042030: Sync `link` specific UA stylesheet rule as per SVG...

Ahmad Saleem noreply at github.com
Sat Feb 10 10:59:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 042030db2bb825fe23c6d49310fa6e37e82243f8
      https://github.com/WebKit/WebKit/commit/042030db2bb825fe23c6d49310fa6e37e82243f8
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2024-02-10 (Sat, 10 Feb 2024)

  Changed paths:
    A LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-css-user-agent-style-sheet-and-presentational-hints/no-help-cursor-on-links-wrapped-in-svg.historical-expected.txt
    A LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-css-user-agent-style-sheet-and-presentational-hints/no-help-cursor-on-links-wrapped-in-svg.historical.html
    M LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-css-user-agent-style-sheet-and-presentational-hints/w3c-import.log
    M Source/WebCore/css/svg.css

  Log Message:
  -----------
  Sync `link` specific UA stylesheet rule as per SVG2 Web Specification

https://bugs.webkit.org/show_bug.cgi?id=269076

Reviewed by Anne van Kesteren.

This patch aligns WebKit with Gecko / Firefox, Blink / Chromium and Web Specification:

[1] https://svgwg.org/svg2-draft/styling.html#UAStyleSheet

As per SVG2 specification, this PR adds UA rules for links wrapped in SVG
element to have cursor as `pointer`.

Additionally, this PR also sync test to test above behavior from WPT:

Upstream commit: https://github.com/web-platform-tests/wpt/commit/43a23d0263d9d8a3c0fad2c28d8ff608f4343bb9

* Source/WebCore/css/svg.css:
(a:any-link):
* LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-css-user-agent-style-sheet-and-presentational-hints/w3c-import.log:
* LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-css-user-agent-style-sheet-and-presentational-hints/no-help-cursor-on-links-wrapped-in-svg.historical.html:
* LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-css-user-agent-style-sheet-and-presentational-hints/no-help-cursor-on-links-wrapped-in-svg.historical-expected.txt:

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




More information about the webkit-changes mailing list