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

Re: Determining the Viewport for an SVG Element - Responsive Scaling within viewports

From: Jelle Mulder <pjmulder@xs4all.nl>
Date: Tue, 20 May 2014 01:55:02 +0800
To: ed@opera.com
Cc: "www-svg@w3.org" <www-svg@w3.org>, Thomas.O.Smailus@boeing.com, paul.lebeau@gmail.com
Message-ID: <op.xf4b10s4pkr7a5@beauty.domain>
Erik,

Would it be feasible to have a  noScale attribute added to elements? So  
regardless of scaling of viewport the font, stroke, pattern, <G>, etc..  
stays the same. Or maybe even a ScaleMax and ScaleMin attribute to make  
the values a bit flexible, but keep them within constraints. That would  
give a lot of power for responsive design in SVG and avoid having to cook  
up all those nifty scripts or a new CSS method. It would be nice to have  
something like that in the SVG code rather than having to rely on some  
external source that makes it rather opaque what the hell is going on. I  
certainly would consider such functionality to be part of the graphical  
content rather than just a styling element. Fonts certainly could do with  
something like this to prevent having to fall back on hinting at 3 px and  
stuff like that, but there are plenty of other applications for a thing  
like this. Interacting with objects outside the viewport and rendering  
would be another problem related to this I guess, but I would like to keep  
this discussion up for more than just the heck of it.

Jelle

On Tue, 20 May 2014 01:24:28 +0800, Smailus, Thomas O  
<Thomas.O.Smailus@boeing.com> wrote:

>
> I’d hope we can address patterns in the effort to get non-scaling (and  
> maybe better more broadly defined as non-transforming) line widths,  
> >patterns and line styles/dash-patterns.
>
>
> Thomas
>
> --
>
> Thomas Smailus, Ph.D.  P.E.
>
> Boeing Information Technology
>
> thomas.o.smailus@boeing.com
>
>
> From: Paul LeBeau [mailto:paul.lebeau@gmail.com]Sent: Monday, May 19,  
> 2014 2:26
> To: Erik Dahlström
> Cc: www-svg; Gavin Kistner
> Subject: Re: Determining the Viewport for an SVG Element
>
>
> Would this apply to things like <pattern> also?  I have seen a few  
> people ask on Stack Overflow about how to prevent patterns being  
> affected by the >viewport transform because they were trying to use SVGs  
> in their responsive web designs.
>
>
> Paul
>
>
>
> On 19 May 2014 20:29, Erik Dahlström <ed@opera.com> wrote:
>>
>> On Sat, 17 May 2014 00:28:12 +0200, Gavin Kistner <phrogz@me.com> wrote:
>>
>> ...
>>
>>
>>>
>>> (Independent of all this, I’m also interested: have there been any  
>>> discussions of scale/zoom independent font sizes, similar in desire to  
>>> vector->>>effect:non-scaling-stroke?)
>>>
>>>
>>> [1]  
>>> http://stackoverflow.com/questions/23645150/maintain-same-font-size-text-regardless-of-viewbox-zooming
>>> [2]  
>>> http://stackoverflow.com/questions/23664967/determining-the-svg-viewport-in-global-root-coordinates
>>> [3] https://bugzilla.mozilla.org/show_bug.cgi?id=530985
>>
>>
>> Cancelling (or partially cancelling) the effect of a transform on a  
>> given element was discussed at the last F2F meeting, see the proposal  
>> [4]. It's >>been accepted for SVG2 [5], the action for adding it to the  
>> spec hasn't been completed yet.
>>
>> [4]  
>> http://www.w3.org/Graphics/SVG/WG/wiki/Proposals/vector_effects_extension
>> [5] http://www.w3.org/2014/04/09-svg-minutes.html#item06
>>
>> --Erik Dahlstrom, Web Technology Developer, Opera Software
>> Co-Chair, W3C SVG Working Group
>
Received on Monday, 19 May 2014 17:54:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:53 UTC