mirror of
https://github.com/servo/servo.git
synced 2025-06-15 03:44:30 +00:00
The rendering is still wrong beause of #2795, but at least we get a rendering. (This test change is just for readability, it should be equivalent to before.)
18 lines
559 B
HTML
18 lines
559 B
HTML
<html>
|
|
<head>
|
|
<title>Block with over-contrained margins+borders+padding+width = containing block width</title>
|
|
<style>
|
|
body { width: 300px; margin: 0 0 0 400px }
|
|
div:nth-child(even) { direction: rtl }
|
|
div:nth-child(1) p, div:nth-child(2) p { margin: 20px 70px }
|
|
div:nth-child(3) p, div:nth-child(4) p { margin: 20px 120px }
|
|
p { background: green; width: 200px; height: 100px }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div><p></p></div>
|
|
<div><p></p></div>
|
|
<div><p></p></div>
|
|
<div><p></p></div>
|
|
</body>
|
|
</html>
|