1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/433640-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,52 @@ 1.4 +<!DOCTYPE html> 1.5 +<html><head> 1.6 +<style type="text/css"> 1.7 + div.image { 1.8 + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEUAAAD///+l2Z/dAAAAGElEQVR42mNggIHcbbfBCMEYlRqVIiQFAPco1xfL/SakAAAAAElFTkSuQmCC"); 1.9 + background-position: center center; 1.10 + width: 32px; 1.11 + height: 32px; 1.12 + } 1.13 + 1.14 + div.cell { 1.15 + float: left; 1.16 + width: 100px; 1.17 + } 1.18 + 1.19 + body > div { height:100px; } 1.20 + 1.21 + /* ensure that font heights do not affect image placement. Fractional image offsets can 1.22 + affect exactly which pixel rects get painted. */ 1.23 + p { font-size: 12px; height:20px; } 1.24 +</style> 1.25 +</head><body> 1.26 + 1.27 +<div> 1.28 +<div class="cell"><p>31 x 32</p><div style="width:31px" class="image"></div></div> 1.29 +<div class="cell"><p>31.1 x 32</p><div style="width:31.1px" class="image"></div></div> 1.30 +<div class="cell"><p>31.5 x 32</p><div style="width:31.5px" class="image"></div></div> 1.31 +<div class="cell"><p>31.8 x 32</p><div style="width:31.8px" class="image"></div></div> 1.32 +</div> 1.33 + 1.34 +<div> 1.35 +<div class="cell"><p>32 x 32</p><div style="width:32px" class="image"></div></div> 1.36 +<div class="cell"><p>32.1 x 32</p><div style="width:32.1px" class="image"></div></div> 1.37 +<div class="cell"><p>32.5 x 32</p><div style="width:32.5px" class="image"></div></div> 1.38 +<div class="cell"><p>32.8 x 32</p><div style="width:32.8px" class="image"></div></div> 1.39 +</div> 1.40 + 1.41 +<div> 1.42 +<div class="cell"><p>32 x 31 </p><div style="height:31px" class="image"></div></div> 1.43 +<div class="cell"><p>32 x 31.1 </p><div style="height:31.1px" class="image"></div></div> 1.44 +<div class="cell"><p>32 x 31.5 </p><div style="height:31.5px" class="image"></div></div> 1.45 +<div class="cell"><p>32 x 31.8 </p><div style="height:31.8px" class="image"></div></div> 1.46 +</div> 1.47 + 1.48 +<div> 1.49 +<div class="cell"><p>32 x 32 </p><div style="height:32px" class="image"></div></div> 1.50 +<div class="cell"><p>32 x 32.1 </p><div style="height:32.1px" class="image"></div></div> 1.51 +<div class="cell"><p>32 x 32.5 </p><div style="height:32.5px" class="image"></div></div> 1.52 +<div class="cell"><p>32 x 32.8 </p><div style="height:32.8px" class="image"></div></div> 1.53 +</div> 1.54 + 1.55 +</body></html>