-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync
SVGLength
with WebIDL specification
https://bugs.webkit.org/show_bug.cgi?id=275028 Reviewed by Simon Fraser. This patch aligns WebKit with web-specification [1]: [1] https://svgwg.org/svg2-draft/types.html#InterfaceSVGLength From above, `value` and `valueInSpecifiedUnits` should not be 'unrestricted', so this patch remove it from both. Unfortunately, we do still have few issues in 'valueAsString' to fix and enable us to progress further in sub-tests but this patch do reduce our failures further. I synced additional tests for local copy from below Blink commit (minus some changes). Commit: https://chromium.googlesource.com/chromium/src/+/7d9f4bebeb65115c81918032278174ad01858d33 In future, we should delete local copy and just use WPT as reference. * LayoutTests/imported/w3c/web-platform-tests/svg/types/scripted/SVGLength-expected.txt: * LayoutTests/svg/dom/SVGLength-expected.txt: * LayoutTests/svg/dom/SVGLength.html: * Source/WebCore/svg/SVGLength.idl: Canonical link: https://commits.webkit.org/279659@main
- Loading branch information
Ahmad Saleem
committed
Jun 3, 2024
1 parent
b5e7baa
commit 57c43e3
Showing
4 changed files
with
105 additions
and
24 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
LayoutTests/imported/w3c/web-platform-tests/svg/types/scripted/SVGLength-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
FAIL SVGLength interface assert_throws_js: function "function() { length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 'aString'); }" did not throw | ||
FAIL SVGLength interface The string did not match the expected pattern. | ||
|
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