mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Merge branch 'patch-1' of github.com:bensho/html2canvas into bensho-patch-1
This commit is contained in:
commit
6201e09118
@ -77,6 +77,9 @@ _html2canvas.Parse = function (images, options, cb) {
|
|||||||
for (i = 0, j = classes.length; i < j; i++) {
|
for (i = 0, j = classes.length; i < j; i++) {
|
||||||
classes[i] = classes[i].match(/(^[^:]*)/)[1];
|
classes[i] = classes[i].match(/(^[^:]*)/)[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// remove empty values, if not could cause invalid selectors with querySelectorAll
|
||||||
|
classes = classes.filter(function (n) { return n });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Using the list of elements we know how pseudo el styles, create fake pseudo elements.
|
// Using the list of elements we know how pseudo el styles, create fake pseudo elements.
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<script type="text/javascript" src="../test.js"></script>
|
<script type="text/javascript" src="../test.js"></script>
|
||||||
<style>
|
<style>
|
||||||
|
:root .text *::before {
|
||||||
|
content:" root before!";
|
||||||
|
}
|
||||||
|
|
||||||
.text *::before {
|
.text *::before {
|
||||||
content:" before!";
|
content:" before!";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user