Questions tagged [vml]

VML, the Vector Markup Language, is a vector image format that is represented by XML. It has been deprecated since SVG was accepted by the W3C, and should be used only for compatibility.

VML, the Vector Markup Language, is a vector image format that is represented by XML. It is a competing standard to SVG, as VML was never formally accepted by the W3C. VML has not been updated significantly since 1998, when it was submitted, and is considered deprecated in favor of SVG.

VML is used for websites wishing to display vector graphics for old releases of Internet Explorer, since IE has generally poor SVG support. IE9 rectifies this partially, but still only adequate support. Very few other browsers have support for VML.

VML has also been used by Microsoft Office since 2000, and continues to be used as the suite's main vector image format. OpenOffice holds deprecated support for VML for this reason.

273 questions
181
votes
12 answers

Circle drawing with SVG's arc path

Using SVG path, we can draw 99.99% of a circle and it shows up, but when it is 99.99999999% of a circle, then the circle won't show up. How can it be fixed? The following SVG path can draw 99.99% of a circle: var paper = Raphael(0, 0, 300,…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
60
votes
8 answers

How do you detect support for VML or SVG in a browser

I'm writing a bit of javascript and need to choose between SVG or VML (or both, or something else, it's a weird world). Whilst I know that for now that only IE supports VML, I'd much rather detect functionality than platform. SVG appears to have a…
Jim T
  • 12,336
  • 5
  • 29
  • 43
42
votes
8 answers

Emulate IE7 for IE8 but not for IE9 using "X-UA-Compatible"

I have a website depending on vector drawing, for Internet Explorer I'm using VML and for other browsers I'm using SVG. IE8 however, doesn't have support for neither without falling back to IE7-mode which has VML. Therefore I'm including
Urjan
  • 421
  • 1
  • 4
  • 3
28
votes
9 answers

Displaying vector graphics in a browser

I need to display some interactive (attaching with DOM listeners etc. and event handling) vector graphics in web site I am working on. There is a W3C recommendation for SVG though this format is still not recognized by Internet Explorer support of…
martinsb
  • 945
  • 1
  • 10
  • 15
23
votes
6 answers

How to calculate center of an ellipse by two points and radius sizes

While working on SVG implementation for Internet Explorer to be based on its own VML format I came to a problem of translation of an SVG elliptical arc to an VML elliptical arc. In VML an arc is given by: two angles for two points on ellipse and…
Sergey Ilinsky
  • 31,255
  • 9
  • 54
  • 56
20
votes
5 answers

Scaling SVG (Raphael.js) like an SWF

I started using Raphael.js a few days ago and I'm really enjoying it. The only thing I haven't been able to figure out is how to get the "paper" or svg/vml tag to fill the browser window like an swf. See this example. Note the way the above example…
Zevan
  • 10,097
  • 3
  • 31
  • 48
11
votes
4 answers

Saving Raphaël image as PNG on Internet Explorer

I have some nice graphics done using Raphaël (a JavaScript library), and I want to add a feature to save it as a PNG file. This is simple on every browser except Internet Explorer, because on non-Internet Explorer browsers I get SVG as an output…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
8
votes
2 answers

Raphaeljs renders all text as Italic in IE

I'm using RaphaelJS for visually representing some data. The underlying technology is SVG so obviously things don't always work that well in IE, but the library does a relatively ok job of still rendering something useful, although it often tends…
Jaco Pretorius
  • 24,380
  • 11
  • 62
  • 94
8
votes
1 answer

Get BBox of a GROUP of Raphael objects?

What's the best way to get the bounding box of several Raphael objects as a whole? Can I put them all in a set and call mySet.getBBox()? Or do I need to loop through them all, get bbox for each one and calculate the overall height and width? (Also,…
peteorpeter
  • 4,037
  • 2
  • 29
  • 47
7
votes
1 answer

SVG/VML browser compatibility table

I'm interested in finding a browser compatibility table that lists the parts of SVG/VML supported by each version of Opera, Safari, Chrome, Firefox and Internet Explorer (also Konqueror would be nice) in the vein of Quirksmode. I have found the…
user700503
  • 171
  • 1
  • 5
7
votes
5 answers

My website keeps crashing IE, can't debug

I have a website that suddenly started to crash internet explorer. The website loads and starts executing javascript but somewhere in there the machinery explodes. I don't even get a script error, it just crashes. I've tried to manually step through…
Ninja rhino
  • 116
  • 1
  • 5
7
votes
1 answer

Are there any tools to convert legacy VML to SVG?

Just wondering if anybody has come across a tool or anything to make the process easier of converting VML to SVG or some other modern format (Silverlight, flash). I'm dealing with some legacy VML browser renderings and I'd like to make it cross…
Ryu
  • 8,641
  • 10
  • 65
  • 98
7
votes
3 answers

IE9, IE8, SVG, VML and doctypes

I'm working on drawing shapes in my ASP.NET web app. In IE9 and other browsers, I'm doing it with SVG, and it's working great. In IE8 and below, I'm using VML. I'm finding that IE8 does not display the VML at all when it's in IE8 Standards mode…
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145
6
votes
3 answers

Remove Text Padding/Margin inside VML Shape

I'm trying to figure out how to get this text (!) to show up. Even though it's smaller than the circle it's in, it still gets cut off about 1/3 of the way in to the circle. I would like to use this for Outlook specifically.
Randy Hall
  • 7,716
  • 16
  • 73
  • 151
6
votes
0 answers

Raphaeljs IE8 setViewBox not working

I use RaphaelJS for generate SVG. My SVG is 1024px width and height. I use setViewBox because the div containing it is more small than 510px width and height. With IE8 RaphaelJS produces VML but setViewBox is not working, the size of VML produced is…
S8N
  • 147
  • 7
1
2 3
18 19