script: Implement the width and height attributes for iframes per

HTML5 § 4.8.6.

Improves Amazon and Ars Technica.
This commit is contained in:
Patrick Walton 2015-04-07 10:47:19 -07:00
parent e52197d126
commit 1a3395e077
13 changed files with 154 additions and 290 deletions

View file

@ -125,6 +125,8 @@ flaky_cpu == append_style_a.html append_style_b.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_width_percentage.html iframe/simple_inline_width_percentage_ref.html
== iframe/size_attributes.html iframe/size_attributes_ref.html
experimental == iframe/size_attributes_vertical_writing_mode.html iframe/size_attributes_ref.html
!= image_rendering_auto_a.html image_rendering_pixelated_a.html
== image_rendering_pixelated_a.html image_rendering_pixelated_ref.html

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: purple;
}
</style>
</head>
<body>
<iframe src="about:blank" width=200 height=100></iframe>
</body>
</html>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: purple;
}
iframe {
width: 200px;
height: 100px;
}
</style>
</head>
<body>
<iframe src="about:blank"></iframe>
</body>
</html>

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: purple;
}
iframe {
writing-mode: vertical-lr;
position: relative;
top: 104px;
}
</style>
</head>
<body>
<iframe src="about:blank" width=200 height=100></iframe>
</body>
</html>