mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Handle <meta name=viewport> elements when added to document
This commit is contained in:
parent
61f7a0a1ee
commit
d0ace58452
6 changed files with 107 additions and 5 deletions
|
@ -397,6 +397,7 @@ flaky_cpu,prefs:"layout.writing-mode.enabled" == vertical-lr-blocks.html vertica
|
|||
== vertical_align_top_a.html vertical_align_top_ref.html
|
||||
== vertical_align_top_bottom_a.html vertical_align_top_bottom_ref.html
|
||||
== vertical_align_top_span_a.html vertical_align_top_span_ref.html
|
||||
== viewport_meta.html viewport_rule_ref.html
|
||||
resolution=800x600 == viewport_percentage_vmin_vmax.html viewport_percentage_vmin_vmax_a.html
|
||||
# resolution=600x800 == viewport_percentage_vmin_vmax.html viewport_percentage_vmin_vmax_b.html
|
||||
resolution=800x600 == viewport_percentage_vw_vh.html viewport_percentage_vw_vh_a.html
|
||||
|
|
25
tests/ref/viewport_meta.html
Normal file
25
tests/ref/viewport_meta.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=240">
|
||||
<style>
|
||||
#container {
|
||||
background: blue;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
#box {
|
||||
background: green;
|
||||
height: 50vh;
|
||||
width: 50vw;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="box">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue