- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 8 Oct 2013 20:45:07 -0700
- To: David Dailey <ddailey@zoominternet.net>
- Cc: www-svg <www-svg@w3.org>
On Tue, Oct 8, 2013 at 7:19 PM, David Dailey <ddailey@zoominternet.net> wrote: > a. When one has reset part of a document to have a different viewport > than another, or when one simply has changed the zoom level, it might be > quite nice to be able to do something like <elementWithCoordinateSystem > mousecoordinates=”local”> so that one doesn’t have to write quite so much > script to figure out where the mouse is in the new local space. The CSSOM View spec is finally defining a set of coordinate-transforming functions for converting between points relative to various boxes, getting rects/quads from elements relative to some other box, etc. These'll apply to SVG as well, obviously, and should help solve this problem in a generic fashion. > b. It might be nice to be able to specify units on a viewbox as percent > of the screen instead of as absolute units. One can do it through script, > but then with script who needs SVG? Just allow units in the viewBox definition, and then use the vw/vh units, which are percentages of the viewport. ~TJ
Received on Wednesday, 9 October 2013 03:45:54 UTC