[webkit-changes] [WebKit/WebKit] 18173d: Fix css/css-typed-om/the-stylepropertymap/properti...

Chris Dumez noreply at github.com
Thu Dec 22 17:14:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 18173dd49a5f64aca7b6003186aa05b5d6441691
      https://github.com/WebKit/WebKit/commit/18173dd49a5f64aca7b6003186aa05b5d6441691
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2022-12-22 (Thu, 22 Dec 2022)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-width-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-width.html

  Log Message:
  -----------
  Fix css/css-typed-om/the-stylepropertymap/properties/stroke-width.html WPT test
https://bugs.webkit.org/show_bug.cgi?id=249803

Reviewed by Simon Fraser.

Per the specification, `stroke-width`'s computed value should be positive:
- https://svgwg.org/svg2-draft/painting.html#StrokeWidth

However, the test was setting `stroke-width` to "calc(-3.14%)" and expecting
"-3.14s" as computed value. With clamping, the computed value should be "0%" in
this case.

* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-width-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-width.html:

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




More information about the webkit-changes mailing list