Hi pzolja,
what do you mean by saved? Using the example above, I insert a new layer, click right button, properties, change the border to 5px solid and set a color. I Close the dialog and click Show HMTL, and the data returned has the correct style properties.
Ady