1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/471356-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +<!--quirks mode--> 1.5 + 1.6 +<!-- 1.7 + It's not clear that this is desired behavior, but I'm adding a test 1.8 + for it because bug 243519 *accidentally* regressed it. 1.9 + 1.10 + We're testing here that quirks mode percentage height calculation 1.11 + subtracts the margin, padding, and border of the BODY element when the 1.12 + basis for that percentage height is a specified non-auto height on the 1.13 + HTML element. 1.14 +--> 1.15 +<html style="height: 300px; 1.16 + margin: 1px 0 2px 0; padding: 4px 0 8px 0;"> 1.17 +<head> 1.18 + <title>Testcase, bug 471356 / bug 243519</title> 1.19 +</head> 1.20 +<body style="margin: 16px 0 32px 0; padding: 64px 0 128px 0;"> 1.21 + <!-- basis for percentage is 300px - (16px + 32px + 64px + 128px) 1.22 + == 60px --> 1.23 + <div style="background: blue; height: 50%"> 1.24 + </div> 1.25 +</body> 1.26 +</html>