1. A method implemented by an electronic device, the method comprising: receiving an instruction to scale a region of a displayed structured document, the region including at least one element or a portion thereof; in response to the received instruction: identifying a dominant alignment of the region, the dominant alignment being an alignment of a dominant image in the region or an alignment of text within a dominant text block in the region; scaling the region; and outputting to a display interface a portion of the scaled region intersecting a viewport defined for a display, the viewport being aligned with the scaled region according to the dominant alignment when it is intersected with the scaled region.
1. A method implemented by an electronic device, the method comprising: receiving an instruction to scale a region of a displayed structured document, the region including at least one element or a portion thereof; in response to the received instruction: identifying a dominant alignment of the region, the dominant alignment being an alignment of a dominant image in the region or an alignment of text within a dominant text block in the region; scaling the region; and outputting to a display interface a portion of the scaled region intersecting a viewport defined for a display, the viewport being aligned with the scaled region according to the dominant alignment when it is intersected with the scaled region. 3. The method of claim 1 , wherein identifying the dominant alignment comprises identifying a dominant element according to a hierarchy of elements or an attribute of the dominant element.