Forum Feature requests

box-shadow

freelab
Hi there,

I have seen you have recently included text-shadow. Do you think box-shadow will be released soon?

Cheers
mikeday
Currently we don't support text-shadow or box-shadow. These effects are difficult to implement in a resolution-independent PDF, as they typically require rendering the text or box to a bitmap image and then applying filter effects to that, which makes the PDF bigger and can look pixelated. We may be able to simulate box-shadow with clever use of gradients, but this will have to wait until we have time.
freelab
Thanks for letting me know. What about border-radius? That would be great also. Would allow us to create some really beautiful looking documents.
mikeday
Actually Prince already supports border-radius, since 2007. :)
zambadu
Does it supports box-shadow now? :)
Need them, too.

Edited by zambadu

mikeday
Not yet, as described above it's a bit tricky to do well in PDF, and we have been focusing on other features.
ppkrauss
Some possible dates on the road-map?
ppkrauss
Bug? A workaround (below) shows a tiny ~1px line at img margin-top, that not occurs with Firefox or Chrome.
	figure{
		background-color: #EEA;
		text-align: center;
	}
	img {
		padding: 6px 0px 4px 4px;
		margin:0 0 0 0;
		background: -webkit-linear-gradient(#EEA, rgba(55,55,55,0.42));
		background: -moz-linear-gradient(#EEA, rgba(55,55,55,0.42)); 
		background: linear-gradient(#EEA, rgba(55,55,55,0.42));
		width:95%;
	}
mikeday
Good news: the latest build now supports box-shadow!
zambadu
Yeah! No I need money to afford the latest build :)