mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Add a basic ref test for @viewport
This commit is contained in:
parent
3f006f96b2
commit
455ac536af
3 changed files with 54 additions and 0 deletions
|
@ -311,6 +311,7 @@ resolution=800x600 == viewport_percentage_vmin_vmax.html viewport_percentage_vmi
|
||||||
resolution=600x800 == viewport_percentage_vmin_vmax.html viewport_percentage_vmin_vmax_b.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
|
resolution=800x600 == viewport_percentage_vw_vh.html viewport_percentage_vw_vh_a.html
|
||||||
resolution=600x800 == viewport_percentage_vw_vh.html viewport_percentage_vw_vh_b.html
|
resolution=600x800 == viewport_percentage_vw_vh.html viewport_percentage_vw_vh_b.html
|
||||||
|
experimental == viewport_rule.html viewport_rule_ref.html
|
||||||
== visibility_hidden.html visibility_hidden_ref.html
|
== visibility_hidden.html visibility_hidden_ref.html
|
||||||
|
|
||||||
flaky_cpu == webgl-context/clearcolor.html webgl-context/clearcolor_ref.html
|
flaky_cpu == webgl-context/clearcolor.html webgl-context/clearcolor_ref.html
|
||||||
|
|
29
tests/ref/viewport_rule.html
Normal file
29
tests/ref/viewport_rule.html
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
@viewport {
|
||||||
|
height: auto;
|
||||||
|
width: 240px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#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>
|
24
tests/ref/viewport_rule_ref.html
Normal file
24
tests/ref/viewport_rule_ref.html
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
#container {
|
||||||
|
background: blue;
|
||||||
|
height: 180px;
|
||||||
|
width: 232px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#box {
|
||||||
|
background: green;
|
||||||
|
height: 90px;
|
||||||
|
width: 120px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
<div id="box">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue