-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1825099 [wpt PR 39255] - Reject kernelMatrix with 0 width in conv…
…olveMatrix CanvasFilters., a=testonly Automatic update from web-platform-tests Reject kernelMatrix with 0 width in convolveMatrix CanvasFilters. Only the height was checked (rejecting `[]` kernels) but kernels with zero width like `[[], []]` were incorrectly accepted. The current CanvasFilter specification is defined by reusing the SVG specification for how the filters attributes work (whatwg/html#6763). For the "feConvolveMatrix" filter, the SVG specification says (https://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement): "Attribute definitions: - order = "<number-optional-number>" Indicates the number of cells in each dimension for ‘kernelMatrix’. The values provided must be <integer>s greater than zero. The first number, <orderX>, indicates the number of columns in the matrix. The second number, <orderY>, indicates the number of rows in the matrix. If <orderY> is not provided, it defaults to <orderX>." Change-Id: I23baf05db73e679a52cd9d553d7c6308d91b56f9 Bug: 1428652 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4377066 Reviewed-by: Aaron Krajeski <aaronhk@chromium.org> Commit-Queue: Jean-Philippe Gravel <jpgravel@chromium.org> Cr-Commit-Position: refs/heads/main@{#1124423} -- wpt-commits: 8b9f4e275162d151dc2a0c847601542d75051cbf wpt-pr: 39255
- Loading branch information
1 parent
8777cd2
commit 34476a9
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters