1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/font-inflation/intrinsic-fit-2c.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<style> 1.6 +@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); } 1.7 +html, body { margin: 0; padding: 0; } 1.8 +body { width: 150px } 1.9 +p { 1.10 + margin: 0; 1.11 + background: yellow; 1.12 + color: blue; 1.13 + float: left; 1.14 + width: auto; /* computes to 150px */ 1.15 + font: 12px Ahem; 1.16 +} 1.17 +</style> 1.18 +<!-- 1.19 +In a 150px container, the minimum font size at 15em per line is 10px. 1.20 +This means we map 0px-15px into 10px-15px, so 12px gets mapped to 14px. 1.21 +--> 1.22 +<p>This is tiny bit of text.</p>