<title>Testcase, bug 467084</title> <style> body { background: white; } body > div { background: blue; height: 100px; width: 100px; padding: 5px; } body > div > div { background: aqua; height: 100px; width: 100px; } </style> <div><div></div></div>