[webkit-changes] [WebKit/WebKit] 3dc74d: SVG rect with rx or ry set to zero is drawn incorr...

Said Abou-Hallawa noreply at github.com
Mon Aug 7 10:55:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3dc74d79ceb7bd7fe9cb76a3952a5ee42c41b705
      https://github.com/WebKit/WebKit/commit/3dc74d79ceb7bd7fe9cb76a3952a5ee42c41b705
  Author: Said Abou-Hallawa <said at apple.com>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    A LayoutTests/svg/custom/rect-radius-constraints-expected.svg
    A LayoutTests/svg/custom/rect-radius-constraints.svg
    M Source/WebCore/rendering/svg/SVGPathData.cpp

  Log Message:
  -----------
  SVG rect with rx or ry set to zero is drawn incorrectly
https://bugs.webkit.org/show_bug.cgi?id=259772
rdar://113396109

Reviewed by Nikolas Zimmermann.

According to the SVG rect element specs [1], when rx or ry is set to negative,
the other corner radius value is used. If rx or ry is set to zero, no rounded
corner is drawn for the rect.

[1] https://www.w3.org/TR/SVG2/geometry.html#RxProperty

* LayoutTests/svg/custom/rect-radius-constraints-expected.svg: Added.
* LayoutTests/svg/custom/rect-radius-constraints.svg: Added.
* Source/WebCore/rendering/svg/SVGPathData.cpp:
(WebCore::pathFromRectElement):

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




More information about the webkit-changes mailing list