glpi icon indicating copy to clipboard operation
glpi copied to clipboard

CSS Child combinator is not taken in account anymore in mail notifications in v10

Open paidge opened this issue 2 years ago • 0 comments

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • [X] I have searched the existing issues

Version

v10.0.3

Bug description

Since I have updated my GLPI instance from v9.5 o v10.0, I noticed that CSS child combinator (>) is not taken in account anymore in mail notification templates. All the other CSS rules are taken in account. For example :

p + p {
  color : green;
}

works.

I verified in Thunderbird development tools to conclude that the CSS child combinator is probably replaced with HTML entity.

Relevant log output

No response

Page URL

No response

Steps To reproduce

  • Create a template for mail notification with GLPI v10.0.3
  • Add CSS for this template with CSS child combinator. For example :
div > a {
	color: red;
}
  • Trigger the notification and check hat all rules with CSS child combinator are not taken in account.

Your GLPI setup information

No response

Anything else?

No response

paidge avatar Oct 05 '22 14:10 paidge