mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Add layout support and tests for inline iframes. Fixes #1697.
This commit is contained in:
parent
221a343883
commit
1f37c6eabe
17 changed files with 200 additions and 31 deletions
|
@ -126,6 +126,13 @@ fragment=top != ../html/acid2.html acid2_ref.html
|
|||
== multiple_css_class_a.html multiple_css_class_b.html
|
||||
|
||||
== iframe/simple.html iframe/simple_ref.html
|
||||
== iframe/simple_inline_default.html iframe/simple_inline_default_ref.html
|
||||
== iframe/simple_inline_width.html iframe/simple_inline_width_ref.html
|
||||
== iframe/simple_inline_width_height.html iframe/simple_inline_width_height_ref.html
|
||||
== iframe/simple_inline_height.html iframe/simple_inline_height_ref.html
|
||||
== iframe/simple_inline_width_percentage.html iframe/simple_inline_width_percentage_ref.html
|
||||
== iframe/simple_inline_min.html iframe/simple_inline_min_ref.html
|
||||
== iframe/simple_inline_max.html iframe/simple_inline_max_ref.html
|
||||
== iframe/multiple_external.html iframe/multiple_external_ref.html
|
||||
== iframe/overflow.html iframe/overflow_ref.html
|
||||
== iframe/positioning_margin.html iframe/positioning_margin_ref.html
|
||||
|
|
9
tests/ref/iframe/simple_inline_default.html
Normal file
9
tests/ref/iframe/simple_inline_default.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="margin-top: 20px;">
|
||||
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
|
||||
style="display: inline; border: 1px solid black;">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
7
tests/ref/iframe/simple_inline_default_ref.html
Normal file
7
tests/ref/iframe/simple_inline_default_ref.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="border: 1px solid black; width: 300px; height: 150px; margin-top: 20px;">
|
||||
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
9
tests/ref/iframe/simple_inline_height.html
Normal file
9
tests/ref/iframe/simple_inline_height.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="margin-top: 20px;">
|
||||
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
|
||||
style="display: inline; border: 1px solid black; height: 300px;">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
7
tests/ref/iframe/simple_inline_height_ref.html
Normal file
7
tests/ref/iframe/simple_inline_height_ref.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="border: 1px solid black; width: 300px; height: 300px; margin-top: 20px;">
|
||||
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
9
tests/ref/iframe/simple_inline_max.html
Normal file
9
tests/ref/iframe/simple_inline_max.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="margin-top: 20px;">
|
||||
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
|
||||
style="display: inline; border: 1px solid black; max-width: 250px; max-height: 50px;">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
7
tests/ref/iframe/simple_inline_max_ref.html
Normal file
7
tests/ref/iframe/simple_inline_max_ref.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="border: 1px solid black; width: 250px; height: 50px; margin-top: 20px;">
|
||||
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
9
tests/ref/iframe/simple_inline_min.html
Normal file
9
tests/ref/iframe/simple_inline_min.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="margin-top: 20px;">
|
||||
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
|
||||
style="display: inline; border: 1px solid black; min-width: 400px; min-height: 250px;">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
7
tests/ref/iframe/simple_inline_min_ref.html
Normal file
7
tests/ref/iframe/simple_inline_min_ref.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="border: 1px solid black; width: 400px; height: 250px; margin-top: 20px;">
|
||||
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
9
tests/ref/iframe/simple_inline_width.html
Normal file
9
tests/ref/iframe/simple_inline_width.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="margin-top: 20px;">
|
||||
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
|
||||
style="display: inline; border: 1px solid black; width: 500px;">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
9
tests/ref/iframe/simple_inline_width_height.html
Normal file
9
tests/ref/iframe/simple_inline_width_height.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="margin-top: 20px;">
|
||||
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
|
||||
style="display: inline; border: 1px solid black; width: 500px; height: 300px;">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
7
tests/ref/iframe/simple_inline_width_height_ref.html
Normal file
7
tests/ref/iframe/simple_inline_width_height_ref.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="border: 1px solid black; width: 500px; height: 300px; margin-top: 20px;">
|
||||
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
9
tests/ref/iframe/simple_inline_width_percentage.html
Normal file
9
tests/ref/iframe/simple_inline_width_percentage.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="margin-top: 20px; width: 400px;">
|
||||
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
|
||||
style="display: inline; border: 1px solid black; width: 50%;">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
7
tests/ref/iframe/simple_inline_width_percentage_ref.html
Normal file
7
tests/ref/iframe/simple_inline_width_percentage_ref.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="border: 1px solid black; width: 200px; height: 150px; margin-top: 20px;">
|
||||
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
7
tests/ref/iframe/simple_inline_width_ref.html
Normal file
7
tests/ref/iframe/simple_inline_width_ref.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="border: 1px solid black; width: 500px; height: 150px; margin-top: 20px;">
|
||||
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue