Closed mliebelt closed 2 years ago
The experiment of setting pieceStyle
by HTML/CSS was strange:
body
element overwrites all other. You cannot change it later, nor by more local styles (in the div or below), not by setting it in the configuration. That seems to be a feature of Chessground (which I was not aware of).div
element works well.Checking again, this is only true for pieceStyle == merida. I have no explanation for that, will extract that to a different ticket.
I have the impression (not yet proved) that not all configuration can be left out, and get a useful working of the viewer then. For example, there is the possibility to set the
pieceStyle
ortheme
by setting a class in an inclosingdiv
(which may be a bad idea either), but how does that work together with defaults, global defaults, left-out configuration parameters?Check that this works in all circumstances, and decide what are reasonable defaults, which then are overwritten by configuration or global configuration
351
352