Thank you for the explanation. I thought that I can mix different styles in the Text object. Now it is clear that I just created an unhandled case. For me it was very strange that it affected national specific characters only. Several times I also met an issue when the text object lost all those characters, so for example "Řešení" changed to "?e?en?". I can't reproduce the error easily, but it was related to a situation when I used the heading styling to some text and then I removed formatting. And one last thing, when I wanted to use inline SVG in style sheet using HTML object (CSS in media query), it broke all styling. When I insert into HTML object something like this:
Code: Select all
.sample {
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><linearGradient id='gradient'><stop offset='10%' stop-color='%23F00'/><stop offset='90%' stop-color='%23fcc'/> </linearGradient><rect fill='url(%23gradient)' x='0' y='0' width='100%' height='100%'/></svg>") !important;
}
The code above will cause a corruption of generated CSS and will skip the remaining content of the HTML object.
When I use apostrophes instead of quotes, i.e.:
Code: Select all
.sample {
background-image: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'10\' height=\'10\'><linearGradient id=\'gradient\'><stop offset=\'10%\' stop-color=\'%23F00\'/><stop offset=\'90%\' stop-color=\'%23fcc\'/> </linearGradient><rect fill=\'url(%23gradient)\' x=\'0\' y=\'0\' width=\'100%\' height=\'100%\'/></svg>') !important;
}
The code above will break the CSS code after semicolon character, so the result is also invalid, although the browser is able to process other CSS commands.
The only way how to get a proper result is to use custom styling in the object and to avoid using quotes.
Please, see the updated sample project
https://rke.cz/Sample.wbs