Open Cloudius opened 6 years ago
The macro that generates the list of classes doesn't seem to work properly in ScalaFiddle (hard to say why). A quick workaround is to manually list your CSS classes like this,
override def styleSheetText =
List(cell, strong, table).map(_.structure.stringify(Nil)).mkString("\n")
When calling
styleSheetText
, e.g. to generated a<style>
element, this function gives an emptyString
while when applied in a non ScalaFiddle environment this function works. In a server-based (JVM) and a standalone Scala.js client application the style text is right generated.An example is found here -template adjusted- with a working work around (hand-made css). By commenting out the overridden
styleSheetText
function the desired situation is achieved. However in ScalaFiddle there is no style text put between the tags.Findings:
styleSheetText
returns an emptyString
.List
in the ScalaFiddle case, while in other case a non-emptyList
will be returned.allClasses0
must be (re-)set toSome(() => sourceClasses.value(this))
I hope the problem will be recognized, so an solution should be possible soon.