[cssom-view] Make devicePixelRatio use vertical pixel size. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=26756

Mon, 15 Sep 2014 09:29:50 +0200

author
Simon Pieters <simonp@opera.com>
date
Mon, 15 Sep 2014 09:29:50 +0200
changeset 14523
7af8815c92ec
parent 14522
573c5b5fc08d
child 14524
9cb7aeb023ce

[cssom-view] Make devicePixelRatio use vertical pixel size. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=26756

cssom-view/Overview.html file | annotate | diff | comparison | revisions
cssom-view/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/cssom-view/Overview.html	Sun Sep 14 11:50:12 2014 -0400
     1.2 +++ b/cssom-view/Overview.html	Mon Sep 15 09:29:50 2014 +0200
     1.3 @@ -16,7 +16,7 @@
     1.4  
     1.5   <h1>CSSOM View Module</h1>
     1.6  
     1.7 - <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 12 September 2014</h2>
     1.8 + <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 15 September 2014</h2>
     1.9  
    1.10   <dl>
    1.11  
    1.12 @@ -83,7 +83,7 @@
    1.13  can be found in the <a href="http://www.w3.org/TR/">W3C technical reports
    1.14  index at http://www.w3.org/TR/.</a></em>
    1.15  
    1.16 -<p>This is the 12 September 2014 Editor's Draft of CSSOM View. Please send
    1.17 +<p>This is the 15 September 2014 Editor's Draft of CSSOM View. Please send
    1.18  comments to
    1.19  <a href="mailto:www-style@w3.org?subject=%5Bcssom-view%5D%20">www-style@w3.org</a>
    1.20  (<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
    1.21 @@ -744,8 +744,7 @@
    1.22   <li><p>If there is no output device, return 1 and abort these steps.
    1.23   <li><p>Let <var>CSS pixel size</var> be the size of a CSS pixel at the current <a href="#page-zoom">page zoom</a> scale factor and at a <a href="#pinch-zoom">pinch zoom</a> scale
    1.24   factor of 1.0.
    1.25 - <li><p>Let <var>device pixel size</var> be the size of a device pixel of the output device, in one dimension (vertical or horizontal). If the device pixel is
    1.26 - not square, then use the smaller of the vertical or horizontal size of the smallest bounding box of the device pixel.
    1.27 + <li><p>Let <var>device pixel size</var> be the vertical size of a device pixel of the output device.
    1.28   <li><p>Return the result of dividing <var>CSS pixel size</var> by <var>device pixel size</var>.
    1.29  </ol>
    1.30  
     2.1 --- a/cssom-view/Overview.src.html	Sun Sep 14 11:50:12 2014 -0400
     2.2 +++ b/cssom-view/Overview.src.html	Mon Sep 15 09:29:50 2014 +0200
     2.3 @@ -700,8 +700,7 @@
     2.4   <li><p>If there is no output device, return 1 and abort these steps.
     2.5   <li><p>Let <var>CSS pixel size</var> be the size of a CSS pixel at the current <span>page zoom</span> scale factor and at a <span>pinch zoom</span> scale
     2.6   factor of 1.0.
     2.7 - <li><p>Let <var>device pixel size</var> be the size of a device pixel of the output device, in one dimension (vertical or horizontal). If the device pixel is
     2.8 - not square, then use the smaller of the vertical or horizontal size of the smallest bounding box of the device pixel.
     2.9 + <li><p>Let <var>device pixel size</var> be the vertical size of a device pixel of the output device.
    2.10   <li><p>Return the result of dividing <var>CSS pixel size</var> by <var>device pixel size</var>.
    2.11  </ol>
    2.12  

mercurial