1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/table-width/spacing-invariance-standards-pref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 +<title>Test that cellpadding, cellspacing, border, etc., don't break table sizing.</title> 1.8 +<style type="text/css"> 1.9 + 1.10 +html, body { margin: 0 } /* no collapsing */ 1.11 + 1.12 +table, td { 1.13 + margin: 0; 1.14 +} 1.15 + 1.16 +* { border-color: white; /* hidden */ } 1.17 +table, td { border-style: solid; } 1.18 +body { background: white; color: black; } 1.19 + 1.20 +div { background: olive; color: black; } 1.21 + 1.22 +</style> 1.23 +</head> 1.24 +<body> 1.25 +<table cellpadding="3" cellspacing="5" border="2"><tr><td colspan="2" style="border-width: 1px"> <!-- td border currently already 1px --> 1.26 + <table style="border-spacing: 5px 7px; border-width: 2px 3px 4px 5px"><tr><td colspan="3" style="padding: 4px 5px 6px 7px;border-width: 4px 5px 6px 7px"> 1.27 + <div>This is some text.</div> 1.28 + </td></tr></table> 1.29 +</td></tr></table> 1.30 +</body> 1.31 +</html>