Comments (4)
Can you post an HTML file with the CSS embedded that shows what's wrong (and what you expect the image to look like... maybe a screen-capture of FireFox and Chrome)
from dom-to-image-more.
Display html in the browser.
Export images on firefox are like dom
Exporting the image on the chorme will look like this
i use translate.
Please tell me anyone if there is any sollution for it. đ
from dom-to-image-more.
@Quang-Khoa
try this in your script file:
const _serializeToString = XMLSerializer.prototype.serializeToString;
XMLSerializer.prototype.serializeToString = function (node) {
var str = _serializeToString.call(this, node);
str = str.replace(/background-image:/g, '-webkit-background-clip: text; background-image:',);
return str
};
from dom-to-image-more.
I would love an HTML and CSS to reproduce this error so I can fix it.
from dom-to-image-more.
Related Issues (20)
- In Firefox, if svg images are used for background/background-image properties they render correctly only when the page is refreshed HOT 1
- newest webkit-mask is not working HOT 1
- failing to create image at some times HOT 8
- preserve-3d HOT 1
- Node is not defined error
- Node and window is not defined when building @carbon/charts HOT 16
- bunch of font api calls, it makes performance issue. HOT 1
- The regular expression matching in the urlAsRegex() function seems different from the old version, is bug ?
- When I use SVG in my DOM, there is no SVGâs icon in the exported picture HOT 7
- Safari aleatory result HOT 5
- backdrop-filter() gets ignored
- youtube video with react player is giving black screen while capturing with domtoimage HOT 2
- Can I use this library without npm or module? Just plain html HOT 2
- On firefox toPng returns empty image HOT 1
- make it posible to shift
- Icon to image display failed HOT 1
- TypeError: Cannot read properties of undefined (reading 'setProperty')
- Error using toPng with extra quote in HTML
- The internal picture is blank HOT 2
- border HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dom-to-image-more.