diff --git a/package-lock.json b/package-lock.json
index 92e1b2afa..87966c36f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5,10 +5,10 @@
"requires": true,
"packages": {
"": {
- "version": "1.1.0",
+ "version": "1.1.4",
"license": "MIT",
"dependencies": {
- "css-line-break": "1.1.1"
+ "css-line-break": "2.0.0"
},
"devDependencies": {
"@babel/cli": "^7.4.3",
@@ -8630,9 +8630,9 @@
}
},
"node_modules/css-line-break": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-1.1.1.tgz",
- "integrity": "sha512-1feNVaM4Fyzdj4mKPIQNL2n70MmuYzAXZ1aytlROFX1JsOo070OsugwGjj7nl6jnDJWHDM8zRZswkmeYVWZJQA==",
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-2.0.0.tgz",
+ "integrity": "sha512-zEKNpyrJHt4R3qAXLTdJkJc7F/4dkNWG+ij2CHF6/o346QJ6GSjD+oaKOUQoibOy0Wvl3F8IYdEEx3yb/+rdJw==",
"dependencies": {
"base64-arraybuffer": "^0.2.0"
}
@@ -32811,9 +32811,9 @@
}
},
"css-line-break": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-1.1.1.tgz",
- "integrity": "sha512-1feNVaM4Fyzdj4mKPIQNL2n70MmuYzAXZ1aytlROFX1JsOo070OsugwGjj7nl6jnDJWHDM8zRZswkmeYVWZJQA==",
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-2.0.0.tgz",
+ "integrity": "sha512-zEKNpyrJHt4R3qAXLTdJkJc7F/4dkNWG+ij2CHF6/o346QJ6GSjD+oaKOUQoibOy0Wvl3F8IYdEEx3yb/+rdJw==",
"requires": {
"base64-arraybuffer": "^0.2.0"
}
diff --git a/package.json b/package.json
index 3dbd83bfd..35e45f532 100644
--- a/package.json
+++ b/package.json
@@ -118,6 +118,6 @@
"homepage": "https://html2canvas.hertzen.com",
"license": "MIT",
"dependencies": {
- "css-line-break": "1.1.1"
+ "css-line-break": "2.0.0"
}
}
diff --git a/tests/reftests/text/text.html b/tests/reftests/text/text.html
index a6b163234..5970a9947 100644
--- a/tests/reftests/text/text.html
+++ b/tests/reftests/text/text.html
@@ -88,58 +88,66 @@
Verdana
text-decoration:overline;
text-decoration:line-through;
+
+ - text-decoration:none;
+ - text-decoration:underline;
+ - text-decoration:overline;
+ - text-decoration:line-through;
+
+
+ - text-decoration:none;
+ - text-decoration:underline;
+ - text-decoration:overline;
+ - text-decoration:line-through;
+
+
+
+
Tahoma
+
+ - text-decoration:none;
+ - text-decoration:underline;
+ - text-decoration:overline;
+ - text-decoration:line-through;
+
+
+
+ - text-decoration:none;
+ - text-decoration:underline;
+ - text-decoration:overline;
+ - text-decoration:line-through;
+
+
+ - text-decoration:none;
+ - text-decoration:underline;
+ - text-decoration:overline;
+ - text-decoration:line-through;
+
+
-
- [AB / CD]
-
-
-
-
Tahoma
-
- - text-decoration:none;
- - text-decoration:underline;
- - text-decoration:overline;
- - text-decoration:line-through;
-
-
-
- - text-decoration:none;
- - text-decoration:underline;
- - text-decoration:overline;
- - text-decoration:line-through;
-
-
- - text-decoration:none;
- - text-decoration:underline;
- - text-decoration:overline;
- - text-decoration:line-through;
-
-
-
- <h2> text-transform
-
- - text-transform:none;
- - text-transform: capitalize; (including foreign characters such as Öaäå)
-
- - text-transform:uppercase;
- - text-transform:lowercase;
-
- <h3> misc text alignments
-
- - word-spacing:5px; (as each letter is rendered individually, the bounds will always
- be correct)
-
- - line-height:35px;
(same goes for line-height)
- - letter-spacing:5px;
- - letter-spacing:0.9px;
- - text-align:right;width:300px;
- - font-variant:small-caps;
-
-
- npm install --save html2canvas
-
- [AB / CD]
-
+<h2> text-transform
+
+ - text-transform:none;
+ - text-transform: capitalize; (including foreign characters such as Öaäå)
+
+ - text-transform:uppercase;
+ - text-transform:lowercase;
+
+<h3> misc text alignments
+
+ - word-spacing:5px; (as each letter is rendered individually, the bounds will always
+ be correct)
+
+ - line-height:35px;
(same goes for line-height)
+ - letter-spacing:5px;
+ - letter-spacing:0.9px;
+ - text-align:right;width:300px;
+ - font-variant:small-caps;
+
+
+npm install --save html2canvas
+
+ [AB / CD]
+Emojis 🤷🏾♂️👨👩👧👦 :)