? Success

User tests: Successful: Unsuccessful:

avatar pjwiseman
pjwiseman
12 May 2014

The // comments are not intended to be present in the css files. They are
only present in the .less files to identify changes from standard bootstrap.

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32862&start=0

avatar pjwiseman pjwiseman - open - 12 May 2014
avatar brianteeman
brianteeman - comment - 12 May 2014

Removing the comments from the CSS file alone in this way is futile as they will come back each time the less file is compiled.

avatar Bakual
Bakual - comment - 12 May 2014

I don't this this particular file will be compiled by us.
The list of generated files by the generatecss.php script can be found here: https://github.com/joomla/joomla-cms/blob/staging/build/generatecss.php#L45

Usually, comments are stripped out anyway if you compile a CSS file from LESS. So I'd say this PR makes sense.

avatar pjwiseman
pjwiseman - comment - 12 May 2014

Looking through and comparing bootstrap.less with bootstrap.css, the only comments from .less that get reflected in .css are the /* */ style comments, and not the // style (single-line) comments.

Here's some confirmation from the less documentation in github.

https://github.com/less/less-docs/blob/1f7468622c95dcf64249ea7dc49027634499c2d7/content/features/comments.md

Note that whilst Joomla doesn't generate css, we do need to consider that the end-user might compile the bootstrap less. Whilst the Joomla-shipped less compiler doesn't include any comments (except may the file header), other compilers will, but only /* */ style comments.

avatar infograf768 infograf768 - change - 15 May 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-05-15 08:54:15
avatar infograf768 infograf768 - close - 15 May 2014
avatar infograf768 infograf768 - reference | - 15 May 14
avatar infograf768 infograf768 - merge - 15 May 2014
avatar infograf768 infograf768 - close - 15 May 2014

Add a Comment

Login with GitHub to post a comment