mirror of
https://github.com/servo/servo.git
synced 2025-08-27 08:08:19 +01:00
script: Implement the width
and height
attributes for iframes per
HTML5 § 4.8.6. Improves Amazon and Ars Technica.
This commit is contained in:
parent
e52197d126
commit
1a3395e077
13 changed files with 154 additions and 290 deletions
|
@ -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
|
||||
|
|
14
tests/ref/iframe/size_attributes.html
Normal file
14
tests/ref/iframe/size_attributes.html
Normal 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>
|
||||
|
18
tests/ref/iframe/size_attributes_ref.html
Normal file
18
tests/ref/iframe/size_attributes_ref.html
Normal 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>
|
||||
|
20
tests/ref/iframe/size_attributes_vertical_writing_mode.html
Normal file
20
tests/ref/iframe/size_attributes_vertical_writing_mode.html
Normal 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>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue