Skip Menu |

This queue is for tickets about the CSS-Inliner CPAN distribution.

Report information
The Basics
Id: 110360
Status: new
Priority: 0/
Queue: CSS-Inliner

People
Owner: Nobody in particular
Requestors: dominique [...] mailermailer.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Inliner Version 4002 Font-Family Bug
Date: Tue, 15 Dec 2015 11:07:27 -0500
To: bug-css-inliner [...] rt.cpan.org
From: Dominique Graham <dominique [...] mailermailer.com>
When a font-family is inlined from a .css file or a <style> tag, and the font name is in double quotations (which is proper formatting for font names with spaces in them in .css files or <style> tags), it is inlined incorrectly. Instead of being in proper inlined html format (having the font name wrapped in single quotes), the font name is broken up and each word is treated as an attribute tag. Also, this makes all other stylings that are inlined for that particular tag follow that same format and makes them out of order. For example, if this is the html with the <style> tag that needs to be inlined: <html> <head> <style> p {font-family: "Times New Roman"; padding: 5px;} </style> </head> <body> <p>random text</p> </body> </html> Instead of the <p> tag having the proper formatting which is: <p style="font-family: 'Times New Roman'; padding: 5px;">random text</p> It will actually look like this: <p 5px:"="5px;"" new="New" padding:="padding:" roman";="Roman";" style="font-family: " times="Times">random text</p> -Dom