summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-calc
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /layout/reftests/css-calc
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/css-calc')
-rw-r--r--layout/reftests/css-calc/background-image-gradient-1-ref.html15
-rw-r--r--layout/reftests/css-calc/background-image-gradient-1.html15
-rw-r--r--layout/reftests/css-calc/line-height-1-ref.html62
-rw-r--r--layout/reftests/css-calc/line-height-1.html62
-rw-r--r--layout/reftests/css-calc/reftest-stylo.list3
-rw-r--r--layout/reftests/css-calc/reftest.list2
6 files changed, 159 insertions, 0 deletions
diff --git a/layout/reftests/css-calc/background-image-gradient-1-ref.html b/layout/reftests/css-calc/background-image-gradient-1-ref.html
new file mode 100644
index 000000000..f5eaf1def
--- /dev/null
+++ b/layout/reftests/css-calc/background-image-gradient-1-ref.html
@@ -0,0 +1,15 @@
+<!DOCTYPE HTML>
+<title>Test for calc() on background-image gradients</title>
+<style>
+
+p {
+ height: 50px; width: 200px;
+ border: thin solid;
+}
+
+#one { background-image: -moz-radial-gradient(150px 20px, circle farthest-side, red, green); }
+#two { background-image: -moz-linear-gradient(-22px -35px -45deg, blue, yellow); }
+
+</style>
+<p id="one"></p>
+<p id="two"></p>
diff --git a/layout/reftests/css-calc/background-image-gradient-1.html b/layout/reftests/css-calc/background-image-gradient-1.html
new file mode 100644
index 000000000..636881eaf
--- /dev/null
+++ b/layout/reftests/css-calc/background-image-gradient-1.html
@@ -0,0 +1,15 @@
+<!DOCTYPE HTML>
+<title>Test for calc() on background-image gradients</title>
+<style>
+
+p {
+ height: 50px; width: 200px;
+ border: thin solid;
+}
+
+#one { background-image: -moz-radial-gradient(calc(50px + 50%) calc(100% - 30px), circle farthest-side, red, green); }
+#two { background-image: -moz-linear-gradient(calc(-12.5% + 3px) calc(-10px - 50%) -45deg, blue, yellow); }
+
+</style>
+<p id="one"></p>
+<p id="two"></p>
diff --git a/layout/reftests/css-calc/line-height-1-ref.html b/layout/reftests/css-calc/line-height-1-ref.html
new file mode 100644
index 000000000..a21826367
--- /dev/null
+++ b/layout/reftests/css-calc/line-height-1-ref.html
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+<style>
+div {
+ width:100px;
+ height:600px;
+ margin:5px 0 0 5px;
+ font-size: 30px;
+ float:left;
+}
+div#one {
+ line-height: 300%;
+}
+div#two {
+ line-height: 100px;
+}
+div#three {
+ line-height: 110px;
+}
+div#four {
+ line-height: 20px;
+}
+div#five {
+ line-height: 12px;
+}
+div#six {
+ line-height: 12px;
+}
+div#seven {
+ line-height: 12px;
+}
+div#eight {
+ line-height: 12px;
+}
+div#nine {
+ line-height: 12px;
+}
+div#nine {
+ line-height: 12px;
+}
+div#ten {
+ line-height: 12px;
+}
+div#div-11 {
+ line-height: 15px;
+}
+div#div-12 {
+ line-height: 195px;
+}
+</style>
+<div id="one">line height is 300%</div>
+<div id="two">line height is 100px</div>
+<div id="three">line height is 50px</div>
+<div id="four">line height is 10px * 2</div>
+<div id="five">line height is 50% - 3px</div>
+<div id="six">line height is 25% - 3px + 25%</div>
+<div id="seven">line height is 25% - 3px + 12.5% * 2</div>
+<div id="eight">line height is 25% - 3px + 12.5%*2</div>
+<div id="nine">line height is 25% - 3px + 2*12.5%</div>
+<div id="ten">line height is 25% - 3px + 2 * 12.5%</div>
+<div id="div-11">line height is 30% + 20%</div>
+<div id="div-12">line height is 3 * 2 + 3 / 6</div>
+</html>
diff --git a/layout/reftests/css-calc/line-height-1.html b/layout/reftests/css-calc/line-height-1.html
new file mode 100644
index 000000000..f586d0dbf
--- /dev/null
+++ b/layout/reftests/css-calc/line-height-1.html
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+<style>
+div {
+ width:100px;
+ height:600px;
+ margin:5px 0 0 5px;
+ font-size: 30px;
+ float:left;
+}
+div#one {
+ line-height: calc(300%);
+}
+div#two {
+ line-height: calc(100px);
+}
+div#three {
+ line-height: calc(20px + 300%);
+}
+div#four {
+ line-height: calc(10px * 2);
+}
+div#five {
+ line-height: calc(50% - 3px);
+}
+div#six {
+ line-height: calc(25% - 3px + 25%);
+}
+div#seven {
+ line-height: calc(25% - 3px + 12.5% * 2);
+}
+div#eight {
+ line-height: calc(25% - 3px + 12.5%*2);
+}
+div#nine {
+ line-height: calc(25% - 3px + 2 * 12.5%);
+}
+div#nine {
+ line-height: calc(25% - 3px + 2*12.5%);
+}
+div#ten {
+ line-height: calc(25% - 3px + 2 * 12.5%);
+}
+div#div-11 {
+ line-height: calc(30% + 20%);
+}
+div#div-12 {
+ line-height: calc(3 * 2 + 3 / 6);
+}
+</style>
+<div id="one">line height is 300%</div>
+<div id="two">line height is 100px</div>
+<div id="three">line height is 50px</div>
+<div id="four">line height is 10px * 2</div>
+<div id="five">line height is 50% - 3px</div>
+<div id="six">line height is 25% - 3px + 25%</div>
+<div id="seven">line height is 25% - 3px + 12.5% * 2</div>
+<div id="eight">line height is 25% - 3px + 12.5%*2</div>
+<div id="nine">line height is 25% - 3px + 2*12.5%</div>
+<div id="ten">line height is 25% - 3px + 2 * 12.5%</div>
+<div id="div-11">line height is 30% + 20%</div>
+<div id="div-12">line height is 3 * 2 + 3 / 6</div>
+</html>
diff --git a/layout/reftests/css-calc/reftest-stylo.list b/layout/reftests/css-calc/reftest-stylo.list
new file mode 100644
index 000000000..9a3006f3e
--- /dev/null
+++ b/layout/reftests/css-calc/reftest-stylo.list
@@ -0,0 +1,3 @@
+# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
+== background-image-gradient-1.html background-image-gradient-1.html
+== line-height-1.html line-height-1.html
diff --git a/layout/reftests/css-calc/reftest.list b/layout/reftests/css-calc/reftest.list
new file mode 100644
index 000000000..86fc61801
--- /dev/null
+++ b/layout/reftests/css-calc/reftest.list
@@ -0,0 +1,2 @@
+== background-image-gradient-1.html background-image-gradient-1-ref.html
+== line-height-1.html line-height-1-ref.html