Still struggling to understand what is going on.
I have opened the TMSWeb_Themes demo.
Added a WebImageControl
set its ElementClassName = img2
Added the .img css to bluevoltage/theme.css
procedure TForm3.WebFormCreate(Sender: TObject);
begin
WebListcontrol1.ItemIndex := 0;
Application.InsertCSS('themecss','bluevoltage/theme.css');
end;
CSS is
.img2 {
-webkit-box-reflect: below 0px -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), color-stop(0.9, transparent), to(rgba(255, 255, 255, 0.5))) !important;
box-shadow: rgb(0 0 0) 4px 3px 5px;
border-radius: 16px;
background-repeat: no-repeat;
}
When I run this I don't see the css applied to the image. The same procedure works in my app.