mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add foreignObjectRendering option
This commit is contained in:
@ -115,12 +115,16 @@ const assertPath = (result, expected, desc) => {
|
||||
});
|
||||
it('Should render untainted canvas', () => {
|
||||
return testContainer.contentWindow
|
||||
.html2canvas(testContainer.contentWindow.forceElement || testContainer.contentWindow.document.documentElement, {
|
||||
removeContainer: true,
|
||||
backgroundColor: '#ffffff',
|
||||
proxy: 'http://localhost:8081/proxy',
|
||||
...(testContainer.contentWindow.h2cOptions || {})
|
||||
})
|
||||
.html2canvas(
|
||||
testContainer.contentWindow.forceElement ||
|
||||
testContainer.contentWindow.document.documentElement,
|
||||
{
|
||||
removeContainer: true,
|
||||
backgroundColor: '#ffffff',
|
||||
proxy: 'http://localhost:8081/proxy',
|
||||
...(testContainer.contentWindow.h2cOptions || {})
|
||||
}
|
||||
)
|
||||
.then(canvas => {
|
||||
try {
|
||||
canvas
|
||||
|
Reference in New Issue
Block a user