Applying Profile thinks line with #foo selector in CSS code is a comment and omits it
- Status
- Open
- Subject
- Applying Profile thinks line with #foo selector in CSS code is a comment and omits it
- Version
- 15.x
- Category
- Usability
- Feature
- Installer (profiles, upgrades and server-related issues)
Profile Manager - Resolution status
- New
- Submitted by
- luci
- Lastmod by
- luci
- Rating
- Description
When there is a CSS code in the profile params containing lines with ID selectors applying profile just ignores those lines resulting in wrong CSS code. For example:
Copy to clipboard#foo, .bar, .bar-bar { display: block }will result in:
Copy to clipboard.bar, .bar-bar { display: block }Example of the profile YAML:
YAMLCopy to clipboardobjects: - type: module data: name: Custom Style params: nobox: y groups: order: 1 position: top custom: | {literal} <style type="text/css"> #whitehead, .bgwhite { background-color: #fff } </style> {/literal} parse: nSaving this as
myprofiles/custom-style.ymland applying this profile usingphp console.php profile:apply custom-style myprofileswill result in custom module creation named "Custom Style" but there will be no line with#whitehead,in it, just the .bgwhite class declaration.- Importance
- 10 high
- Priority
- 50
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 6152
- Created
- Thursday 27 October, 2016 11:03:03 UTC
by luci - LastModif
- Thursday 27 October, 2016 11:03:03 UTC