Questions tagged [csstidy]

csstidy is a command line CSS parser used for syntax checking, shorthand replacement, and templating.

18 questions
14
votes
4 answers

Tidy CSS for Notepad++

Is there some kind of CSS tidy available for Notepad++. I have tried what seems to be every menu item in TEXTFX but none seem to do it. I am used to using PSPAD where you just select the CSS and clicked "Reformat Into Structured CSS" EDIT made a…
byronyasgur
  • 4,627
  • 13
  • 52
  • 96
7
votes
3 answers

Are CSS Minifiers that combine elements destructive?

I found this CSS minifier (http://www.lotterypost.com/css-compress.aspx). There is a section at the bottom of that page labelled "What does the CSS Compressor purposely NOT do?" There are four things, two of which I couldn't understand why they…
Toby
  • 647
  • 4
  • 14
3
votes
1 answer

CSSTidy, HTMLTidy, JSlint pre-commit hooks(Hg) - automation tools

I am looking for a way to test/validate my html, css, js before they are committed to a repository. Is there any way to automate this process. Ideally, I would like to have the ability to exclude certain files (js libraries for example).
Eeyore
  • 2,126
  • 7
  • 33
  • 49
3
votes
2 answers

Question about CSSTidy

In opposite to most other CSS parsers, no regular expressions are used and thus CSSTidy has full CSS2 support and a higher reliability. I wonder why CSSTidy built their own parser and not utilized the official SAC API (which also includes…
eozzy
  • 66,048
  • 104
  • 272
  • 428
2
votes
1 answer

How prevent CSSTidy from removing the *property IE7 Hack? (Or another standalone tool)

Bounty: Bounty given to whoever share a standalone command-line CSS minifier for Windows (that is, run just like JSMin and CSSTidy, but actually minifies rather than 'prettify' and remove properties Using Visual Studio 2010 Post-Build Events, I'm…
RaphaelDDL
  • 4,452
  • 2
  • 32
  • 56
1
vote
1 answer

Include HTML + CSS files without collisions

I have a HTML header template with its own style sheet. This HTML code is complex, it contains menu's, different blocks and other floating elements. The CSS file contains styles from whole website. It total 800 selectors. When I just include the…
ddofborg
  • 2,028
  • 5
  • 21
  • 34
1
vote
2 answers

Html Purifier | CSS Tidy | Browser specific properties and hacks are trimmed. How do I allow those?

filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e7e7e7'); background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#e7e7e7)); These kinds of css properties are removed when filtering…
dropson
  • 1,111
  • 2
  • 12
  • 23
1
vote
0 answers

PHP CSSTidy throwing warning unexpectedly

So I have a CSS file which I am running through PHP CSSTidy with the following setup. require_once './application/helpers/csstidy/class.csstidy.php'; $css = new…
Stefan P
  • 1,013
  • 2
  • 18
  • 34
1
vote
1 answer

Running csstidy from Java

I am trying to develop a Java tool to refactor css files. I am trying to access the command prompt from Java. The command prompt is opening fine but it's not running the csstidy exe file. try { String command = "cmd /c start cmd.exe /K \"cd…
1
vote
1 answer

Configure CSSTidy selector sorting

How do I configure the order that CSSTidy uses to sort the properties? I would like to use the box model sorting for CSS selectors (outside to inside), but I tried setting "sort_properties": "true" but the sorting doesn't seem to take place. The…
Lightheaded
  • 644
  • 8
  • 23
1
vote
2 answers

is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

Using PHP/Codeigniter/HTMLPurifier/CSStidy like so: require_once 'extra/htmlpurifier-4_4_0/library/HTMLPurifier.auto.php'; require_once 'extra/csstidy-1_3/class.csstidy.php'; $input_css = $this->input->post('input_css'); $config =…
govinda
  • 1,683
  • 5
  • 20
  • 34
1
vote
1 answer

what will it take to allow media queries through HTMLPurifier + CSStidy

what would it take to allow media queries through HTMLPurifier + CSStidy? In other words, I am using these libraries: require_once 'inc_php_classes/htmlpurifier-4_4_0/library/HTMLPurifier.auto.php'; require_once…
govinda
  • 1,683
  • 5
  • 20
  • 34
0
votes
1 answer

How to tidy a CSS string with rails?

I have a string of CSS with new line characters in it and I would like to tidy the CSS string with rails somehow - using standard CSS tidying rules. I am not looking to minify it because I want to preserve the new lines and tab indents. How can I do…
Devin McQueeney
  • 1,277
  • 2
  • 14
  • 31
0
votes
0 answers

HTML Purifier - how keep css "margin-left: calc(25%)"

I'm using HTML purifier in a wysiwyg editor and inline css rule like "margin-left: calc(25%);" is being removed. If the rule is "margin-left: 25%;" it is not removed, however this rule is set automatically by the editor. I dont know how config the…
Johny
  • 501
  • 5
  • 16
0
votes
1 answer

CSSTidy breaking font-face

I am having some issues with CSSTidy breaking my font-face declarations and not sure what the problem is. Originally I was compressing server-side, but also tried running it through an online utility to test. They both have the same output, only the…
Louis W
  • 3,166
  • 6
  • 46
  • 76
1
2