How to rotate a photo in FireMonkey TWebBrowser


I just tried FMX TWebBrowser in Delphi 10.3.3. I could not rotate a photo in img tag. The following page is working in Google Chrome. But it is not working in FireMonkey TWebBrowser of Delphi 10.3.3. What is wrong? Please someone help me!
<!DOCTYPE html>
img {
display: block;
width: 300px;
height: auto;

<button onclick="rotate();">Rotate 90 degrees</button>
<br />
<img src="20190228-1.JPG" id="theID" />

function rotate() {
var imgX=document.getElementById("theID"); = "rotate(90deg)"; = "block";


Comments are closed.