5. A system for smooth zooming in web applications, comprising: one or more computer processors; a structured document defining a plurality of display elements, the plurality of display elements including a resizable container element having a container size attribute and a scalable element having a scaling attribute, wherein the scalable element is defined to be located at least partially within the resizable container element when rendered; a rendering component, executed at the one or more computer processors, the rendering component operable to receive the structured document as an input, execute a rendering function that calculates a display position for each of the plurality of display elements, and define rendered content based at least in part on the display position for each of the plurality of display elements; a display component, executed at the one or more computer processors, the display component operable to output a viewable area of the rendered content; and a scaling component, executed at the one or more computer processors, the scaling component operable to receive a scaling input requesting scaling of the scalable element, redefine the scaling attribute of the scalable element based at least in part on the scaling input, calculate an updated container size attribute for the resizable container element, determine whether the resizable container element will be located within the viewable area if the container size attribute of the resizable container element is changed to the updated container size attribute so that the resizable container element completely contains the scalable element, set the container size attribute to the updated container size attribute if the resizable container element will be located within the viewable area, and maintain the size of the resizable container element if the resizable container element will not be located within the viewable area.
8. The system of claim 5 , wherein setting the container size attribute to the updated container size attribute changes the size of the container with respect to the structured document.