Skip to content

Commit

Permalink
[SVG] Make 'paint-order' property inherits
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=260335

Reviewed by Tim Nguyen.

This patch aligns WebKit with Blink / Chromium, Gecko / Firefox and Web-Spec [1].

This PR makes 'paint-order' property to be inherited as per spec.

[1] https://svgwg.org/svg2-draft/painting.html#PaintOrder

* Source/WebCore/css/CSSProperties.json: 'paint-order' to be inherited
* LayoutTests/imported/w3c/web-platform-tests/svg/painting/inheritance-expected.txt: Rebaselined

Canonical link: https://commits.webkit.org/267002@main
  • Loading branch information
Ahmad-S792 authored and Ahmad Saleem committed Aug 17, 2023
1 parent 8b9264f commit cd422b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ PASS Property marker-mid inherits
PASS Property marker-end has initial value none
PASS Property marker-end inherits
PASS Property paint-order has initial value normal
FAIL Property paint-order inherits assert_equals: expected "markers stroke" but got "normal"
PASS Property paint-order inherits
PASS Property color-interpolation has initial value srgb
PASS Property color-interpolation inherits
PASS Property shape-rendering has initial value auto
Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/css/CSSProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -5218,6 +5218,7 @@
}
},
"paint-order": {
"inherited": true,
"codegen-properties": {
"converter": "PaintOrder",
"parser-function": "consumePaintOrder",
Expand Down

0 comments on commit cd422b0

Please sign in to comment.