Changes between Version 7 and Version 8 of ScalesAndZooms


Ignore:
Timestamp:
Jun 14, 2012 6:54:15 PM (10 years ago)
Author:
jamesr@google.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ScalesAndZooms

    v7 v8  
    2020WebKit supports (at least) the following types of zooms and scales:
    2121
    22 || '''Name''' || '''Ratio''' || '''Changes viewport size (in logical pixels)''' || '''Exposed directly to web content''' ||
     22|| '''Name''' || '''Ratio''' || '''Changes CSS viewport size''' || '''Exposed directly to web content''' ||
    2323|| Device Scale || Physical pixel : Logical pixel || No || Yes - window.devicePixelRatio, CSS media queries ||
    2424|| Page scale || Logical pixel : CSS pixel || No || No ||
     
    3131
    3232== Page scale ==
    33 Page scale is used to implement zooming gestures.  This is typically done in conjunction with using a porthole/virtual viewport model where the viewport that the user sees is a subset of the viewport as exposed to the web page.  Page scale affects the virtual viewport, not the CSS viewport, so layout is, generally speaking, not impacted by a changing page scale.  Fixed position elements are an exception to this - they are often rooted to the virtual viewport and not the CSS viewport.  This behavior is not well defined and there are many behavior differences between different ports.
     33Page scale is used to implement zooming gestures.  This is typically done in conjunction with using a porthole/virtual viewport model.  The virtual viewport, which the user sees, is a subset of the viewport as exposed to the web page.  Page scale affects the virtual viewport, not the CSS viewport, so layout is, generally speaking, not impacted by a changing page scale.  Fixed position elements are an exception to this - they are often rooted to the virtual viewport and not the CSS viewport.  This behavior is not well defined and there are many behavior differences between different ports.
    3434
    3535== Page zoom ==