mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add calc reftest
This commit is contained in:
parent
cdae523cd4
commit
25829bbb12
3 changed files with 39 additions and 0 deletions
|
@ -80,6 +80,7 @@ flaky_cpu == append_style_a.html append_style_b.html
|
||||||
== box_sizing_border_box_a.html box_sizing_border_box_ref.html
|
== box_sizing_border_box_a.html box_sizing_border_box_ref.html
|
||||||
== box_sizing_sanity_check_a.html box_sizing_sanity_check_ref.html
|
== box_sizing_sanity_check_a.html box_sizing_sanity_check_ref.html
|
||||||
== br.html br-ref.html
|
== br.html br-ref.html
|
||||||
|
== calc-basic.html calc-basic-ref.html
|
||||||
== canvas_as_block_element_a.html canvas_as_block_element_ref.html
|
== canvas_as_block_element_a.html canvas_as_block_element_ref.html
|
||||||
== canvas_linear_gradient_a.html canvas_linear_gradient_ref.html
|
== canvas_linear_gradient_a.html canvas_linear_gradient_ref.html
|
||||||
== canvas_radial_gradient_a.html canvas_radial_gradient_ref.html
|
== canvas_radial_gradient_a.html canvas_radial_gradient_ref.html
|
||||||
|
|
19
tests/ref/calc-basic-ref.html
Normal file
19
tests/ref/calc-basic-ref.html
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<div id="outer">
|
||||||
|
<div id="inner">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<style>
|
||||||
|
#outer {
|
||||||
|
height: 100px;
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#inner {
|
||||||
|
height: 100%;
|
||||||
|
width: 110px;
|
||||||
|
background-color: green;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
19
tests/ref/calc-basic.html
Normal file
19
tests/ref/calc-basic.html
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<div id="outer">
|
||||||
|
<div id="inner">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<style>
|
||||||
|
#outer {
|
||||||
|
height: 100px;
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#inner {
|
||||||
|
height: 100%;
|
||||||
|
width: calc(50px + 30%);
|
||||||
|
background-color: green;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue