我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。
The SVGTests interface is used to reflect conditional processing attributes and is mixed into other interfaces for elements that support these attributes.
Properties
SVGTests.requiredFeaturesRead only- An
SVGStringListcorresponding to therequiredFeaturesattribute of the given element. SVGTests.requiredExtensionsRead only- An
SVGStringListcorresponding to therequiredExtensionsattribute of the given element. SVGTests.systemLanguageRead only- An
SVGStringListcorresponding to thesystemLanguageattribute of the given element.
Methods
SVGTests.hasExtension()Read only- Returns
trueif the browser supports the given extension, specified by a URI.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Scalable Vector Graphics (SVG) 2 The definition of 'SVGTests' in that specification. |
Candidate Recommendation | Removed requiredFeatures property and hasExtension() method. |
| Scalable Vector Graphics (SVG) 1.1 (Second Edition) The definition of 'SVGTests' in that specification. |
Recommendation | Initial definition |
Browser compatibility
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|---|
| Basic support | (Yes) | (Yes) | 12 (12) | 9.0 | ? | ? |
hasExension() |
47 (removed)[1] | ? | ? | ? | ? | ? |
requiredFeatures |
59 (removed)[1] | ? | ? | ? | ? | ? |
| Feature | Android Webview | Chrome for Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|---|
| Basic support | (Yes)[1] | (Yes)[1] | (Yes) | 12.0 (12) | ? | ? | ? |
hasExension() |
47 (removed)[1] | 47 (removed)[1] | ? | ? | ? | ? | ? |
requiredFeatures |
59 (removed)[1] | 59 (removed)[1] | ? | ? | ? | ? | ? |
[1] Removed because it is not part of the SVG2 spec.