mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix some writing mode mismatch assertions errors.
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.)
This commit is contained in:
parent
eea49ee1d9
commit
7be30dee8e
3 changed files with 21 additions and 11 deletions
|
@ -2,14 +2,17 @@
|
|||
<head>
|
||||
<title>Block with over-contrained margins+borders+padding+width = containing block width</title>
|
||||
<style>
|
||||
body { width: 300px; margin: 0 }
|
||||
p { background: green; width: 200px; height: 100px; margin: 20px 70px }
|
||||
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>
|
||||
<p style="margin: 20px 70px"></p>
|
||||
<p style="margin: 20px 70px; direction: rtl"></p>
|
||||
<p style="margin: 20px 120px"></p>
|
||||
<p style="margin: 20px 120px; direction: rtl"></p>
|
||||
<div><p></p></div>
|
||||
<div><p></p></div>
|
||||
<div><p></p></div>
|
||||
<div><p></p></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue