[OpenLayers-Commits] r2372 - sandbox/vector-2.4/examples
commits at openlayers.org
commits at openlayers.org
Mon Mar 5 22:06:40 EST 2007
Author: crschmidt
Date: 2007-03-05 22:06:37 -0500 (Mon, 05 Mar 2007)
New Revision: 2372
Added:
sandbox/vector-2.4/examples/supports-vector.html
Log:
Add testing page from main vector branch.
Copied: sandbox/vector-2.4/examples/supports-vector.html (from rev 2371, sandbox/vector/examples/supports-vector.html)
===================================================================
--- sandbox/vector-2.4/examples/supports-vector.html (rev 0)
+++ sandbox/vector-2.4/examples/supports-vector.html 2007-03-06 03:06:37 UTC (rev 2372)
@@ -0,0 +1,22 @@
+<html>
+<head>
+<script>
+function set() {
+ if (document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#SVG", "1.1") ) {
+ document.getElementById("svg11").style.background="green";
+ }
+ if (document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#SVGDOM", "1.1") ) {
+ document.getElementById("svgdom").style.background="green";
+ }
+}
+</script>
+</head>
+<body onload="set()">
+
+Vector Support:
+<br />
+Supports SVG 1.1: <div id="svg11" style="width:100px;height:100px;background-color:red"></div>
+<br />
+Supports SVG DOM: <div id="svgdom" style="width:100px;height:100px;background-color:red"></div>
+</body>
+</html>
More information about the Commits
mailing list