We used below html as input to generate the pdf :
<html>
<head>
<title>Test for Inline style and CSS support </title>
</head>
<body>
<p style="text-align: center; font-size: 20pt;">
<span style="background-color:yellow;">Your Name</span>
<span>Your Area</span>
</p>
</body>
</html>
The pdf that is generated failed to maintain the center alignment of 1st span. The second span was correctly center aligned.
Please find attached pdf for the same.
Regards,
Saurabh