W3C home > Mailing lists > Public > www-svg@w3.org > May 2010

textArea and bounding box

From: Cyril Concolato <cyril.concolato@enst.fr>
Date: Wed, 05 May 2010 18:36:13 +0200
Message-ID: <4BE19E7D.2050103@enst.fr>
To: www-svg <www-svg@w3.org>
Hi all,

I'm working on adaptation of documents based on the screen size using SVG and Javascript, in a manner similar to what Cameron did in [1]. Cameron used text elements and getComputedTextLength in SVG 1.1. I'm using textArea elements and the getBBox function in SVG Tiny 1.2. I think a clarification in the 1.2 Tiny Spec is needed with regards to getBBox and textArea.
- It should say that for textArea the bounding box is computed after clipping, if the text is bigger than what can be displayed in the area. This is what Opera and GPAC implement.
- The sentence "An exception to this is the 'textArea', which uses that element's geometry for the bounding box calculation." should also be clarified.
- Adding an example in the SVGLocatable text would be good.



[1] http://portal.acm.org/citation.cfm?id=1410172
Cyril Concolato
Maître de Conférences/Associate Professor
Groupe Mutimedia/Multimedia Group
Telecom ParisTech
46 rue Barrault
75 013 Paris, France
Received on Wednesday, 5 May 2010 16:36:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:21 UTC