Commit Graph

1069 Commits

Author SHA1 Message Date
Sebastien Ponce
f7a3566f22 DO NOT MERGE : bad workaroud to remaning bug
This adds a sleep in renderReplacedElement so that drawimage works properly when the fix to svg files is used.
Without that, it looks like drawImage fires too fast and the fix is not yet done (code is async here)
So far I did not find out where I messed up with async code. Any help would be welcome !
2023-01-12 18:29:29 +01:00
Sebastien Ponce
9bc852f9f5 Fixed handling of svg images with no width/height attributes
Such images were not appearing in resulting canvas when using firefox.
The details of the problem are explained in https://bugzilla.mozilla.org/show_bug.cgi?id=700533 and https://webcompat.com/issues/64352
but a rough summary is that firefox won't render svg with no width/height attribute via drawImage.
This fix thus recreates the missing attributes from the viewport one when they are missing
2023-01-12 18:29:13 +01:00
Sebastien Ponce
007a73293a Added test of external svg with no width/height attribute 2023-01-12 18:19:57 +01:00
Niklas von Hertzen
6020386bbe
examples: fix duplication (#2813) 2022-01-23 00:27:44 +08:00
Niklas von Hertzen
f7c2289db1
Update CHANGELOG.md 2022-01-23 00:24:05 +08:00
CI
7c3269bdbe chore(release): 1.4.1 2022-01-22 16:19:57 +00:00
MoyuScript
e587a82dca
fix: Properties x and y of BoundingRect is undefined in old browser (#2797) 2022-01-23 00:18:49 +08:00
Niklas von Hertzen
67c5e8dec4
deps: fix source maps (#2812) 2022-01-23 00:17:25 +08:00
Niklas von Hertzen
181d1b1103
feat: add support for <video> elements (#2788) 2022-01-02 16:14:27 +08:00
Niklas von Hertzen
46db86755f
fix: source maps (#2787) 2022-01-02 16:08:10 +08:00
CI
9fda3e1ede chore(release): 1.4.0 2022-01-01 15:08:48 +00:00
Niklas von Hertzen
6521a487d7
feat: use native text segmenter where available (#2782) 2022-01-01 21:22:31 +08:00
Niklas von Hertzen
0476d06515
fix: ios text wrapping with 0 width rect (#2786) 2022-01-01 13:07:52 +08:00
Niklas von Hertzen
74696faf47
fix: adopted stylesheets (#2785) 2022-01-01 01:57:17 +08:00
Niklas von Hertzen
1cc853a318
fix: reduce SLICE_STACK_SIZE to 50k (#2784) 2021-12-31 15:30:18 +08:00
CI
04787ee88a chore(release): 1.3.4 2021-12-29 14:11:55 +00:00
Niklas von Hertzen
ba2b1cd8e9
fix: ios 15 font rendering crash (#2645) 2021-12-29 22:09:32 +08:00
Niklas von Hertzen
d9222075da
ci: add ios 15.0 testing (#2780) 2021-12-29 21:02:16 +08:00
CI
101c32ed71 chore(release): 1.3.3 2021-11-23 10:09:40 +00:00
Niklas von Hertzen
ddffaecf6d
add missing changelog entries for 1.0.0 (#2758) 2021-11-23 17:47:45 +08:00
Daniel Santos
fd22a01a3c
fix: "offsets" text when font is big 2021-11-23 17:32:41 +08:00
Niklas von Hertzen
ed57781594
ci: fix macos action runners (#2757) 2021-11-23 17:17:51 +08:00
Niklas von Hertzen
eeda86bd5e
fix: const enums (#2651) 2021-08-16 19:30:33 +08:00
CI
0b1f0a7e90 chore(release): 1.3.2 2021-08-15 12:54:26 +00:00
Niklas von Hertzen
38c682955a
fix: overflows with absolutely positioned content (#2663) 2021-08-15 19:41:57 +08:00
Niklas von Hertzen
01ed87907a
docs: add warning for webgl cloning with preserveDrawingBuffer=false (#2661) 2021-08-14 17:18:30 +08:00
Niklas von Hertzen
58ff0003f7
docs: include src files on www (#2660) 2021-08-14 16:48:22 +08:00
Niklas von Hertzen
f143166551
fix: disable transition properties (#2659) 2021-08-14 16:22:36 +08:00
Niklas von Hertzen
cd0d7258c3
feat: add support for data-html2canvas-debug property for debugging (#2658) 2021-08-14 15:01:41 +08:00
CI
b482725994 chore(release): 1.3.1 2021-08-14 06:06:09 +00:00
Niklas von Hertzen
1b55ed5668
fix: multi arg transition/animation duration (#2657) 2021-08-14 14:05:15 +08:00
CI
68377b3244 chore(release): 1.3.0 2021-08-13 11:52:05 +00:00
Niklas von Hertzen
6947982848
feat: add rtl render support (#2653) 2021-08-13 19:50:59 +08:00
Niklas von Hertzen
437b367d3b
feat: correctly break graphemes (#2652) 2021-08-13 18:57:49 +08:00
Niklas von Hertzen
969638fb94
fix: finish animation/transitions for elements (#2632) 2021-08-13 18:15:55 +08:00
Niklas von Hertzen
f919204efa
test: add letter-spacing test for zwj emoji (#2650) 2021-08-13 17:45:42 +08:00
Niklas von Hertzen
c378e22069
fix: correctly handle allowTaint canvas cloning (#2649) 2021-08-13 17:32:55 +08:00
CI
2b4de68e92 chore(release): 1.2.2 2021-08-10 10:39:01 +00:00
Niklas von Hertzen
1941b9e0ac
fix: parsing counter content in pseudo element (#2640) 2021-08-09 18:43:42 +08:00
Niklas von Hertzen
e429e0443a
ci: add ios15 target (#2564) 2021-08-09 17:15:00 +08:00
Niklas von Hertzen
f43f942fcd
fix: test for ios range line break error (#2635) 2021-08-09 17:14:40 +08:00
Niklas von Hertzen
7a06d0c2c2
docs: update test previewer (#2637) 2021-08-07 18:05:08 +08:00
Niklas von Hertzen
e36408ad03
test: large base64 encoded background (#2636) 2021-08-07 15:47:15 +08:00
Niklas von Hertzen
a0dd38a8be
fix: radial gradient ry check (#2631) 2021-08-05 14:07:10 +08:00
CI
b988d9d657 chore(release): 1.2.1 2021-08-05 02:39:44 +00:00
Niklas von Hertzen
c5c6fa00d7
fix: type import that is only available ts 3.8 or higher (#2629) 2021-08-05 10:17:30 +08:00
Niklas von Hertzen
6651fc6789
fix: none image (#2627) 2021-08-05 09:30:22 +08:00
CI
df223c3ff2 chore(release): 1.2.0 2021-08-04 15:00:38 +00:00
Niklas von Hertzen
95a46b00c5
fix: overflow-wrap break-word (#2626) 2021-08-04 22:53:48 +08:00
Niklas von Hertzen
878e37a242
fix: element cropping & scrolling (#2625) 2021-08-04 20:58:17 +08:00