Loading...
 
Skip to main content

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
(0)
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:

YAML
Copy to clipboard
objects: - 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: n

Saving this as myprofiles/custom-style.yml and applying this profile using php console.php profile:apply custom-style myprofiles will 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+
Demonstrate Bug (older Tiki versions)
Ticket ID
6152
Created
Thursday 27 October, 2016 11:03:03 UTC
by luci
LastModif
Thursday 27 October, 2016 11:03:03 UTC


Show PHP error messages