ISSUE-2238 (switch-allowReorder): Add @allowReorder to <switch> [SVG Core 2.0]

ISSUE-2238 (switch-allowReorder): Add @allowReorder to <switch> [SVG Core 2.0]

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

Raised by: Doug Schepers
On product: SVG Core 2.0

Per SMIL 3.0:

[[
Authors should order the alternatives from the most desirable to the least desirable. Furthermore, authors may wish to place a relatively fail-safe alternative as the last item in the switch so that at least one item within the switch is chosen (unless this is explicitly not desired). If all alternatives are equivalent an author should signal this through the allowReorder attribute on the switch, this gives the user agent the freedom to pick the best match (as opposed to the first match).
]] [1]

and

[[
The allowReorder Attribute

The allowReorder attribute signals whether a user agent may reorder the direct descendents of the switch element, based on user preferences, if it thinks this could lead to a better user experience.

The possible values are 'no', the default, disallowing reordering and 'yes', allowing reordering.

This section is informative.

User agents are free to ignore the allowReorder attribute, but if they implement prioritized language ranges as defined in BCP47 [BCP47] they are expected to use that prioritization to reorder children with systemLanguage attributes. The effect should be that the users are presented with the alternative that best matches their language preferences. Any final child without systemLanguage attribute should retain its place as the default item to present.

Authors should add the allowReorder attribute if all items in the switch are equivalent.
]] [2]


[1] http://www.w3.org/TR/2008/REC-SMIL3-20081201/smil-content.html#q6
[2] http://www.w3.org/TR/2008/REC-SMIL3-20081201/smil-content.html#adef-allowReorder

Received on Thursday, 19 March 2009 04:19:37 UTC