-
-
Notifications
You must be signed in to change notification settings - Fork 159
Description
Version of Marp Tool
@marp-team/marp-cli v4.0.0 (w/ @marp-team/marp-core v4.0.0)
Operating System
macOS
Environment
- OS version: macOS Sonoma 14.5
- Node.js version: Marp CLI 4.0.0, Node.js v22.10.0
- Chrome: Version 130.0.6723.117 (Official Build) (arm64)
How to reproduce
- Create a theme with the text-shadow effect, like
:root {
--bg-color: #000000;
}
section {
text-shadow: 1px 1px 5px var(--bg-color), 0px 0px 5px var(--bg-color), 1px 2px 10px var(--bg-color), -1px -1px 10px var(--bg-color), 2px 3px 10px var(--bg-color);
}
-
Generate HTML slides
-
Generate PPTX slides
-
Generate JPEG slides
-
Generate PDF slides
-
Create a theme with the text-shadow effect and some background color or background image, like
:root {
--bg-color: #000000;
--blue: rgb(84, 104, 237);
--green: rgb(211, 221, 80);
}
section {
text-shadow: 1px 1px 5px var(--bg-color), 0px 0px 5px var(--bg-color), 1px 2px 10px var(--bg-color), -1px -1px 10px var(--bg-color), 2px 3px 10px var(--bg-color);
}
strong {
background-color: var(--blue);
font-style: normal;
}
em {
background-color: var(--green);
color: var(--bg-color);
font-style: normal;
}
- Generate HTML slides
- Generate PPTX slides
- Generate JPEG slides
- Generate PDF slides
Expected behavior
3-6. Texts will have a small shadow, but not the strong solid background
8-11. Texts will have a small shadow, but not the strong black background
Actual behavior
3-6. Texts have a small shadow for HTML, PPTX, JPEG, PDF formats
8-10. Texts have a small shadow for HTML, PPTX, JPEG formats

- Texts have the strong black solid background for the PDF format

Additional information
It is a Chrome issue. It worked well two years ago with Chrome 100, but not now.
The workaround is -- don't use background-image or background-color with the text-shadow. I don't use the text-shadow anymore, because I would like to use some backgrounds