h4. * Prerequisite * : having a custom downloaded image locally on your device.
h4. 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) {code:java} [[image:rohit-choudhari-pE37k0imUDs-unsplash.jpg||style='background-color: #FFFFFF44;']] {code} # Click Save & View
h4. Actual result: If you check XWiki console, there'll a line null [1:19] Invalid color "#FFFFFF44". h4. 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"|https://sourceforge.net/p/cssparser/bugs/88/]
The workaround for this is to use old CSS rules [ https://developer.mozilla.org/en-US/docs/Web/CSS/background-color ] . |
|