diff --git a/tests/reftests/transform/translate.html b/tests/reftests/transform/translate.html
index 86301b3..0630b09 100644
--- a/tests/reftests/transform/translate.html
+++ b/tests/reftests/transform/translate.html
@@ -36,8 +36,11 @@
display: inline-block;
padding: 10px;
}
-
+ body {
+ font-family: Arial;
+ }
+
diff --git a/tests/reftests/transform/translate.txt b/tests/reftests/transform/translate.txt
index 1e93d11..783e953 100644
--- a/tests/reftests/transform/translate.txt
+++ b/tests/reftests/transform/translate.txt
@@ -1,37 +1,37 @@
Window: [800, 600]
Rectangle: [0, 0, 800, 600] rgba(0,0,0,0)
Opacity: 1
-Clip: Path (Vector(x: 8, y: 108) > Vector(x: 699, y: 108) > Vector(x: 699, y: 207) > Vector(x: 8, y: 207))
+Clip: Path (Vector(x: 8, y: 108) > Vector(x: 758, y: 108) > Vector(x: 758, y: 206) > Vector(x: 8, y: 206))
Fill: rgb(205,92,92)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[18, 148]: First
- [51, 148]: level
- [86, 148]: content
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
- [608, 148]: ,
- [616, 148]: ending
- [664, 148]: first
-Transform: (373, 157) [1, 0, 0, 1, 125, 0]
- Clip: Path (Vector(x: 138, y: 118) > Vector(x: 608, y: 118) > Vector(x: 608, y: 197) > Vector(x: 138, y: 197))
+ [54, 148]: level
+ [91, 148]: content
+Text: rgb(0,0,0) normal normal 400 16px Arial
+ [660, 148]: ,
+ [670, 148]: ending
+ [722, 148]: first
+Transform: (404, 157) [1, 0, 0, 1, 125, 0]
+ Clip: Path (Vector(x: 148, y: 118) > Vector(x: 661, y: 118) > Vector(x: 661, y: 196) > Vector(x: 148, y: 196))
Fill: rgb(143,188,143)
- Shape: rgb(255,0,0) Path (Vector(x: 138, y: 118) > Vector(x: 608, y: 118) > Vector(x: 598, y: 128) > Vector(x: 148, y: 128))
- Shape: rgb(255,0,0) Path (Vector(x: 608, y: 118) > Vector(x: 608, y: 197) > Vector(x: 598, y: 187) > Vector(x: 598, y: 128))
- Shape: rgb(255,0,0) Path (Vector(x: 608, y: 197) > Vector(x: 138, y: 197) > Vector(x: 148, y: 187) > Vector(x: 598, y: 187))
- Shape: rgb(255,0,0) Path (Vector(x: 138, y: 197) > Vector(x: 138, y: 118) > Vector(x: 148, y: 128) > Vector(x: 148, y: 187))
- Text: rgb(0,0,0) normal normal 400 16px Times New Roman
- [158, 148]: with
- [190, 148]: second
- [238, 148]: level
- [274, 148]: content
- Text: rgb(0,0,0) normal normal 400 16px Times New Roman
- [488, 148]: ,
- [496, 148]: ending
- [544, 148]: second
- Transform: (425, 188) [1, 0, 0, 1, 100, -25]
- Clip: Path (Vector(x: 325, y: 138) > Vector(x: 488, y: 138) > Vector(x: 488, y: 177) > Vector(x: 325, y: 177))
+ Shape: rgb(255,0,0) Path (Vector(x: 148, y: 118) > Vector(x: 661, y: 118) > Vector(x: 651, y: 128) > Vector(x: 158, y: 128))
+ Shape: rgb(255,0,0) Path (Vector(x: 661, y: 118) > Vector(x: 661, y: 196) > Vector(x: 651, y: 186) > Vector(x: 651, y: 128))
+ Shape: rgb(255,0,0) Path (Vector(x: 661, y: 196) > Vector(x: 148, y: 196) > Vector(x: 158, y: 186) > Vector(x: 651, y: 186))
+ Shape: rgb(255,0,0) Path (Vector(x: 148, y: 196) > Vector(x: 148, y: 118) > Vector(x: 158, y: 128) > Vector(x: 158, y: 186))
+ Text: rgb(0,0,0) normal normal 400 16px Arial
+ [168, 148]: with
+ [201, 148]: second
+ [257, 148]: level
+ [294, 148]: content
+ Text: rgb(0,0,0) normal normal 400 16px Arial
+ [527, 148]: ,
+ [537, 148]: ending
+ [589, 148]: second
+ Transform: (451, 188) [1, 0, 0, 1, 100, -25]
+ Clip: Path (Vector(x: 351, y: 138) > Vector(x: 528, y: 138) > Vector(x: 528, y: 176) > Vector(x: 351, y: 176))
Fill: rgb(95,158,160)
- Text: rgb(0,0,0) normal normal 400 16px Times New Roman
- [335, 148]: and
- [362, 148]: third
- [396, 148]: level
- [431, 148]: content
\ No newline at end of file
+ Text: rgb(0,0,0) normal normal 400 16px Arial
+ [361, 148]: and
+ [392, 148]: third
+ [428, 148]: level
+ [465, 148]: content
\ No newline at end of file
diff --git a/tests/reftests/visibility.html b/tests/reftests/visibility.html
index 77dcdb9..3071bc4 100644
--- a/tests/reftests/visibility.html
+++ b/tests/reftests/visibility.html
@@ -11,8 +11,11 @@
.none {
display:none
}
-
+ body {
+ font-family: Arial;
+ }
+
diff --git a/tests/reftests/visibility.txt b/tests/reftests/visibility.txt
index 17bfa2f..46f6746 100644
--- a/tests/reftests/visibility.txt
+++ b/tests/reftests/visibility.txt
@@ -2,24 +2,24 @@ Window: [800, 600]
Rectangle: [0, 0, 800, 600] rgba(0,0,0,0)
Opacity: 1
Shape: rgb(0,0,0) Path (Vector(x: 8, y: 8) > Vector(x: 792, y: 8) > Vector(x: 790, y: 10) > Vector(x: 10, y: 10))
-Shape: rgb(0,0,0) Path (Vector(x: 792, y: 8) > Vector(x: 792, y: 178) > Vector(x: 790, y: 176) > Vector(x: 790, y: 10))
-Shape: rgb(0,0,0) Path (Vector(x: 792, y: 178) > Vector(x: 8, y: 178) > Vector(x: 10, y: 176) > Vector(x: 790, y: 176))
-Shape: rgb(0,0,0) Path (Vector(x: 8, y: 178) > Vector(x: 8, y: 8) > Vector(x: 10, y: 10) > Vector(x: 10, y: 176))
-Text: rgb(0,0,0) normal normal 700 32px Times New Roman
+Shape: rgb(0,0,0) Path (Vector(x: 792, y: 8) > Vector(x: 792, y: 176) > Vector(x: 790, y: 174) > Vector(x: 790, y: 10))
+Shape: rgb(0,0,0) Path (Vector(x: 792, y: 176) > Vector(x: 8, y: 176) > Vector(x: 10, y: 174) > Vector(x: 790, y: 174))
+Shape: rgb(0,0,0) Path (Vector(x: 8, y: 176) > Vector(x: 8, y: 8) > Vector(x: 10, y: 10) > Vector(x: 10, y: 174))
+Text: rgb(0,0,0) normal normal 700 32px Arial
[10, 32]: Display:none
- [198, 32]: and
- [257, 32]: visible:hidden
- [457, 32]: tests
-Shape: rgb(0,0,0) Path (Vector(x: 10, y: 89) > Vector(x: 790, y: 89) > Vector(x: 788, y: 91) > Vector(x: 12, y: 91))
-Shape: rgb(0,0,0) Path (Vector(x: 790, y: 89) > Vector(x: 790, y: 112) > Vector(x: 788, y: 110) > Vector(x: 788, y: 91))
+ [220, 32]: and
+ [286, 32]: visible:hidden
+ [510, 32]: tests
+Shape: rgb(0,0,0) Path (Vector(x: 10, y: 90) > Vector(x: 790, y: 90) > Vector(x: 788, y: 92) > Vector(x: 12, y: 92))
+Shape: rgb(0,0,0) Path (Vector(x: 790, y: 90) > Vector(x: 790, y: 112) > Vector(x: 788, y: 110) > Vector(x: 788, y: 92))
Shape: rgb(0,0,0) Path (Vector(x: 790, y: 112) > Vector(x: 10, y: 112) > Vector(x: 12, y: 110) > Vector(x: 788, y: 110))
-Shape: rgb(0,0,0) Path (Vector(x: 10, y: 112) > Vector(x: 10, y: 89) > Vector(x: 12, y: 91) > Vector(x: 12, y: 110))
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Shape: rgb(0,0,0) Path (Vector(x: 10, y: 112) > Vector(x: 10, y: 90) > Vector(x: 12, y: 92) > Vector(x: 12, y: 110))
+Text: rgb(0,0,0) normal normal 400 16px Arial
[12, 92]: This
- [44, 92]: should
- [91, 92]: be
- [110, 92]: visible
-Shape: rgb(0,0,0) Path (Vector(x: 10, y: 143) > Vector(x: 790, y: 143) > Vector(x: 789, y: 144) > Vector(x: 11, y: 144))
-Shape: rgb(0,0,0) Path (Vector(x: 790, y: 143) > Vector(x: 790, y: 145) > Vector(x: 789, y: 144) > Vector(x: 789, y: 144))
-Shape: rgb(0,0,0) Path (Vector(x: 790, y: 145) > Vector(x: 10, y: 145) > Vector(x: 11, y: 144) > Vector(x: 789, y: 144))
-Shape: rgb(0,0,0) Path (Vector(x: 10, y: 145) > Vector(x: 10, y: 143) > Vector(x: 11, y: 144) > Vector(x: 11, y: 144))
\ No newline at end of file
+ [47, 92]: should
+ [98, 92]: be
+ [120, 92]: visible
+Shape: rgb(0,0,0) Path (Vector(x: 10, y: 142) > Vector(x: 790, y: 142) > Vector(x: 789, y: 143) > Vector(x: 11, y: 143))
+Shape: rgb(0,0,0) Path (Vector(x: 790, y: 142) > Vector(x: 790, y: 144) > Vector(x: 789, y: 143) > Vector(x: 789, y: 143))
+Shape: rgb(0,0,0) Path (Vector(x: 790, y: 144) > Vector(x: 10, y: 144) > Vector(x: 11, y: 143) > Vector(x: 789, y: 143))
+Shape: rgb(0,0,0) Path (Vector(x: 10, y: 144) > Vector(x: 10, y: 142) > Vector(x: 11, y: 143) > Vector(x: 11, y: 143))
\ No newline at end of file
diff --git a/tests/reftests/zindex/z-index13.html b/tests/reftests/zindex/z-index13.html
index 884f792..02e1c7b 100644
--- a/tests/reftests/zindex/z-index13.html
+++ b/tests/reftests/zindex/z-index13.html
@@ -21,6 +21,9 @@
position:absolute;
top:0;left:0;
}
+ body {
+ font-family: Arial;
+ }
diff --git a/tests/reftests/zindex/z-index13.txt b/tests/reftests/zindex/z-index13.txt
index e28eabc..fe35f4c 100644
--- a/tests/reftests/zindex/z-index13.txt
+++ b/tests/reftests/zindex/z-index13.txt
@@ -5,5 +5,5 @@ Clip: Path (Vector(x: 8, y: 8) > Vector(x: 208, y: 8) > Vector(x: 208, y: 208) >
Fill: rgb(0,255,255)
Clip: Path (Vector(x: 8, y: 8) > Vector(x: 108, y: 8) > Vector(x: 108, y: 108) > Vector(x: 8, y: 108))
Fill: rgb(0,128,0)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[8, 8]: outer
\ No newline at end of file
diff --git a/tests/reftests/zindex/z-index14.html b/tests/reftests/zindex/z-index14.html
index 6bfa9c5..5dcdabd 100644
--- a/tests/reftests/zindex/z-index14.html
+++ b/tests/reftests/zindex/z-index14.html
@@ -8,6 +8,7 @@
* {margin:0;padding:0;}
body {
background-color: green;
+ font-family: Arial;
}
#div1 {
background-color:cyan;
diff --git a/tests/reftests/zindex/z-index14.txt b/tests/reftests/zindex/z-index14.txt
index 783031b..b5f64e9 100644
--- a/tests/reftests/zindex/z-index14.txt
+++ b/tests/reftests/zindex/z-index14.txt
@@ -1,9 +1,9 @@
Window: [800, 600]
Rectangle: [0, 0, 800, 600] rgb(0,128,0)
Opacity: 1
-Clip: Path (Vector(x: 0, y: 0) > Vector(x: 800, y: 0) > Vector(x: 800, y: 19) > Vector(x: 0, y: 19))
+Clip: Path (Vector(x: 0, y: 0) > Vector(x: 800, y: 0) > Vector(x: 800, y: 18) > Vector(x: 0, y: 18))
Fill: rgb(0,128,0)
Clip: Path (Vector(x: 0, y: 0) > Vector(x: 200, y: 0) > Vector(x: 200, y: 200) > Vector(x: 0, y: 200))
Fill: rgb(0,255,255)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[0, 0]: body
\ No newline at end of file
diff --git a/tests/reftests/zindex/z-index15.html b/tests/reftests/zindex/z-index15.html
index f8dbece..f60efb1 100644
--- a/tests/reftests/zindex/z-index15.html
+++ b/tests/reftests/zindex/z-index15.html
@@ -18,6 +18,9 @@
position:absolute;
top:0; left:0;
}
+ body {
+ font-family: Arial;
+ }
body
diff --git a/tests/reftests/zindex/z-index15.txt b/tests/reftests/zindex/z-index15.txt
index a95d588..f033218 100644
--- a/tests/reftests/zindex/z-index15.txt
+++ b/tests/reftests/zindex/z-index15.txt
@@ -3,7 +3,7 @@ Rectangle: [0, 0, 800, 600] rgb(128,128,128)
Opacity: 1
Clip: Path (Vector(x: 0, y: 0) > Vector(x: 200, y: 0) > Vector(x: 200, y: 200) > Vector(x: 0, y: 200))
Fill: rgb(0,255,255)
-Clip: Path (Vector(x: 0, y: 0) > Vector(x: 800, y: 0) > Vector(x: 800, y: 19) > Vector(x: 0, y: 19))
+Clip: Path (Vector(x: 0, y: 0) > Vector(x: 800, y: 0) > Vector(x: 800, y: 18) > Vector(x: 0, y: 18))
Fill: rgb(0,128,0)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[0, 0]: body
\ No newline at end of file
diff --git a/tests/reftests/zindex/z-index16.html b/tests/reftests/zindex/z-index16.html
index c9030ea..d25d036 100644
--- a/tests/reftests/zindex/z-index16.html
+++ b/tests/reftests/zindex/z-index16.html
@@ -10,6 +10,9 @@
width: 3in;
height: 3in;
}
+ body {
+ font-family: Arial;
+ }
diff --git a/tests/reftests/zindex/z-index16.txt b/tests/reftests/zindex/z-index16.txt
index 8138f43..5a9f183 100644
--- a/tests/reftests/zindex/z-index16.txt
+++ b/tests/reftests/zindex/z-index16.txt
@@ -1,31 +1,31 @@
Window: [800, 600]
Rectangle: [0, 0, 800, 600] rgba(0,0,0,0)
Opacity: 1
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[8, 16]: This
- [40, 16]: text
- [68, 16]: will
- [97, 16]: be
- [116, 16]: beneath
- [170, 16]: everything.
+ [43, 16]: text
+ [73, 16]: will
+ [100, 16]: be
+ [122, 16]: beneath
+ [184, 16]: everything.
Clip: Path (Vector(x: 192, y: 192) > Vector(x: 480, y: 192) > Vector(x: 480, y: 480) > Vector(x: 192, y: 480))
Draw image: Image ("/tests/assets/image.jpg") (source: [0, 0, 75, 75]) (destination: [0, 0, 75, 75])
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[192, 192]: This
- [224, 192]: text
- [252, 192]: will
- [281, 192]: underlay
- [341, 192]: text1,
- [381, 192]: but
- [406, 192]: overlay
- [458, 192]: the
- [192, 211]: butterfly
- [251, 211]: image
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+ [227, 192]: text
+ [257, 192]: will
+ [284, 192]: underlay
+ [349, 192]: text1,
+ [393, 192]: but
+ [420, 192]: overlay
+ [192, 210]: the
+ [219, 210]: butterfly
+ [280, 210]: image
+Text: rgb(0,0,0) normal normal 400 16px Arial
[192, 192]: This
- [224, 192]: text
- [252, 192]: will
- [281, 192]: overlay
- [333, 192]: the
- [357, 192]: butterfly
- [416, 192]: image.
\ No newline at end of file
+ [227, 192]: text
+ [257, 192]: will
+ [284, 192]: overlay
+ [340, 192]: the
+ [366, 192]: butterfly
+ [428, 192]: image.
\ No newline at end of file
diff --git a/tests/reftests/zindex/z-index17.html b/tests/reftests/zindex/z-index17.html
index 4023e3e..a79d7bb 100644
--- a/tests/reftests/zindex/z-index17.html
+++ b/tests/reftests/zindex/z-index17.html
@@ -16,6 +16,9 @@
body {
background: violet;
}
+ body {
+ font-family: Arial;
+ }
diff --git a/tests/reftests/zindex/z-index17.txt b/tests/reftests/zindex/z-index17.txt
index 2079dee..3439543 100644
--- a/tests/reftests/zindex/z-index17.txt
+++ b/tests/reftests/zindex/z-index17.txt
@@ -5,9 +5,9 @@ Clip: Path (Vector(x: 8, y: 8) > Vector(x: 792, y: 8) > Vector(x: 792, y: 8) > V
Fill: rgb(238,130,238)
Clip: Path (Vector(x: 0, y: 0) > Vector(x: 800, y: 0) > Vector(x: 800, y: 100) > Vector(x: 0, y: 100))
Fill: rgb(85,107,47)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[0, 0]: fixed
- [37, 0]: z
- [44, 0]: -
- [49, 0]: index
- [89, 0]: 10
\ No newline at end of file
+ [38, 0]: z
+ [46, 0]: -
+ [52, 0]: index
+ [94, 0]: 10
\ No newline at end of file
diff --git a/tests/reftests/zindex/z-index18.html b/tests/reftests/zindex/z-index18.html
index 080b236..e81f5c6 100644
--- a/tests/reftests/zindex/z-index18.html
+++ b/tests/reftests/zindex/z-index18.html
@@ -57,6 +57,9 @@
width: 100px;
height: 100px;
}
+ body {
+ font-family: Arial;
+ }
diff --git a/tests/reftests/zindex/z-index18.txt b/tests/reftests/zindex/z-index18.txt
index 82400c5..6d4fb45 100644
--- a/tests/reftests/zindex/z-index18.txt
+++ b/tests/reftests/zindex/z-index18.txt
@@ -5,43 +5,43 @@ Clip: Path (Vector(x: 8, y: 8) > Vector(x: 792, y: 8) > Vector(x: 792, y: 308) >
Fill: rgb(238,130,238)
Clip: Path (Vector(x: 8, y: 8) > Vector(x: 808, y: 8) > Vector(x: 808, y: 308) > Vector(x: 8, y: 308))
Fill: rgb(0,128,0)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[8, 8]: a
Clip: Path (Vector(x: 8, y: 8) > Vector(x: 808, y: 8) > Vector(x: 808, y: 308) > Vector(x: 8, y: 308))
Fill: rgb(0,128,0)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[8, 8]: b
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[24, 18]: c
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[24, 18]: d
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[24, 18]: e
Clip: Path (Vector(x: 24, y: 18) > Vector(x: 824, y: 18) > Vector(x: 824, y: 318) > Vector(x: 24, y: 318))
Fill: rgb(255,0,0)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[24, 18]: f
Clip: Path (Vector(x: 24, y: 18) > Vector(x: 424, y: 18) > Vector(x: 424, y: 318) > Vector(x: 24, y: 318))
Fill: rgb(0,0,255)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[24, 18]: g
Clip: Path (Vector(x: 24, y: 18) > Vector(x: 224, y: 18) > Vector(x: 224, y: 218) > Vector(x: 24, y: 218))
Fill: rgb(255,165,0)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[24, 18]: h
Clip: Path (Vector(x: -24, y: 18) > Vector(x: 776, y: 18) > Vector(x: 776, y: 118) > Vector(x: -24, y: 118))
Fill: rgb(128,0,128)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[-24, 18]: i
Clip: Path (Vector(x: 24, y: 68) > Vector(x: 824, y: 68) > Vector(x: 824, y: 168) > Vector(x: 24, y: 168))
Fill: rgb(255,192,203)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[24, 68]: j
Clip: Path (Vector(x: 64, y: 98) > Vector(x: 864, y: 98) > Vector(x: 864, y: 198) > Vector(x: 64, y: 198))
Fill: rgb(0,0,128)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[64, 98]: k
Clip: Path (Vector(x: 24, y: 18) > Vector(x: 124, y: 18) > Vector(x: 124, y: 118) > Vector(x: 24, y: 118))
Fill: rgb(165,42,42)
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[24, 18]: l
\ No newline at end of file
diff --git a/tests/reftests/zindex/z-index3.txt b/tests/reftests/zindex/z-index3.txt
index 39fe563..39e93e2 100644
--- a/tests/reftests/zindex/z-index3.txt
+++ b/tests/reftests/zindex/z-index3.txt
@@ -52,15 +52,6 @@ Text: rgb(0,0,0) normal normal 400 12px Arial
Text: rgb(0,0,0) normal normal 700 12px Arial
[92, 74]: LEVEL
[134, 74]: #2
-Clip: Path (Vector(x: 197, y: 169) > Vector(x: 306, y: 169) > Vector(x: 306, y: 186) > Vector(x: 197, y: 186))
- Fill: rgb(221,221,255)
-Shape: rgb(0,0,153) Path (Vector(x: 197, y: 169) > Vector(x: 306, y: 169) > Vector(x: 304, y: 171) > Vector(x: 199, y: 171))
-Shape: rgb(0,0,153) Path (Vector(x: 306, y: 169) > Vector(x: 306, y: 186) > Vector(x: 304, y: 184) > Vector(x: 304, y: 171))
-Shape: rgb(0,0,153) Path (Vector(x: 306, y: 186) > Vector(x: 197, y: 186) > Vector(x: 199, y: 184) > Vector(x: 304, y: 184))
-Shape: rgb(0,0,153) Path (Vector(x: 197, y: 186) > Vector(x: 197, y: 169) > Vector(x: 199, y: 171) > Vector(x: 199, y: 184))
-Text: rgb(0,0,0) normal normal 700 12px Arial
- [204, 171]: LEVEL
- [246, 171]: #3
Clip: Path (Vector(x: 197, y: 81) > Vector(x: 306, y: 81) > Vector(x: 306, y: 98) > Vector(x: 197, y: 98))
Fill: rgb(221,221,255)
Shape: rgb(0,0,153) Path (Vector(x: 197, y: 81) > Vector(x: 306, y: 81) > Vector(x: 304, y: 83) > Vector(x: 199, y: 83))
@@ -70,6 +61,15 @@ Shape: rgb(0,0,153) Path (Vector(x: 197, y: 98) > Vector(x: 197, y: 81) > Vector
Text: rgb(0,0,0) normal normal 700 12px Arial
[204, 83]: LEVEL
[246, 83]: #3
+Clip: Path (Vector(x: 197, y: 98) > Vector(x: 306, y: 98) > Vector(x: 306, y: 116) > Vector(x: 197, y: 116))
+ Fill: rgb(221,221,255)
+Shape: rgb(0,0,153) Path (Vector(x: 197, y: 98) > Vector(x: 306, y: 98) > Vector(x: 304, y: 100) > Vector(x: 199, y: 100))
+Shape: rgb(0,0,153) Path (Vector(x: 306, y: 98) > Vector(x: 306, y: 116) > Vector(x: 304, y: 114) > Vector(x: 304, y: 100))
+Shape: rgb(0,0,153) Path (Vector(x: 306, y: 116) > Vector(x: 197, y: 116) > Vector(x: 199, y: 114) > Vector(x: 304, y: 114))
+Shape: rgb(0,0,153) Path (Vector(x: 197, y: 116) > Vector(x: 197, y: 98) > Vector(x: 199, y: 100) > Vector(x: 199, y: 114))
+Text: rgb(0,0,0) normal normal 700 12px Arial
+ [204, 100]: LEVEL
+ [246, 100]: #3
Clip: Path (Vector(x: 197, y: 116) > Vector(x: 306, y: 116) > Vector(x: 306, y: 134) > Vector(x: 197, y: 134))
Fill: rgb(221,221,255)
Shape: rgb(0,0,153) Path (Vector(x: 197, y: 116) > Vector(x: 306, y: 116) > Vector(x: 304, y: 118) > Vector(x: 199, y: 118))
@@ -97,15 +97,15 @@ Shape: rgb(0,0,153) Path (Vector(x: 197, y: 169) > Vector(x: 197, y: 151) > Vect
Text: rgb(0,0,0) normal normal 700 12px Arial
[204, 153]: LEVEL
[246, 153]: #3
-Clip: Path (Vector(x: 197, y: 98) > Vector(x: 306, y: 98) > Vector(x: 306, y: 116) > Vector(x: 197, y: 116))
+Clip: Path (Vector(x: 197, y: 169) > Vector(x: 306, y: 169) > Vector(x: 306, y: 186) > Vector(x: 197, y: 186))
Fill: rgb(221,221,255)
-Shape: rgb(0,0,153) Path (Vector(x: 197, y: 98) > Vector(x: 306, y: 98) > Vector(x: 304, y: 100) > Vector(x: 199, y: 100))
-Shape: rgb(0,0,153) Path (Vector(x: 306, y: 98) > Vector(x: 306, y: 116) > Vector(x: 304, y: 114) > Vector(x: 304, y: 100))
-Shape: rgb(0,0,153) Path (Vector(x: 306, y: 116) > Vector(x: 197, y: 116) > Vector(x: 199, y: 114) > Vector(x: 304, y: 114))
-Shape: rgb(0,0,153) Path (Vector(x: 197, y: 116) > Vector(x: 197, y: 98) > Vector(x: 199, y: 100) > Vector(x: 199, y: 114))
+Shape: rgb(0,0,153) Path (Vector(x: 197, y: 169) > Vector(x: 306, y: 169) > Vector(x: 304, y: 171) > Vector(x: 199, y: 171))
+Shape: rgb(0,0,153) Path (Vector(x: 306, y: 169) > Vector(x: 306, y: 186) > Vector(x: 304, y: 184) > Vector(x: 304, y: 171))
+Shape: rgb(0,0,153) Path (Vector(x: 306, y: 186) > Vector(x: 197, y: 186) > Vector(x: 199, y: 184) > Vector(x: 304, y: 184))
+Shape: rgb(0,0,153) Path (Vector(x: 197, y: 186) > Vector(x: 197, y: 169) > Vector(x: 199, y: 171) > Vector(x: 199, y: 184))
Text: rgb(0,0,0) normal normal 700 12px Arial
- [204, 100]: LEVEL
- [246, 100]: #3
+ [204, 171]: LEVEL
+ [246, 171]: #3
Clip: Path (Vector(x: 197, y: 186) > Vector(x: 306, y: 186) > Vector(x: 306, y: 204) > Vector(x: 197, y: 204))
Fill: rgb(221,221,255)
Shape: rgb(0,0,153) Path (Vector(x: 197, y: 186) > Vector(x: 306, y: 186) > Vector(x: 304, y: 188) > Vector(x: 199, y: 188))
diff --git a/tests/reftests/zindex/z-index4.html b/tests/reftests/zindex/z-index4.html
index 3e0b95b..178488e 100644
--- a/tests/reftests/zindex/z-index4.html
+++ b/tests/reftests/zindex/z-index4.html
@@ -21,7 +21,11 @@
background-color: #ffdddd;
z-index: -1;
}
-
+
+ body {
+ font-family: Arial;
+ }
+
diff --git a/tests/reftests/zindex/z-index4.txt b/tests/reftests/zindex/z-index4.txt
index 893c7f1..6c9b6b1 100644
--- a/tests/reftests/zindex/z-index4.txt
+++ b/tests/reftests/zindex/z-index4.txt
@@ -9,15 +9,15 @@ Shape: rgb(102,153,102) Path (Vector(x: 8, y: 8) > Vector(x: 267, y: 8) > Vector
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 8) > Vector(x: 267, y: 82) > Vector(x: 265, y: 80) > Vector(x: 265, y: 10))
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 82) > Vector(x: 8, y: 82) > Vector(x: 10, y: 80) > Vector(x: 265, y: 80))
Shape: rgb(102,153,102) Path (Vector(x: 8, y: 82) > Vector(x: 8, y: 8) > Vector(x: 10, y: 10) > Vector(x: 10, y: 80))
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[15, 10]: LEVEL
- [70, 10]: #1
+ [69, 10]: #1
Clip: Path (Vector(x: 8, y: 82) > Vector(x: 267, y: 82) > Vector(x: 267, y: 156) > Vector(x: 8, y: 156))
Fill: rgb(204,255,204)
Shape: rgb(102,153,102) Path (Vector(x: 8, y: 82) > Vector(x: 267, y: 82) > Vector(x: 265, y: 84) > Vector(x: 10, y: 84))
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 82) > Vector(x: 267, y: 156) > Vector(x: 265, y: 154) > Vector(x: 265, y: 84))
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 156) > Vector(x: 8, y: 156) > Vector(x: 10, y: 154) > Vector(x: 265, y: 154))
Shape: rgb(102,153,102) Path (Vector(x: 8, y: 156) > Vector(x: 8, y: 82) > Vector(x: 10, y: 84) > Vector(x: 10, y: 154))
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[15, 84]: LEVEL
- [70, 84]: #1
\ No newline at end of file
+ [69, 84]: #1
\ No newline at end of file
diff --git a/tests/reftests/zindex/z-index5.html b/tests/reftests/zindex/z-index5.html
index 960c7fc..25c8ae6 100644
--- a/tests/reftests/zindex/z-index5.html
+++ b/tests/reftests/zindex/z-index5.html
@@ -20,6 +20,9 @@
width: 250px;
background-color: #ffdddd;
}
+ body {
+ font-family: Arial;
+ }
diff --git a/tests/reftests/zindex/z-index5.txt b/tests/reftests/zindex/z-index5.txt
index 62a1caa..a1480be 100644
--- a/tests/reftests/zindex/z-index5.txt
+++ b/tests/reftests/zindex/z-index5.txt
@@ -7,9 +7,9 @@ Shape: rgb(102,153,102) Path (Vector(x: 8, y: 8) > Vector(x: 267, y: 8) > Vector
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 8) > Vector(x: 267, y: 82) > Vector(x: 265, y: 80) > Vector(x: 265, y: 10))
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 82) > Vector(x: 8, y: 82) > Vector(x: 10, y: 80) > Vector(x: 265, y: 80))
Shape: rgb(102,153,102) Path (Vector(x: 8, y: 82) > Vector(x: 8, y: 8) > Vector(x: 10, y: 10) > Vector(x: 10, y: 80))
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[15, 10]: LEVEL
- [70, 10]: #1
+ [69, 10]: #1
Clip: Path (Vector(x: 8, y: 0) > Vector(x: 258, y: 0) > Vector(x: 258, y: 600) > Vector(x: 8, y: 600))
Fill: rgb(255,221,221)
Clip: Path (Vector(x: 8, y: 82) > Vector(x: 267, y: 82) > Vector(x: 267, y: 156) > Vector(x: 8, y: 156))
@@ -18,6 +18,6 @@ Shape: rgb(102,153,102) Path (Vector(x: 8, y: 82) > Vector(x: 267, y: 82) > Vect
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 82) > Vector(x: 267, y: 156) > Vector(x: 265, y: 154) > Vector(x: 265, y: 84))
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 156) > Vector(x: 8, y: 156) > Vector(x: 10, y: 154) > Vector(x: 265, y: 154))
Shape: rgb(102,153,102) Path (Vector(x: 8, y: 156) > Vector(x: 8, y: 82) > Vector(x: 10, y: 84) > Vector(x: 10, y: 154))
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[15, 84]: LEVEL
- [70, 84]: #1
\ No newline at end of file
+ [69, 84]: #1
\ No newline at end of file
diff --git a/tests/reftests/zindex/z-index6.html b/tests/reftests/zindex/z-index6.html
index 2b7073f..83774c4 100644
--- a/tests/reftests/zindex/z-index6.html
+++ b/tests/reftests/zindex/z-index6.html
@@ -23,6 +23,9 @@
div.z1 {
z-index: 1;
}
+ body {
+ font-family: Arial;
+ }
diff --git a/tests/reftests/zindex/z-index6.txt b/tests/reftests/zindex/z-index6.txt
index cf8146e..349cffe 100644
--- a/tests/reftests/zindex/z-index6.txt
+++ b/tests/reftests/zindex/z-index6.txt
@@ -7,9 +7,9 @@ Shape: rgb(102,153,102) Path (Vector(x: 28, y: 113) > Vector(x: 287, y: 113) > V
Shape: rgb(102,153,102) Path (Vector(x: 287, y: 113) > Vector(x: 287, y: 187) > Vector(x: 285, y: 185) > Vector(x: 285, y: 115))
Shape: rgb(102,153,102) Path (Vector(x: 287, y: 187) > Vector(x: 28, y: 187) > Vector(x: 30, y: 185) > Vector(x: 285, y: 185))
Shape: rgb(102,153,102) Path (Vector(x: 28, y: 187) > Vector(x: 28, y: 113) > Vector(x: 30, y: 115) > Vector(x: 30, y: 185))
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[35, 115]: z
- [42, 115]: -
+ [43, 115]: -
[48, 115]: index:0
Clip: Path (Vector(x: 8, y: 82) > Vector(x: 267, y: 82) > Vector(x: 267, y: 156) > Vector(x: 8, y: 156))
Fill: rgb(204,255,204)
@@ -17,18 +17,18 @@ Shape: rgb(102,153,102) Path (Vector(x: 8, y: 82) > Vector(x: 267, y: 82) > Vect
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 82) > Vector(x: 267, y: 156) > Vector(x: 265, y: 154) > Vector(x: 265, y: 84))
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 156) > Vector(x: 8, y: 156) > Vector(x: 10, y: 154) > Vector(x: 265, y: 154))
Shape: rgb(102,153,102) Path (Vector(x: 8, y: 156) > Vector(x: 8, y: 82) > Vector(x: 10, y: 84) > Vector(x: 10, y: 154))
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[15, 84]: default
- [64, 84]: z
- [70, 84]: -
- [76, 84]: index
+ [68, 84]: z
+ [76, 84]: -
+ [81, 84]: index
Clip: Path (Vector(x: 8, y: 156) > Vector(x: 267, y: 156) > Vector(x: 267, y: 230) > Vector(x: 8, y: 230))
Fill: rgb(204,255,204)
Shape: rgb(102,153,102) Path (Vector(x: 8, y: 156) > Vector(x: 267, y: 156) > Vector(x: 265, y: 158) > Vector(x: 10, y: 158))
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 156) > Vector(x: 267, y: 230) > Vector(x: 265, y: 228) > Vector(x: 265, y: 158))
Shape: rgb(102,153,102) Path (Vector(x: 267, y: 230) > Vector(x: 8, y: 230) > Vector(x: 10, y: 228) > Vector(x: 265, y: 228))
Shape: rgb(102,153,102) Path (Vector(x: 8, y: 230) > Vector(x: 8, y: 156) > Vector(x: 10, y: 158) > Vector(x: 10, y: 228))
-Text: rgb(0,0,0) normal normal 400 16px Times New Roman
+Text: rgb(0,0,0) normal normal 400 16px Arial
[15, 158]: z
- [22, 158]: -
+ [23, 158]: -
[28, 158]: index:1
\ No newline at end of file
diff --git a/tests/test.js b/tests/test.js
index 86fc8aa..55e378f 100644
--- a/tests/test.js
+++ b/tests/test.js
@@ -40,7 +40,9 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1;
promise.then(function(output) {
var canvas = Array.isArray(targets) ? output[0] : output;
if (Array.isArray(targets)) {
- console.log(output[1]);
+ console.log(output[1].split('\n').map(function(line, i) {
+ return (i + 1) + ':' + line;
+ }).join('\n'));
}
var $canvas = $(canvas),
finishTime = new Date();
diff --git a/tests/testrunner.js b/tests/testrunner.js
index 3fb82bf..fb7b4e8 100644
--- a/tests/testrunner.js
+++ b/tests/testrunner.js
@@ -177,8 +177,8 @@ const assertPath = (result, expected, desc) => {
break;
case 'Transform':
- expect(RESULT.x).to.be.closeTo(args.x, 5, `${desc} x`);
- expect(RESULT.y).to.be.closeTo(args.y, 5, `${desc} y`);
+ expect(RESULT.x).to.be.closeTo(args.x, 10, `${desc} x`);
+ expect(RESULT.y).to.be.closeTo(args.y, 10, `${desc} y`);
expect(RESULT.matrix).to.equal(
args.matrix,
`${desc} matrix`
@@ -186,8 +186,8 @@ const assertPath = (result, expected, desc) => {
break;
case 'Repeat':
- expect(RESULT.x).to.be.closeTo(args.x, 5, `${desc} x`);
- expect(RESULT.y).to.be.closeTo(args.y, 5, `${desc} y`);
+ expect(RESULT.x).to.be.closeTo(args.x, 10, `${desc} x`);
+ expect(RESULT.y).to.be.closeTo(args.y, 10, `${desc} y`);
expect(RESULT.width).to.equal(
args.width,
`${desc} width`
@@ -204,8 +204,8 @@ const assertPath = (result, expected, desc) => {
break;
case 'Gradient':
- expect(RESULT.x).to.be.closeTo(args.x, 5, `${desc} x`);
- expect(RESULT.y).to.be.closeTo(args.y, 5, `${desc} y`);
+ expect(RESULT.x).to.be.closeTo(args.x, 10, `${desc} x`);
+ expect(RESULT.y).to.be.closeTo(args.y, 10, `${desc} y`);
expect(RESULT.x0).to.be.closeTo(
args.x0,
5,