Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
15.10.4
-
None
-
Unknown
-
Description
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.
Attachments
Issue Links
- relates to
-
XWIKI-21813 Migrate to CSS3 parsing
- Closed
- links to