1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-08-15 16:10:39 +03:00

#396 add tests for some svg gradients

This commit is contained in:
Daniil Manin 2019-05-29 10:42:59 +07:00
parent 1fbc6f335b
commit ad9b512837
16 changed files with 5532 additions and 17 deletions

View File

@ -512,6 +512,8 @@
A74C81ED229284790085A832 /* struct-use-01-t-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C81EB229284780085A832 /* struct-use-01-t-manual.svg */; };
A74C81F12292B3940085A832 /* color-prop-05-t-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C81F02292B3940085A832 /* color-prop-05-t-manual.svg */; };
A74C81F32292B45E0085A832 /* color-prop-05-t-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C81F22292B45D0085A832 /* color-prop-05-t-manual.reference */; };
A74C82032296BE5F0085A832 /* paths-data-20-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82022296BE5F0085A832 /* paths-data-20-f-manual.svg */; };
A74C82052296BFC60085A832 /* paths-data-20-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82042296BFC60085A832 /* paths-data-20-f-manual.reference */; };
A74C821F2297D4810085A832 /* coords-trans-13-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C821A2297D4800085A832 /* coords-trans-13-f-manual.svg */; };
A74C82202297D4810085A832 /* coords-trans-14-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C821B2297D4800085A832 /* coords-trans-14-f-manual.svg */; };
A74C82212297D4810085A832 /* coords-trans-11-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C821C2297D4800085A832 /* coords-trans-11-f-manual.svg */; };
@ -530,8 +532,20 @@
A74C823E2297DB2C0085A832 /* shapes-rect-03-t-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C823A2297DB2B0085A832 /* shapes-rect-03-t-manual.reference */; };
A74C823F2297DB2C0085A832 /* shapes-rect-06-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C823B2297DB2B0085A832 /* shapes-rect-06-f-manual.reference */; };
A74C82412297DC220085A832 /* shapes-rect-02-t-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82402297DC220085A832 /* shapes-rect-02-t-manual.reference */; };
A74C82032296BE5F0085A832 /* paths-data-20-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82022296BE5F0085A832 /* paths-data-20-f-manual.svg */; };
A74C82052296BFC60085A832 /* paths-data-20-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82042296BFC60085A832 /* paths-data-20-f-manual.reference */; };
A74C82E1229E35D30085A832 /* pservers-grad-09-b-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DA229E35D20085A832 /* pservers-grad-09-b-manual.svg */; };
A74C82E2229E35D30085A832 /* pservers-grad-24-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DB229E35D20085A832 /* pservers-grad-24-f-manual.svg */; };
A74C82E3229E35D30085A832 /* pservers-grad-15-b-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DC229E35D20085A832 /* pservers-grad-15-b-manual.svg */; };
A74C82E4229E35D30085A832 /* pservers-grad-22-b-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DD229E35D30085A832 /* pservers-grad-22-b-manual.svg */; };
A74C82E5229E35D30085A832 /* pservers-grad-13-b-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DE229E35D30085A832 /* pservers-grad-13-b-manual.svg */; };
A74C82E6229E35D30085A832 /* pservers-grad-23-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DF229E35D30085A832 /* pservers-grad-23-f-manual.svg */; };
A74C82E7229E35D30085A832 /* pservers-grad-12-b-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82E0229E35D30085A832 /* pservers-grad-12-b-manual.svg */; };
A74C82EF229E369A0085A832 /* pservers-grad-12-b-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82E8229E36990085A832 /* pservers-grad-12-b-manual.reference */; };
A74C82F0229E369A0085A832 /* pservers-grad-23-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82E9229E36990085A832 /* pservers-grad-23-f-manual.reference */; };
A74C82F1229E369A0085A832 /* pservers-grad-24-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82EA229E36990085A832 /* pservers-grad-24-f-manual.reference */; };
A74C82F2229E369A0085A832 /* pservers-grad-15-b-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82EB229E36990085A832 /* pservers-grad-15-b-manual.reference */; };
A74C82F3229E369A0085A832 /* pservers-grad-09-b-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82EC229E36990085A832 /* pservers-grad-09-b-manual.reference */; };
A74C82F4229E369A0085A832 /* pservers-grad-13-b-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82ED229E36990085A832 /* pservers-grad-13-b-manual.reference */; };
A74C82F5229E369A0085A832 /* pservers-grad-22-b-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82EE229E369A0085A832 /* pservers-grad-22-b-manual.reference */; };
A7E675561EC4213500BD9ECB /* NodeBoundsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7E675551EC4213500BD9ECB /* NodeBoundsTests.swift */; };
C410148E1F834D290022EE44 /* style.svg in Resources */ = {isa = PBXBuildFile; fileRef = C410148D1F834D280022EE44 /* style.svg */; };
C4153A8F1F8793DE001BA5EE /* small-logo.png in Resources */ = {isa = PBXBuildFile; fileRef = C4153A8E1F8793DD001BA5EE /* small-logo.png */; };
@ -951,6 +965,8 @@
A74C81EB229284780085A832 /* struct-use-01-t-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "struct-use-01-t-manual.svg"; sourceTree = "<group>"; };
A74C81F02292B3940085A832 /* color-prop-05-t-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "color-prop-05-t-manual.svg"; sourceTree = "<group>"; };
A74C81F22292B45D0085A832 /* color-prop-05-t-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "color-prop-05-t-manual.reference"; sourceTree = "<group>"; };
A74C82022296BE5F0085A832 /* paths-data-20-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "paths-data-20-f-manual.svg"; sourceTree = "<group>"; };
A74C82042296BFC60085A832 /* paths-data-20-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "paths-data-20-f-manual.reference"; sourceTree = "<group>"; };
A74C821A2297D4800085A832 /* coords-trans-13-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-13-f-manual.svg"; sourceTree = "<group>"; };
A74C821B2297D4800085A832 /* coords-trans-14-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-14-f-manual.svg"; sourceTree = "<group>"; };
A74C821C2297D4800085A832 /* coords-trans-11-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-11-f-manual.svg"; sourceTree = "<group>"; };
@ -969,8 +985,20 @@
A74C823A2297DB2B0085A832 /* shapes-rect-03-t-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "shapes-rect-03-t-manual.reference"; sourceTree = "<group>"; };
A74C823B2297DB2B0085A832 /* shapes-rect-06-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "shapes-rect-06-f-manual.reference"; sourceTree = "<group>"; };
A74C82402297DC220085A832 /* shapes-rect-02-t-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "shapes-rect-02-t-manual.reference"; sourceTree = "<group>"; };
A74C82022296BE5F0085A832 /* paths-data-20-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "paths-data-20-f-manual.svg"; sourceTree = "<group>"; };
A74C82042296BFC60085A832 /* paths-data-20-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "paths-data-20-f-manual.reference"; sourceTree = "<group>"; };
A74C82DA229E35D20085A832 /* pservers-grad-09-b-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-09-b-manual.svg"; sourceTree = "<group>"; };
A74C82DB229E35D20085A832 /* pservers-grad-24-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-24-f-manual.svg"; sourceTree = "<group>"; };
A74C82DC229E35D20085A832 /* pservers-grad-15-b-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-15-b-manual.svg"; sourceTree = "<group>"; };
A74C82DD229E35D30085A832 /* pservers-grad-22-b-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-22-b-manual.svg"; sourceTree = "<group>"; };
A74C82DE229E35D30085A832 /* pservers-grad-13-b-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-13-b-manual.svg"; sourceTree = "<group>"; };
A74C82DF229E35D30085A832 /* pservers-grad-23-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-23-f-manual.svg"; sourceTree = "<group>"; };
A74C82E0229E35D30085A832 /* pservers-grad-12-b-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-12-b-manual.svg"; sourceTree = "<group>"; };
A74C82E8229E36990085A832 /* pservers-grad-12-b-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-12-b-manual.reference"; sourceTree = "<group>"; };
A74C82E9229E36990085A832 /* pservers-grad-23-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-23-f-manual.reference"; sourceTree = "<group>"; };
A74C82EA229E36990085A832 /* pservers-grad-24-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-24-f-manual.reference"; sourceTree = "<group>"; };
A74C82EB229E36990085A832 /* pservers-grad-15-b-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-15-b-manual.reference"; sourceTree = "<group>"; };
A74C82EC229E36990085A832 /* pservers-grad-09-b-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-09-b-manual.reference"; sourceTree = "<group>"; };
A74C82ED229E36990085A832 /* pservers-grad-13-b-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-13-b-manual.reference"; sourceTree = "<group>"; };
A74C82EE229E369A0085A832 /* pservers-grad-22-b-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-22-b-manual.reference"; sourceTree = "<group>"; };
A7E675551EC4213500BD9ECB /* NodeBoundsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = NodeBoundsTests.swift; path = Bounds/NodeBoundsTests.swift; sourceTree = "<group>"; };
C410148D1F834D280022EE44 /* style.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = style.svg; sourceTree = "<group>"; };
C4153A8E1F8793DD001BA5EE /* small-logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "small-logo.png"; sourceTree = "<group>"; };
@ -1552,6 +1580,20 @@
5B7E79C220CA7F1A00C50BCF /* pservers-grad-03-b-manual.svg */,
5B37139120BE95D6004BB6EE /* pservers-grad-07-b-manual.reference */,
5B37139520BE95D7004BB6EE /* pservers-grad-07-b-manual.svg */,
A74C82EC229E36990085A832 /* pservers-grad-09-b-manual.reference */,
A74C82DA229E35D20085A832 /* pservers-grad-09-b-manual.svg */,
A74C82E8229E36990085A832 /* pservers-grad-12-b-manual.reference */,
A74C82E0229E35D30085A832 /* pservers-grad-12-b-manual.svg */,
A74C82ED229E36990085A832 /* pservers-grad-13-b-manual.reference */,
A74C82DE229E35D30085A832 /* pservers-grad-13-b-manual.svg */,
A74C82EB229E36990085A832 /* pservers-grad-15-b-manual.reference */,
A74C82DC229E35D20085A832 /* pservers-grad-15-b-manual.svg */,
A74C82EE229E369A0085A832 /* pservers-grad-22-b-manual.reference */,
A74C82DD229E35D30085A832 /* pservers-grad-22-b-manual.svg */,
A74C82E9229E36990085A832 /* pservers-grad-23-f-manual.reference */,
A74C82DF229E35D30085A832 /* pservers-grad-23-f-manual.svg */,
A74C82EA229E36990085A832 /* pservers-grad-24-f-manual.reference */,
A74C82DB229E35D20085A832 /* pservers-grad-24-f-manual.svg */,
5B1AE1F020B6A669007EECCB /* pservers-grad-stops-01-f-manual.reference */,
5B1AE1EB20B6A669007EECCB /* pservers-grad-stops-01-f-manual.svg */,
5B1AE1A220B6A669007EECCB /* render-elems-01-t-manual.reference */,
@ -1854,6 +1896,8 @@
5B1AE2C720B6A669007EECCB /* paths-data-02-t-manual.svg in Resources */,
A74C823C2297DB2C0085A832 /* shapes-rect-07-f-manual.reference in Resources */,
5B1AE27120B6A669007EECCB /* painting-stroke-04-t-manual.reference in Resources */,
A74C82F3229E369A0085A832 /* pservers-grad-09-b-manual.reference in Resources */,
A74C82E4229E35D30085A832 /* pservers-grad-22-b-manual.svg in Resources */,
5B1AE2C220B6A669007EECCB /* coords-trans-05-t-manual.svg in Resources */,
5B1AE29D20B6A669007EECCB /* types-basic-01-f-manual.reference in Resources */,
5B1AE25820B6A669007EECCB /* paths-data-08-t-manual.reference in Resources */,
@ -1887,6 +1931,7 @@
A74C82352297D8B40085A832 /* shapes-rect-07-f-manual.svg in Resources */,
5B1AE2A520B6A669007EECCB /* coords-trans-02-t-manual.reference in Resources */,
5B1AE23220B6A669007EECCB /* text-align-01-b-manual.svg in Resources */,
A74C82E5229E35D30085A832 /* pservers-grad-13-b-manual.svg in Resources */,
5B1AE2B220B6A669007EECCB /* types-basic-01-f-manual.svg in Resources */,
58944BDA20AC8A9A00657640 /* logo_base64.txt in Resources */,
5B1AE2C520B6A669007EECCB /* coords-trans-02-t-manual.svg in Resources */,
@ -1898,12 +1943,14 @@
5B1AE2D020B6A669007EECCB /* struct-defs-01-t-manual.reference in Resources */,
5B1AE25020B6A669007EECCB /* render-elems-01-t-manual.reference in Resources */,
A74C822C2297D5350085A832 /* coords-trans-10-f-manual.reference in Resources */,
A74C82E1229E35D30085A832 /* pservers-grad-09-b-manual.svg in Resources */,
5B1AE24520B6A669007EECCB /* struct-frag-01-t-manual.reference in Resources */,
5B1AE25B20B6A669007EECCB /* painting-stroke-01-t-manual.svg in Resources */,
A74C823E2297DB2C0085A832 /* shapes-rect-03-t-manual.reference in Resources */,
5BAE2047208E163D006BF277 /* viewBox.reference in Resources */,
5B1AE2C120B6A669007EECCB /* painting-stroke-04-t-manual.svg in Resources */,
5B1AE2BE20B6A669007EECCB /* painting-stroke-03-t-manual.svg in Resources */,
A74C82E3229E35D30085A832 /* pservers-grad-15-b-manual.svg in Resources */,
5B1AE2BB20B6A669007EECCB /* paths-data-04-t-manual.reference in Resources */,
5BAE2042208E163D006BF277 /* group.reference in Resources */,
5B1AE27020B6A669007EECCB /* shapes-line-01-t-manual.svg in Resources */,
@ -1924,11 +1971,14 @@
5B1AE25E20B6A669007EECCB /* paths-data-17-f-manual.reference in Resources */,
5B1AE23F20B6A669007EECCB /* coords-trans-06-t-manual.svg in Resources */,
5B1AE23720B6A669007EECCB /* paths-data-16-t-manual.reference in Resources */,
A74C82F5229E369A0085A832 /* pservers-grad-22-b-manual.reference in Resources */,
5B1AE24120B6A669007EECCB /* coords-transformattr-04-f-manual.reference in Resources */,
5B1AE2D520B6A669007EECCB /* painting-stroke-02-t-manual.svg in Resources */,
A74C82F4229E369A0085A832 /* pservers-grad-13-b-manual.reference in Resources */,
5B1AE2A820B6A669007EECCB /* color-prop-03-t-manual.reference in Resources */,
5B1AE27620B6A669007EECCB /* render-elems-02-t-manual.svg in Resources */,
5B1AE28620B6A669007EECCB /* paths-data-10-t-manual.reference in Resources */,
A74C82E2229E35D30085A832 /* pservers-grad-24-f-manual.svg in Resources */,
5B1AE2D420B6A669007EECCB /* painting-stroke-05-t-manual.svg in Resources */,
5B1AE2CF20B6A669007EECCB /* paths-data-07-t-manual.reference in Resources */,
5B1AE28D20B6A669007EECCB /* shapes-circle-01-t-manual.reference in Resources */,
@ -1996,6 +2046,7 @@
5B1AE29520B6A669007EECCB /* shapes-ellipse-03-f-manual.reference in Resources */,
5B1AE23820B6A669007EECCB /* color-prop-01-b-manual.svg in Resources */,
A74C822A2297D5350085A832 /* coords-trans-11-f-manual.reference in Resources */,
A74C82E6229E35D30085A832 /* pservers-grad-23-f-manual.svg in Resources */,
5B1AE24620B6A669007EECCB /* painting-control-01-f-manual.svg in Resources */,
5B1AE2B120B6A669007EECCB /* color-prop-03-t-manual.svg in Resources */,
A74C81EC229284790085A832 /* struct-use-01-t-manual.reference in Resources */,
@ -2024,6 +2075,7 @@
5B1AE2C620B6A669007EECCB /* painting-fill-05-b-manual.reference in Resources */,
57CAB1331D7832E000FD8E47 /* polyline.svg in Resources */,
A74C822B2297D5350085A832 /* coords-trans-14-f-manual.reference in Resources */,
A74C82F2229E369A0085A832 /* pservers-grad-15-b-manual.reference in Resources */,
5B1AE2DE20B6A669007EECCB /* painting-control-03-f-manual.svg in Resources */,
5B1AE25520B6A669007EECCB /* paths-data-15-t-manual.reference in Resources */,
5B1AE24D20B6A669007EECCB /* paths-data-13-t-manual.svg in Resources */,
@ -2053,6 +2105,8 @@
5B7E79C520CA7F1B00C50BCF /* pservers-grad-03-b-manual.reference in Resources */,
5B1AE24320B6A669007EECCB /* painting-stroke-07-t-manual.svg in Resources */,
5B1AE27B20B6A669007EECCB /* painting-fill-02-t-manual.svg in Resources */,
A74C82F1229E369A0085A832 /* pservers-grad-24-f-manual.reference in Resources */,
A74C82F0229E369A0085A832 /* pservers-grad-23-f-manual.reference in Resources */,
5B37139A20BE95D7004BB6EE /* pservers-grad-02-b-manual.svg in Resources */,
5B1AE27A20B6A669007EECCB /* coords-transformattr-01-f-manual.reference in Resources */,
5B1AE24C20B6A669007EECCB /* metadata-example-01-t-manual.reference in Resources */,
@ -2067,6 +2121,7 @@
5B1AE2BF20B6A669007EECCB /* shapes-ellipse-02-t-manual.reference in Resources */,
5B1AE24220B6A669007EECCB /* coords-trans-06-t-manual.reference in Resources */,
5B1AE2A920B6A669007EECCB /* struct-frag-04-t-manual.svg in Resources */,
A74C82E7229E35D30085A832 /* pservers-grad-12-b-manual.svg in Resources */,
5B1AE25F20B6A669007EECCB /* coords-transformattr-05-f-manual.svg in Resources */,
57CAB1341D7832E000FD8E47 /* rect.svg in Resources */,
5B1AE2D920B6A669007EECCB /* render-elems-03-t-manual.reference in Resources */,
@ -2075,6 +2130,7 @@
5B1AE24020B6A669007EECCB /* coords-trans-01-b-manual.reference in Resources */,
5B1AE24B20B6A669007EECCB /* shapes-line-02-f-manual.svg in Resources */,
5B1AE2C920B6A669007EECCB /* paths-data-05-t-manual.svg in Resources */,
A74C82EF229E369A0085A832 /* pservers-grad-12-b-manual.reference in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View File

@ -652,18 +652,6 @@ class MacawSVGTests: XCTestCase {
func testPathsData10() {
validateJSON("paths-data-10-t-manual")
}
func testPserversGrad01() {
validateJSON("pservers-grad-01-b-manual")
}
func testPserversGrad02() {
validateJSON("pservers-grad-02-b-manual")
}
func testPserversGrad07() {
validateJSON("pservers-grad-07-b-manual")
}
func testShapesGrammar01() {
validateJSON("shapes-grammar-01-f-manual")
@ -676,8 +664,48 @@ class MacawSVGTests: XCTestCase {
func testMaskingIntro01() {
validateJSON("masking-intro-01-f-manual")
}
func testPserversGrad01() {
validateJSON("pservers-grad-01-b-manual")
}
func testPserversGrad02() {
validateJSON("pservers-grad-02-b-manual")
}
func testPserversGrad03() {
validateJSON("pservers-grad-03-b-manual")
}
func testPserversGrad07() {
validateJSON("pservers-grad-07-b-manual")
}
func testPserversGrad09() {
validateJSON("pservers-grad-09-b-manual")
}
func testPserversGrad12() {
validateJSON("pservers-grad-12-b-manual")
}
func testPserversGrad13() {
validateJSON("pservers-grad-13-b-manual")
}
func testPserversGrad15() {
validateJSON("pservers-grad-15-b-manual")
}
func testPserversGrad22() {
validateJSON("pservers-grad-22-b-manual")
}
func testPserversGrad23() {
validateJSON("pservers-grad-23-f-manual")
}
func testPserversGrad24() {
validateJSON("pservers-grad-24-f-manual")
}
}

View File

@ -0,0 +1,116 @@
{
"contents" : [
{
"contents" : [
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 15,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 25",
"text" : "Testing gradientUnits attribute"
},
{
"form" : {
"h" : 50,
"type" : "Rect",
"w" : 200,
"x" : 125,
"y" : 35
},
"node" : "Shape"
},
{
"form" : {
"h" : 50,
"type" : "Rect",
"w" : 430,
"x" : 10,
"y" : 125
},
"node" : "Shape"
},
{
"form" : {
"h" : 430,
"type" : "Rect",
"w" : 50,
"x" : 0,
"y" : 0
},
"node" : "Shape",
"place" : "0, -1, 1, 0, 10, 260"
}
],
"node" : "Group"
},
{
"contents" : [
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 32,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 340",
"text" : "$Revision: 1.9 $"
}
],
"node" : "Group"
},
{
"form" : {
"h" : 358,
"type" : "Rect",
"w" : 478,
"x" : 1,
"y" : 1
},
"node" : "Shape",
"stroke" : {
"cap" : "butt",
"dashes" : [
],
"fill" : {
"type" : "Color",
"val" : 0
},
"join" : "miter",
"width" : 1
}
}
],
"layout" : {
"scalingMode" : "meet",
"svgSize" : {
"height" : "100.0%",
"width" : "100.0%"
},
"viewBox" : {
"h" : 360,
"type" : "Rect",
"w" : 480,
"x" : 0,
"y" : 0
},
"xAligningMode" : "mid",
"yAligningMode" : "mid"
},
"node" : "Canvas"
}

View File

@ -0,0 +1,107 @@
<svg version="1.1" baseProfile="basic" id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!--======================================================================-->
<!--= SVG 1.1 2nd Edition Test Case =-->
<!--======================================================================-->
<!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--= See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
template-version="1.4" reviewer="SVGWG" author="Haroon Sheikh" status="accepted"
version="$Revision: 1.9 $" testname="$RCSfile: pservers-grad-09-b.svg,v $">
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Gradients">
<p>
Test that the viewer can handle the gradientUnits attribute on linear gradients.
It tests the following values of gradientUnits: default (userSpace), objectBoundingBox,
and userSpaceOnUse.
</p>
<p>
From top-down the appearance of objects is as follows.
</p>
<p>
The first rectangle uses the default attributes on the linearGradient element.
Therefore the linear gradient should default to objectBoundingBox. It should appear
from the left edge of the rectangle (blue) to the right edge of the rectangle (lime).
The rectangle is smaller than the viewport, because a previous version of the SVG spec had the default value be 'viewport'.
The test fails if only a portion of the gradient is shown.
</p>
<p>
The next rectangle uses gradientUnits=objectBoundingBox. The linear gradient should
travel from blue (top) to lime (bottom).
</p>
<p>
The last rectangle uses gradientUnits=userSpaceOnUse. The rectangle element is given it's
own transformation and the gradient is assumed to be in this user space.
The gradient should appear as a linear gradient from lime (left) to blue (right).
</p>
</d:testDescription>
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
<p>Run the test. No interaction required.</p>
</d:operatorScript>
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
<p>The test passes if the rendering matches the reference image, apart
from any differences in font choice due to CSS2 rules. Specifically:</p>
<ul>
<li>The top rectangle is filled with a linear gradient from lime on the left to blue on the right.</li>
<li>The middle rectangle is filled with a linear gradient from blue on the top to lime on the bottom.</li>
<li>The bottom rectangle is filled with a linear gradient from lime on the left to blue on the right.</li>
</ul>
</d:passCriteria>
</d:SVGTestCase>
<title id="test-title">$RCSfile: pservers-grad-09-b.svg,v $</title>
<defs>
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<text font-size="15" x="10" y="25">Testing gradientUnits attribute</text>
<!-- ====================================================================== -->
<!-- Linear gradient with default attributes on <linear gradient> element. -->
<!-- ====================================================================== -->
<linearGradient id="Grad1">
<stop stop-color="lime" offset="0"/>
<stop stop-color="blue" offset="1"/>
</linearGradient>
<rect x="125" y="35" width="200" height="50" fill="url(#Grad1)"/>
<!--<text font-size="12" x="10" y="100">Linear gradient with default attributes (thus, same as objectBoundingBox)</text>-->
<!--text font-size="12" x="10" y="125">Gradient is from the viewport left edge (lime) to viewport right edge (blue)</text-->
<!--<text font-size="12" x="10" y="115">Gradient is from the object left edge (lime) to object right edge (blue)</text>-->
<!-- ====================================================================== -->
<!-- Linear gradient with gradientUnits=objectBoundingBox ======== -->
<!-- ====================================================================== -->
<linearGradient id="Grad2" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="blue" offset="0"/>
<stop stop-color="lime" offset="1"/>
</linearGradient>
<rect x="10" y="125" width="430" height="50" fill="url(#Grad2)"/>
<!--<text font-size="12" x="10" y="190">gradientUnits=objectBoundingBox</text>-->
<!--<text font-size="12" x="10" y="205">Gradient is from the object top edge (blue) to object bottom edge (lime)</text>-->
<!-- ====================================================================== -->
<!-- Gradient using gradientUnits="userSpaceOnUse" -->
<!-- ====================================================================== -->
<linearGradient id="Grad3" x1="0" y1="0" x2="0" y2="430" gradientUnits="userSpaceOnUse">
<stop stop-color="lime" offset="0"/>
<stop stop-color="blue" offset="1"/>
</linearGradient>
<rect transform="translate(10, 260) rotate(-90)" x="0" y="0" width="50" height="430" fill="url(#Grad3)"/>
<!--<text font-size="12" x="10" y="275">gradientUnits=userSpaceOnUse</text>-->
<!--<text font-size="12" x="10" y="290">Gradient is from the object left edge (lime) to object right edge (blue)</text>-->
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text>
</g>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
<!-- comment out this watermark once the test is approved -->
<!--<g id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -0,0 +1,212 @@
{
"contents" : [
{
"contents" : [
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 15,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 25",
"text" : "Testing gradientUnits attribute"
},
{
"form" : {
"h" : 50,
"type" : "Rect",
"w" : 460,
"x" : 10,
"y" : 35
},
"node" : "Shape"
},
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 12,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 100",
"text" : "Radial gradient with default attributes (from blue to yellow)"
},
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 12,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 115",
"text" : "Gradient is blue at the object center and lime at the object edges"
},
{
"form" : {
"h" : 50,
"type" : "Rect",
"w" : 460,
"x" : 10,
"y" : 125
},
"node" : "Shape"
},
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 12,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 190",
"text" : "gradientUnits=objectBoundingBox"
},
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 12,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 205",
"text" : "cx=.2, cy=.2, r=.5, fx=.2 fy=.2"
},
{
"form" : {
"h" : 460,
"type" : "Rect",
"w" : 50,
"x" : 0,
"y" : 0
},
"node" : "Shape",
"place" : "0, -1, 1, 0, 10, 260"
},
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 12,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 275",
"text" : "gradientUnits=userSpaceOnUse"
},
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 12,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 290",
"text" : "Gradient is yellow to blue radial gradient from center to horizontal bounds"
}
],
"node" : "Group"
},
{
"contents" : [
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 32,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 340",
"text" : "$Revision: 1.9 $"
}
],
"node" : "Group"
},
{
"form" : {
"h" : 358,
"type" : "Rect",
"w" : 478,
"x" : 1,
"y" : 1
},
"node" : "Shape",
"stroke" : {
"cap" : "butt",
"dashes" : [
],
"fill" : {
"type" : "Color",
"val" : 0
},
"join" : "miter",
"width" : 1
}
}
],
"layout" : {
"scalingMode" : "meet",
"svgSize" : {
"height" : "100.0%",
"width" : "100.0%"
},
"viewBox" : {
"h" : 360,
"type" : "Rect",
"w" : 480,
"x" : 0,
"y" : 0
},
"xAligningMode" : "mid",
"yAligningMode" : "mid"
},
"node" : "Canvas"
}

View File

@ -0,0 +1,110 @@
<svg version="1.1" baseProfile="basic" id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!--======================================================================-->
<!--= SVG 1.1 2nd Edition Test Case =-->
<!--======================================================================-->
<!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--= See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
template-version="1.4" reviewer="SVGWG" author="Haroon Sheikh" status="accepted"
version="$Revision: 1.9 $" testname="$RCSfile: pservers-grad-12-b.svg,v $">
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Gradients">
<p>
Test that the viewer can handle the gradientUnits attribute on radial gradients.
It tests the following values of gradientUnits: default (objectBoundingBox), objectBoundingBox,
and userSpaceOnUse.
</p>
<p>
From top-down the appearance of objects is as follows.
</p>
<p>
The first rectangle uses the default attributes on the radialGradient element.
Therefore the radial gradient should be relative to the object bounding box. It should appear
from the center of the viewport (blue) to the edges of the viewport (lime).
The rectangle is wider than tall so it the gradient should be elliptical, not circular.
</p>
<p>
The next rectangle uses gradientUnits=objectBoundingBox. The radial gradient should
travel from a center of 20%, 20% of the rectangle with a radius of 50%.
</p>
<p>
The last rectangle uses gradientUnits=userSpaceOnUse. The rectangle element is given it's
own transformation and the gradient is assumed to be in this user space.
The gradient should appear in the center of the rectangle as a radial gradient from yellow (center) to blue (edge).
</p>
</d:testDescription>
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
<p>Run the test. No interaction required.</p>
</d:operatorScript>
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
<p>The test passes if the rendering of the three rectangles matches those
in the reference image. Specifically:</p>
<ul>
<li>The upper rectangle is filled with an elliptical radial gradient
with blue at the center and lime at its edges.</li>
<li>The middle rectangle is also filled with an elliptical radial
gradient with blue inside and lime outside, but with the center
point of the gradient in the top-left quadrant of the rectangle.</li>
<li>The bottom rectangle is filled with a circular radial gradient
with yellow at the center and blue at its edges. Since it is circular,
most of the rectangle is filled with plain blue.</li>
</ul>
</d:passCriteria>
</d:SVGTestCase>
<title id="test-title">$RCSfile: pservers-grad-12-b.svg,v $</title>
<defs>
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<text font-size="15" x="10" y="25">Testing gradientUnits attribute</text>
<!-- ====================================================================== -->
<!-- Radial gradient with default attributes on <radial gradient> element. -->
<!-- ====================================================================== -->
<radialGradient id="Grad1">
<stop stop-color="#009" offset="0"/>
<stop stop-color="lime" offset="1"/>
</radialGradient>
<rect x="10" y="35" width="460" height="50" fill="url(#Grad1)"/>
<text font-size="12" x="10" y="100">Radial gradient with default attributes (from blue to yellow)</text>
<text font-size="12" x="10" y="115">Gradient is blue at the object center and lime at the object edges</text>
<!-- ====================================================================== -->
<!-- Radial gradient with gradientUnits=objectBoundingBox ======== -->
<!-- ====================================================================== -->
<radialGradient id="Grad2" gradientUnits="objectBoundingBox" cx=".2" cy=".2" fx=".2" fy=".2" r=".5">
<stop stop-color="#009" offset="0"/>
<stop stop-color="lime" offset="1"/>
</radialGradient>
<rect x="10" y="125" width="460" height="50" fill="url(#Grad2)"/>
<text font-size="12" x="10" y="190">gradientUnits=objectBoundingBox</text>
<text font-size="12" x="10" y="205">cx=.2, cy=.2, r=.5, fx=.2 fy=.2</text>
<!-- ====================================================================== -->
<!-- Gradient using gradientUnits="userSpaceOnUse" -->
<!-- ====================================================================== -->
<radialGradient id="Grad3" cx="25" cy="215" r="25" fx="25" fy="215" gradientUnits="userSpaceOnUse">
<stop stop-color="yellow" offset="0"/>
<stop stop-color="blue" offset="1"/>
</radialGradient>
<rect transform="translate(10, 260) rotate(-90)" x="0" y="0" width="50" height="460" fill="url(#Grad3)"/>
<text font-size="12" x="10" y="275">gradientUnits=userSpaceOnUse</text>
<text font-size="12" x="10" y="290">Gradient is yellow to blue radial gradient from center to horizontal bounds</text>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text>
</g>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
<!-- comment out this watermark once the test is approved -->
<!--<g id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>

After

Width:  |  Height:  |  Size: 6.6 KiB

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,171 @@
<svg version="1.1" baseProfile="basic" id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!--======================================================================-->
<!--= SVG 1.1 2nd Edition Test Case =-->
<!--======================================================================-->
<!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--= See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
template-version="1.4" reviewer="CL" author="BB" status="accepted"
version="$Revision: 1.5 $" testname="$RCSfile: pservers-grad-13-b.svg,v $">
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Gradients">
<p>
The purpose of this file is to test several values for focal points of radial gradients.
</p>
</d:testDescription>
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
<p>Run the test. No interaction required.</p>
</d:operatorScript>
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
<p>The test passes if the rendered image matches the reference image, except
for any differences in font choice due to CSS2.</p>
</d:passCriteria>
</d:SVGTestCase>
<title id="test-title">$RCSfile: pservers-grad-13-b.svg,v $</title>
<defs>
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<text x="240" y="30" font-size="20" text-anchor="middle">Radial gradient focal point</text>
<defs>
<g id="alpha">
<rect x="00" y="0" width="100" height="60" fill="yellow"/>
<rect x="00" y="0" width="10" height="60" fill="gold"/>
<rect x="15" y="0" width="10" height="60" fill="orange"/>
<rect x="30" y="0" width="10" height="60" fill="sienna"/>
<rect x="45" y="0" width="10" height="60" fill="gold"/>
<rect x="60" y="0" width="10" height="60" fill="sienna"/>
<rect x="75" y="0" width="10" height="60" fill="orange"/>
<rect x="90" y="0" width="10" height="60" fill="gold"/>
<rect x="00" y="0" width="100" height="60"/>
<!-- inherits a radial gradient -->
</g>
</defs>
<defs>
<radialGradient id="grad1a" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="00.00%" fy="00%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad2a" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="16.66%" fy="00%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad4a" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="50.00%" fy="00%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad6a" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="83.33%" fy="00%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad1b" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="00.00%" fy="25%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad2b" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="16.66%" fy="25%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad4b" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="50.00%" fy="25%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad6b" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="83.33%" fy="25%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad1c" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="00.00%" fy="50%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad2c" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="16.66%" fy="50%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad4c" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="50.00%" fy="50%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad6c" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="83.33%" fy="50%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad1d" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="00.00%" fy="75%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad2d" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="16.66%" fy="75%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad4d" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="50.00%" fy="75%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
<radialGradient id="grad6d" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="83.33%" fy="75%">
<stop offset="0" stop-opacity="0"/>
<stop offset=".5" stop-color="darkblue"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
</defs>
<g id="group1" stroke="black" stroke-width="0.5">
<use xlink:href="#alpha" x="017.5" y="045" fill="url(#grad1a)"/>
<use xlink:href="#alpha" x="130" y="045" fill="url(#grad2a)"/>
<use xlink:href="#alpha" x="242.5" y="045" fill="url(#grad4a)"/>
<use xlink:href="#alpha" x="355" y="045" fill="url(#grad6a)"/>
<use xlink:href="#alpha" x="017.5" y="110" fill="url(#grad1b)"/>
<use xlink:href="#alpha" x="130" y="110" fill="url(#grad2b)"/>
<use xlink:href="#alpha" x="242.5" y="110" fill="url(#grad4b)"/>
<use xlink:href="#alpha" x="355" y="110" fill="url(#grad6b)"/>
<use xlink:href="#alpha" x="017.5" y="175" fill="url(#grad1c)"/>
<use xlink:href="#alpha" x="130" y="175" fill="url(#grad2c)"/>
<use xlink:href="#alpha" x="242.5" y="175" fill="url(#grad4c)"/>
<use xlink:href="#alpha" x="355" y="175" fill="url(#grad6c)"/>
<use xlink:href="#alpha" x="017.5" y="240" fill="url(#grad1d)"/>
<use xlink:href="#alpha" x="130" y="240" fill="url(#grad2d)"/>
<use xlink:href="#alpha" x="242.5" y="240" fill="url(#grad4d)"/>
<use xlink:href="#alpha" x="355" y="240" fill="url(#grad6d)"/>
</g>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
</g>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
<!-- comment out this watermark once the test is approved -->
<!--<g id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@ -0,0 +1,89 @@
{
"contents" : [
{
"contents" : [
{
"form" : {
"h" : 80,
"type" : "Rect",
"w" : 440,
"x" : 20,
"y" : 20
},
"node" : "Shape"
},
{
"form" : {
"h" : 80,
"type" : "Rect",
"w" : 440,
"x" : 20,
"y" : 150
},
"node" : "Shape"
}
],
"node" : "Group"
},
{
"contents" : [
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 32,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 340",
"text" : "$Revision: 1.6 $"
}
],
"node" : "Group"
},
{
"form" : {
"h" : 358,
"type" : "Rect",
"w" : 478,
"x" : 1,
"y" : 1
},
"node" : "Shape",
"stroke" : {
"cap" : "butt",
"dashes" : [
],
"fill" : {
"type" : "Color",
"val" : 0
},
"join" : "miter",
"width" : 1
}
}
],
"layout" : {
"scalingMode" : "meet",
"svgSize" : {
"height" : "100.0%",
"width" : "100.0%"
},
"viewBox" : {
"h" : 360,
"type" : "Rect",
"w" : 480,
"x" : 0,
"y" : 0
},
"xAligningMode" : "mid",
"yAligningMode" : "mid"
},
"node" : "Canvas"
}

View File

@ -0,0 +1,70 @@
<svg version="1.1" baseProfile="tiny" id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!--======================================================================-->
<!--= SVG 1.1 2nd Edition Test Case =-->
<!--======================================================================-->
<!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--= See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
template-version="1.4" reviewer="CL" author="CN" status="accepted"
version="$Revision: 1.6 $" testname="$RCSfile: pservers-grad-15-b.svg,v $">
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Gradients">
<p>
Test linear and radial gradient defaults. Includes
testing defaults for linear grad x1,y1,y2 = 0%, x2 = 100%.
and testing defaults for radial grad cx,cy,r = 50%, fx,fy = cx,cy.
</p>
</d:testDescription>
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
<p>
Run the test. No interaction required.
</p>
</d:operatorScript>
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
<p>
The top rectangle must be blue at the lefthand side and fuchsia at the right
hand side, fading smoothly accross. The lower rectangle must be fuchsia at
the edges with a black centre to the radial gradient at the centre of the
rectangle, and the gradient occupying the whole rectangle.
</p>
</d:passCriteria>
</d:SVGTestCase>
<title id="test-title">$RCSfile: pservers-grad-15-b.svg,v $</title>
<defs>
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<!-- Test defaults for linear grad x1,y1,y2 = 0%, x2 = 100%. -->
<linearGradient id="defs1" gradientUnits="objectBoundingBox">
<stop stop-color="blue" offset="0"/>
<stop stop-color="fuchsia" offset="1"/>
</linearGradient>
<!-- Test defaults for radial grad cx,cy,r = 50%, fx,fy = cx,cy. -->
<radialGradient id="defs2" gradientUnits="objectBoundingBox">
<stop stop-color="black" offset="0"/>
<stop stop-color="fuchsia" offset="1"/>
</radialGradient>
<rect x="20" y="20" width="440" height="80" fill="url(#defs1)"/>
<rect x="20" y="150" width="440" height="80" fill="url(#defs2)"/>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
</g>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
<!-- comment out this watermark once the test is approved -->
<!--<g id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,140 @@
{
"contents" : [
{
"contents" : [
{
"contents" : [
{
"contents" : [
{
"form" : {
"h" : 50,
"type" : "Rect",
"w" : 400,
"x" : 0,
"y" : 0
},
"node" : "Shape"
}
],
"node" : "Group",
"place" : ".5, 0, 0, 1, 0, 0"
}
],
"node" : "Group",
"place" : "1, 0, 0, 1, 20, 50"
},
{
"contents" : [
{
"form" : {
"h" : 50,
"type" : "Rect",
"w" : 200,
"x" : 0,
"y" : 0
},
"node" : "Shape"
}
],
"node" : "Group",
"place" : "1, 0, 0, 1, 20, 120"
},
{
"contents" : [
{
"form" : {
"h" : 50,
"type" : "Rect",
"w" : 400,
"x" : 0,
"y" : 0
},
"node" : "Shape",
"place" : ".5, 0, 0, 1, 0, 0"
}
],
"node" : "Group",
"place" : "1, 0, 0, 1, 250, 80"
},
{
"contents" : [
{
"form" : {
"h" : 50,
"type" : "Rect",
"w" : 200,
"x" : 0,
"y" : 0
},
"node" : "Shape"
}
],
"node" : "Group",
"place" : "1, 0, 0, 1, 250, 150"
}
],
"node" : "Group"
},
{
"contents" : [
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 32,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 340",
"text" : "$Revision: 1.4 $"
}
],
"node" : "Group"
},
{
"form" : {
"h" : 358,
"type" : "Rect",
"w" : 478,
"x" : 1,
"y" : 1
},
"node" : "Shape",
"stroke" : {
"cap" : "butt",
"dashes" : [
],
"fill" : {
"type" : "Color",
"val" : 0
},
"join" : "miter",
"width" : 1
}
}
],
"layout" : {
"scalingMode" : "meet",
"svgSize" : {
"height" : "100.0%",
"width" : "100.0%"
},
"viewBox" : {
"h" : 360,
"type" : "Rect",
"w" : 480,
"x" : 0,
"y" : 0
},
"xAligningMode" : "mid",
"yAligningMode" : "mid"
},
"node" : "Canvas"
}

View File

@ -0,0 +1,97 @@
<svg id="svg-root" width="100%" height="100%"
viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<!--======================================================================-->
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--= See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
template-version="1.4" reviewer="ED" author="AG" status="accepted"
version="$Revision: 1.4 $" testname="$RCSfile: pservers-grad-22-b.svg,v $">
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/master/pservers.html#Gradients">
<p>
Tests that transforms affect the rendering of a gradient.
</p>
</d:testDescription>
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
<p>
Run the test. No interaction required.
</p>
</d:operatorScript>
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
<p>
The test passes if each of the two gradient-filled rectangles
towards the top of the test slide is identical to the one below it.
</p>
</d:passCriteria>
</d:SVGTestCase>
<title id="test-title">$RCSfile: pservers-grad-22-b.svg,v $</title>
<defs>
<font-face
font-family="SVGFreeSansASCII"
unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<defs>
<linearGradient id="g1" x1="0" y1="0" x2="400" y2="50" gradientUnits="userSpaceOnUse" >
<stop offset="0" stop-color="blue"/>
<stop offset="0.5" stop-color="yellow"/>
<stop offset="1.0" stop-color="blue"/>
</linearGradient>
<linearGradient id="g2" x1="0" y1="0" x2="200" y2="12.5" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="blue"/>
<stop offset="0.5" stop-color="yellow"/>
<stop offset="1.0" stop-color="blue"/>
</linearGradient>
<linearGradient id="g3" x1="0" y1="0" x2="400" y2="50" gradientUnits="userSpaceOnUse" gradientTransform="rotate(-37) scale(0.89 1)">
<stop offset="0" stop-color="blue"/>
<stop offset="0.5" stop-color="yellow"/>
<stop offset="1.0" stop-color="blue"/>
</linearGradient>
<linearGradient id="g4" x1="0" y1="0" x2="200" y2="12.5" gradientUnits="userSpaceOnUse" gradientTransform="rotate(-20)">
<stop offset="0" stop-color="blue"/>
<stop offset="0.5" stop-color="yellow"/>
<stop offset="1.0" stop-color="blue"/>
</linearGradient>
</defs>
<g transform="translate(20,50)">
<g transform="scale(0.5,1)">
<rect width="400" height="50" fill="url(#g1)" />
</g>
</g>
<g transform="translate(20,120)">
<rect width="200" height="50" fill="url(#g2)" />
</g>
<g transform="translate(250,80)">
<rect width="400" height="50" fill="url(#g3)" transform="scale(0.5,1)"/>
</g>
<g transform="translate(250,150)">
<rect width="200" height="50" fill="url(#g4)" />
</g>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text id="revision" x="10" y="340" stroke="none"
fill="black">$Revision: 1.4 $</text>
</g>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
<!-- comment out this watermark once the test is approved
<g id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -0,0 +1,161 @@
{
"contents" : [
{
"contents" : [
{
"contents" : [
{
"fill" : {
"type" : "Color",
"val" : 0
},
"form" : {
"h" : 100,
"type" : "Rect",
"w" : 100,
"x" : 30,
"y" : 30
},
"node" : "Shape"
},
{
"fill" : {
"type" : "Color",
"val" : 0
},
"form" : {
"h" : 100,
"type" : "Rect",
"w" : 100,
"x" : 150,
"y" : 30
},
"node" : "Shape"
}
],
"node" : "Group"
}
],
"node" : "Group"
},
{
"contents" : [
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 32,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 340",
"text" : "$Revision: 1.3 $"
}
],
"node" : "Group"
},
{
"form" : {
"h" : 358,
"type" : "Rect",
"w" : 478,
"x" : 1,
"y" : 1
},
"node" : "Shape",
"stroke" : {
"cap" : "butt",
"dashes" : [
],
"fill" : {
"type" : "Color",
"val" : 0
},
"join" : "miter",
"width" : 1
}
},
{
"contents" : [
{
"fill" : {
"type" : "Color",
"val" : 16711680
},
"form" : {
"h" : 20,
"type" : "Rect",
"w" : 478,
"x" : 1,
"y" : 1
},
"node" : "Shape",
"stroke" : {
"cap" : "butt",
"dashes" : [
],
"fill" : {
"type" : "Color",
"val" : 0
},
"join" : "miter",
"width" : 1
}
},
{
"align" : "mid",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 16777215
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 20,
"weight" : "bold"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 240, 18",
"stroke" : {
"cap" : "butt",
"dashes" : [
],
"fill" : {
"type" : "Color",
"val" : 0
},
"join" : "miter",
"width" : 0.5
},
"text" : "DRAFT"
}
],
"node" : "Group"
}
],
"layout" : {
"scalingMode" : "meet",
"svgSize" : {
"height" : "100.0%",
"width" : "100.0%"
},
"viewBox" : {
"h" : 360,
"type" : "Rect",
"w" : 480,
"x" : 0,
"y" : 0
},
"xAligningMode" : "mid",
"yAligningMode" : "mid"
},
"node" : "Canvas"
}

View File

@ -0,0 +1,80 @@
<svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!--======================================================================-->
<!--= SVG 1.1 2nd Edition Test Case =-->
<!--======================================================================-->
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--= See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.4" reviewer="[reviewer]" author="Microsoft" status="created" version="$Revision: 1.3 $" testname="$RCSfile: pservers-grad-23-f.svg,v $">
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/publish/pservers.html#Gradients">
<p>
<!--[[
Properties do not inherit from elements referencing 'linearGradient' or 'radialGradient' elements.
]]-->
</p>
<p>
<!--[[
Specify a 'stop-color' attribute equal to 'red' on a 'g' element ancestor of a 'rect' element. Specify a 'linearGradient' with a single
'stop' that has a 'stop-color' of 'inherit'. Reference the 'linearGradient' from the 'rect' element and verify that the 'rect' is not red.
Repeat the same process with a sibling 'rect' element referencing a 'radialGradient' element.
]]-->
</p>
</d:testDescription>
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
<p>
Run the test. No interaction required
</p>
<p>
<!--[[
]]-->
</p>
</d:operatorScript>
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
<p>
<!--[[
Test passes if there is no red visible on the page.
]]-->
</p>
</d:passCriteria>
</d:SVGTestCase>
<title id="test-title">$RCSfile: pservers-grad-23-f.svg,v $</title>
<defs>
<font-face
font-family="SVGFreeSansASCII"
unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g id="test-body-content" font-size="18">
<defs>
<linearGradient id="testLinear" stop-color="inherit">
<stop offset="100%" stop-color="inherit" />
</linearGradient>
<radialGradient id="testRadial" stop-color="inherit">
<stop offset="100%" stop-color="inherit" />
</radialGradient>
</defs>
<g stop-color="red">
<rect x="30" y="30" width="100" height="100" fill="url(#testLinear)" stop-color="inherit" />
<rect x="150" y="30" width="100" height="100" fill="url(#testRadial)" stop-color="inherit" />
</g>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text id="revision" x="10" y="340" stroke="none"
fill="black">$Revision: 1.3 $</text>
</g>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
<!-- comment out this watermark once the test is approved -->
<g id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,144 @@
{
"contents" : [
{
"contents" : [
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 18,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 50",
"text" : "There should be no red."
}
],
"node" : "Group"
},
{
"contents" : [
{
"align" : "min",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 0
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 32,
"weight" : "normal"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 10, 340",
"text" : "$Revision: 1.3 $"
}
],
"node" : "Group"
},
{
"form" : {
"h" : 358,
"type" : "Rect",
"w" : 478,
"x" : 1,
"y" : 1
},
"node" : "Shape",
"stroke" : {
"cap" : "butt",
"dashes" : [
],
"fill" : {
"type" : "Color",
"val" : 0
},
"join" : "miter",
"width" : 1
}
},
{
"contents" : [
{
"fill" : {
"type" : "Color",
"val" : 16711680
},
"form" : {
"h" : 20,
"type" : "Rect",
"w" : 478,
"x" : 1,
"y" : 1
},
"node" : "Shape",
"stroke" : {
"cap" : "butt",
"dashes" : [
],
"fill" : {
"type" : "Color",
"val" : 0
},
"join" : "miter",
"width" : 1
}
},
{
"align" : "mid",
"baseline" : "bottom",
"fill" : {
"type" : "Color",
"val" : 16777215
},
"font" : {
"name" : "SVGFreeSansASCII,sans-serif",
"size" : 20,
"weight" : "bold"
},
"node" : "Text",
"place" : "1, 0, 0, 1, 240, 18",
"stroke" : {
"cap" : "butt",
"dashes" : [
],
"fill" : {
"type" : "Color",
"val" : 0
},
"join" : "miter",
"width" : 0.5
},
"text" : "DRAFT"
}
],
"node" : "Group"
}
],
"layout" : {
"scalingMode" : "meet",
"svgSize" : {
"height" : "100.0%",
"width" : "100.0%"
},
"viewBox" : {
"h" : 360,
"type" : "Rect",
"w" : 480,
"x" : 0,
"y" : 0
},
"xAligningMode" : "mid",
"yAligningMode" : "mid"
},
"node" : "Canvas"
}

View File

@ -0,0 +1,68 @@
<svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!--======================================================================-->
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--= See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.4" reviewer="CM" author="Microsoft" status="reviewed" version="$Revision: 1.3 $" testname="$RCSfile: pservers-grad-24-f.svg,v $">
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/publish/pservers.html#Gradients">
<p>
Test that the 'linearGradient' and 'radialGradient' elements are neither rendered directly nor via the 'use' element.
</p>
<p>
The test defines 'linearGradient' and 'radialGradient' elements with a red 'stop' and references them from a 'use' element. 'linearGradient'
and 'radialGradient' elements with a red 'stop' are also specified outside of a 'defs' tag as if they were regular graphical elements.
</p>
</d:testDescription>
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
<p>Run the test. No interaction required.</p>
</d:operatorScript>
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
<p>
Test passes if there is no red visible on the page.
</p>
</d:passCriteria>
</d:SVGTestCase>
<title id="test-title">$RCSfile: pservers-grad-24-f.svg,v $</title>
<defs>
<font-face
font-family="SVGFreeSansASCII"
unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<defs>
<linearGradient id="testLinear">
<stop offset="100%" stop-color="red" />
</linearGradient>
<radialGradient id="testRadial">
<stop offset="100%" stop-color="red" />
</radialGradient>
</defs>
<text x="10" y="50">There should be no red.</text>
<use x="0" y="0" xlink:href="url(#testLinear)" />
<use x="0" y="150" xlink:href="url(#testRadial)" />
<linearGradient x1="0" x2="100" y1="150" y2="250">
<stop offset="100%" stop-color="red" />
</linearGradient>
<radialGradient cx="200" cy="300" r="50" fx="200" fy="300">
<stop offset="100%" stop-color="red" />
</radialGradient>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text id="revision" x="10" y="340" stroke="none"
fill="black">$Revision: 1.3 $</text>
</g>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
<!-- comment out this watermark once the test is approved -->
<g id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB