JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.04k stars 1.16k forks source link

SVG doesn't support CSS classes (the image is black) #1217

Closed RedStoneCats101 closed 2 weeks ago

RedStoneCats101 commented 3 years ago

.svg is drawn incorrectly, IntelliJ displays it properly, .png works fine (Mac OS intel)

kotlin("jvm") version "1.5.31" id("org.jetbrains.compose") version "1.0.0-alpha4-build366"

svg

bug image image

igordmn commented 3 years ago

Yeah, it is the known bug in Skia.

It doesn't support CSS classes at the moment.

Workaround is to inject all CSS classes into style attributes.

RedStoneCats101 commented 3 years ago

ok thanks

RedStoneCats101 commented 3 years ago

Exporting using inline styling worked for me

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.