Prerequisite: having a custom downloaded image locally on your device. Step to reproduce:
- Login as Admin to XWiki
- Navigate to the dedicated test page
- Attached your image
- Insert image via below syntax during Wiki mode editing page (don't forget to replace image with yours)
[[image:rohit-choudhari-pE37k0imUDs-unsplash.jpg||style='background-color: #FFFFFF44;']]
- Click Save & View
Actual result: If you check XWiki console, there'll a line null [1:19] Invalid color "#FFFFFF44". Expected result: No new warning in XWiki console will appear. The issue happens only with an attempt to apply CSS3 (CSS Color Module Level 4) rules for image, HEX 4 or 8 digits. This caused by CSS Parser Bugs "CSS parser is returning an error for #RGBA and #RRGGBBAA hex color values" The workaround for this is to use old CSS rules https://developer.mozilla.org/en-US/docs/Web/CSS/background-color. |