W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2008

ISSUE-2120 (fragid inconsistency): Minor inconsistency in Linking section [Last Call: SVG 1.2 Tiny ]

From: SVG Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Mon, 13 Oct 2008 16:09:32 +0000 (GMT)
To: public-svg-wg@w3.org
Message-Id: <20081013160932.1471E6B62C@tibor.w3.org>


ISSUE-2120 (fragid inconsistency): Minor inconsistency in Linking section [Last Call: SVG 1.2 Tiny ]

http://www.w3.org/Graphics/SVG/WG/track/issues/2120

Raised by: Doug Schepers
On product: Last Call: SVG 1.2 Tiny 

Helder Magalhães
<http://lists.w3.org/Archives/Public/www-svg/2008Oct/0107.html>:
[[
7. Minor inconsistency in Linking section [LINKING]

In subsection "14.3.2 SVG fragment identifiers", there's reference to
a situation already discarded by the previous premise. It is suggested
to remove the "is not found, or ".

Current wording:

If the SVG fragment identifier addresses any element (e.g., #rectId
or someDrawing.svg#rectId) and the element indicated by the fragment
identifier is found, then the current translation of the SVG
document's coordinate system shall be adjusted such that the
centerpoint of the decorated bounding box of the identified element is
positioned in the center of the viewport. If the element's decorated
bounding box is too large to fit within the current viewport, and the
'zoomAndPan' attribute of the rootmost 'svg' element is not set to
'disable', then the viewport shall not only reposition but also have
the current scale expanded to accommodate the entire width and height
of the element's decorated bounding box. By contrast, if the bounding
box of the target element is smaller than the viewport, the viewport
shall remain at the preestablished values (i.e., it will not
automatically zoom in on the element). If the specified element is not
found, or does not have a decorated bounding box, then the current
translate and current scale are not changed from the established
values. Regardless of changes to the current translation or scale of
the viewport, the current rotation of the current coordinate system
shall be preserved (that is, the centerpoint of the target decorated
bounding box shall be the centerpoint of the rotation, with a constant
rotation angle), and the existing aspect ratio shall not be altered.
In the case of traversal from an external link, the viewport shall be
established by the values specified in the rootmost 'svg' element, and
in the case of an internal link, the initial viewport shall
additionally be adjusted by any previous zooming operations (e.g.
previously navigated links, user zooming, script alterations of the
current coordinate system, etc.) such that any translation or scaling
that happens as a result of the traversal shall use the existing
coordinate system as a starting state. If the element is not found, or
does not have a decorated bounding box, then the viewport does not
move or zoom. In all cases of traversal, the view shall be established
instantly, with no animated panning or other enhanced transition
toward the target element. The viewbox shall not be continually
animated to match the animations of a target element's decorated
bounding box. Future specifications may allow more customizable
behavior for traversal through another mechanism.

Proposed change:

If the SVG fragment identifier addresses any element (e.g., #rectId
or someDrawing.svg#rectId) and the element indicated by the fragment
identifier is found, then the current translation of the SVG
document's coordinate system shall be adjusted such that the
centerpoint of the decorated bounding box of the identified element is
positioned in the center of the viewport. If the element's decorated
bounding box is too large to fit within the current viewport, and the
'zoomAndPan' attribute of the rootmost 'svg' element is not set to
'disable', then the viewport shall not only reposition but also have
the current scale expanded to accommodate the entire width and height
of the element's decorated bounding box. By contrast, if the bounding
box of the target element is smaller than the viewport, the viewport
shall remain at the preestablished values (i.e., it will not
automatically zoom in on the element). If the specified element is not
found, or does not have a decorated bounding box, then the current
translate and current scale are not changed from the established
values. Regardless of changes to the current translation or scale of
the viewport, the current rotation of the current coordinate system
shall be preserved (that is, the centerpoint of the target decorated
bounding box shall be the centerpoint of the rotation, with a constant
rotation angle), and the existing aspect ratio shall not be altered.
In the case of traversal from an external link, the viewport shall be
established by the values specified in the rootmost 'svg' element, and
in the case of an internal link, the initial viewport shall
additionally be adjusted by any previous zooming operations (e.g.
previously navigated links, user zooming, script alterations of the
current coordinate system, etc.) such that any translation or scaling
that happens as a result of the traversal shall use the existing
coordinate system as a starting state. If the element does not have a
decorated bounding box, then the viewport does not move or zoom. In
all cases of traversal, the view shall be established instantly, with
no animated panning or other enhanced transition toward the target
element. The viewbox shall not be continually animated to match the
animations of a target element's decorated bounding box. Future
specifications may allow more customizable behavior for traversal
through another mechanism.

I'd further suggest to try breaking this lengthy list item (possibly)
into several nested list items.

]]
Received on Monday, 13 October 2008 16:13:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 13 October 2008 16:13:49 GMT