layout/reftests/font-inflation/maxRatio-1-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/font-inflation/maxRatio-1-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<style>
     1.6 +div { background: yellow }
     1.7 +div { font-size: 24px; width: 450px }
     1.8 +</style>
     1.9 +<!--
    1.10 +In a 450px container, the minimum font size at 15em per line is 30px.
    1.11 +This means we map 0px-45px into 30px-45px, so 12px gets mapped to 34px.
    1.12 +However, because we've enabled the maxRatio at a value of 2.0, the mapping
    1.13 +function, which would normally return 34px/12px, or about 2.83, now
    1.14 +returns a ratio capped at 2.0, thus the actual font size is 24px.
    1.15 +-->
    1.16 +<div>Hello world</div>

mercurial