r44120 - in /branches/upstream/libcss-packer-perl: ./ current/ current/lib/ current/lib/CSS/ current/t/ current/t/stylesheets/

emhn-guest at users.alioth.debian.org emhn-guest at users.alioth.debian.org
Tue Sep 15 23:09:02 UTC 2009


Author: emhn-guest
Date: Tue Sep 15 23:08:58 2009
New Revision: 44120

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=44120
Log:
[svn-inject] Installing original source of libcss-packer-perl

Added:
    branches/upstream/libcss-packer-perl/
    branches/upstream/libcss-packer-perl/current/
    branches/upstream/libcss-packer-perl/current/.cvsignore
    branches/upstream/libcss-packer-perl/current/Changes
    branches/upstream/libcss-packer-perl/current/MANIFEST
    branches/upstream/libcss-packer-perl/current/META.yml
    branches/upstream/libcss-packer-perl/current/Makefile.PL
    branches/upstream/libcss-packer-perl/current/README
    branches/upstream/libcss-packer-perl/current/lib/
    branches/upstream/libcss-packer-perl/current/lib/CSS/
    branches/upstream/libcss-packer-perl/current/lib/CSS/Packer.pm
    branches/upstream/libcss-packer-perl/current/t/
    branches/upstream/libcss-packer-perl/current/t/00-load.t
    branches/upstream/libcss-packer-perl/current/t/01-io.t
    branches/upstream/libcss-packer-perl/current/t/pod.t
    branches/upstream/libcss-packer-perl/current/t/stylesheets/
    branches/upstream/libcss-packer-perl/current/t/stylesheets/s1-expected.css
    branches/upstream/libcss-packer-perl/current/t/stylesheets/s1.css
    branches/upstream/libcss-packer-perl/current/t/stylesheets/s2-expected.css
    branches/upstream/libcss-packer-perl/current/t/stylesheets/s2.css
    branches/upstream/libcss-packer-perl/current/t/stylesheets/s3-expected.css
    branches/upstream/libcss-packer-perl/current/t/stylesheets/s3.css
    branches/upstream/libcss-packer-perl/current/t/stylesheets/s4-expected.css
    branches/upstream/libcss-packer-perl/current/t/stylesheets/s4.css

Added: branches/upstream/libcss-packer-perl/current/.cvsignore
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/.cvsignore?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/.cvsignore (added)
+++ branches/upstream/libcss-packer-perl/current/.cvsignore Tue Sep 15 23:08:58 2009
@@ -1,0 +1,10 @@
+blib*
+Makefile
+Makefile.old
+Build
+_build*
+pm_to_blib*
+*.tar.gz
+.lwpcookies
+CSS-Packer-*
+cover_db

Added: branches/upstream/libcss-packer-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/Changes?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/Changes (added)
+++ branches/upstream/libcss-packer-perl/current/Changes Tue Sep 15 23:08:58 2009
@@ -1,0 +1,7 @@
+Revision history for CSS-Packer
+
+0.1	2008-11-18
+	First version, released on an unsuspecting world.
+
+0.2	2008-12-22
+	- Added support for removing whitespaces before and after commas

Added: branches/upstream/libcss-packer-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/MANIFEST?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/MANIFEST (added)
+++ branches/upstream/libcss-packer-perl/current/MANIFEST Tue Sep 15 23:08:58 2009
@@ -1,0 +1,18 @@
+.cvsignore
+Changes
+lib/CSS/Packer.pm
+Makefile.PL
+MANIFEST
+README
+t/00-load.t
+t/01-io.t
+t/pod.t
+t/stylesheets/s1-expected.css
+t/stylesheets/s1.css
+t/stylesheets/s2-expected.css
+t/stylesheets/s2.css
+t/stylesheets/s3-expected.css
+t/stylesheets/s3.css
+t/stylesheets/s4-expected.css
+t/stylesheets/s4.css
+META.yml                                 Module meta-data (added by MakeMaker)

Added: branches/upstream/libcss-packer-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/META.yml?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/META.yml (added)
+++ branches/upstream/libcss-packer-perl/current/META.yml Tue Sep 15 23:08:58 2009
@@ -1,0 +1,14 @@
+--- #YAML:1.0
+name:                CSS-Packer
+version:             0.2
+abstract:            Another CSS minifier
+license:             perl
+author:              
+    - Merten Falk <nevesenin at cpan.org>
+generated_by:        ExtUtils::MakeMaker version 6.42
+distribution_type:   module
+requires:     
+    Test::More:                    0
+meta-spec:
+    url:     http://module-build.sourceforge.net/META-spec-v1.3.html
+    version: 1.3

Added: branches/upstream/libcss-packer-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/Makefile.PL?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/Makefile.PL (added)
+++ branches/upstream/libcss-packer-perl/current/Makefile.PL Tue Sep 15 23:08:58 2009
@@ -1,0 +1,20 @@
+use 5.008;
+use strict;
+use warnings;
+use ExtUtils::MakeMaker;
+
+WriteMakefile(
+    NAME                => 'CSS::Packer',
+    AUTHOR              => 'Merten Falk <nevesenin at cpan.org>',
+    VERSION_FROM        => 'lib/CSS/Packer.pm',
+    ABSTRACT_FROM       => 'lib/CSS/Packer.pm',
+    ($ExtUtils::MakeMaker::VERSION >= 6.3002
+      ? ('LICENSE'=> 'perl')
+      : ()),
+    PL_FILES            => {},
+    PREREQ_PM => {
+        'Test::More' => 0,
+    },
+    dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
+    clean               => { FILES => 'CSS-Packer-*' },
+);

Added: branches/upstream/libcss-packer-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/README?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/README (added)
+++ branches/upstream/libcss-packer-perl/current/README Tue Sep 15 23:08:58 2009
@@ -1,0 +1,52 @@
+CSS-Packer
+
+The README is used to introduce the module and provide instructions on
+how to install the module, any machine dependencies it may have (for
+example C compilers and installed libraries) and any other information
+that should be provided before the module is installed.
+
+A README file is required for CPAN modules since CPAN extracts the README
+file from a module distribution so that people browsing the archive
+can use it to get an idea of the module's uses. It is usually a good idea
+to provide version information here so that people can decide whether
+fixes for the module are worth downloading.
+
+
+INSTALLATION
+
+To install this module, run the following commands:
+
+	perl Makefile.PL
+	make
+	make test
+	make install
+
+SUPPORT AND DOCUMENTATION
+
+After installing, you can find documentation for this module with the
+perldoc command.
+
+    perldoc CSS::Packer
+
+You can also look for information at:
+
+    RT, CPAN's request tracker
+        http://rt.cpan.org/NoAuth/Bugs.html?Dist=CSS-Packer
+
+    AnnoCPAN, Annotated CPAN documentation
+        http://annocpan.org/dist/CSS-Packer
+
+    CPAN Ratings
+        http://cpanratings.perl.org/d/CSS-Packer
+
+    Search CPAN
+        http://search.cpan.org/dist/CSS-Packer/
+
+
+COPYRIGHT AND LICENCE
+
+Copyright (C) 2008 Merten Falk
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+

Added: branches/upstream/libcss-packer-perl/current/lib/CSS/Packer.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/lib/CSS/Packer.pm?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/lib/CSS/Packer.pm (added)
+++ branches/upstream/libcss-packer-perl/current/lib/CSS/Packer.pm Tue Sep 15 23:08:58 2009
@@ -1,0 +1,310 @@
+package CSS::Packer;
+
+use 5.008;
+use warnings;
+use strict;
+use Carp;
+
+use vars qw/$VERSION $RULE $DECLARATION $COMMENT $CHARSET $MEDIA $IMPORT $PLACEHOLDER/;
+
+$VERSION = '0.2';
+
+$RULE = qr/([^{}~;]+)\{([^{}]*)\}/;
+
+$IMPORT = qr/\@import\s+("[^"]+"|'[^']+'|url\(\s*"[^"]+"\s*\)|url\(\s*'[^']+'\s*\)|url\(\s*[^'"]+?\s*\))(.*?);/;
+
+$MEDIA = qr/\@media([^{}]+){((\s*$IMPORT|$RULE)+)\s*}/;
+
+$DECLARATION = qr/((?>[^;:]+)):(?<=:)((?>[^;]*));/;
+
+$COMMENT = qr/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)/;
+
+$CHARSET = qr/^(\@charset)\s+("[^"]*";|'[^']*';)/;
+
+$PLACEHOLDER = qr/(?>[^~]*)(~(iec_start|iec_end|charset|import_\d+|media_\d+|rule_\d+)~)(?>[^~]*)/;
+
+# -----------------------------------------------------------------------------
+
+sub minify {
+	my ( $scalarref, $opts ) = @_;
+	
+	if ( ref( $scalarref ) ne 'SCALAR' ) {
+		carp( 'First argument must be a scalarref!' );
+		return '';
+	}
+	
+	return '' if ( ${$scalarref} eq '' );
+	
+	if ( ref( $opts ) ne 'HASH' ) {
+		carp( 'Second argument must be a hashref of options! Using defaults!' ) if ( $opts );
+		$opts = { 'compress' => 'pretty' };
+	}
+	else {
+		$opts->{'compress'} = grep( $opts->{'compress'}, ( 'minify', 'pretty' ) ) ? $opts->{'compress'} : 'pretty';
+	}
+	
+	$opts = { 'compress' => 'pretty' } if ( ref( $opts ) ne 'HASH' or $opts->{'compress'} ne 'minify' );
+	
+	${$scalarref} =~ s/~iec_start~/ /gsm;
+	${$scalarref} =~ s/~iec_end~/ /gsm;
+	
+	${$scalarref} =~ s/~charset~/ /gsm;
+	${$scalarref} =~ s/~import_\d+~/ /gsm;
+	${$scalarref} =~ s/~media_\d+~/ /gsm;
+	${$scalarref} =~ s/~rule_\d+~/ /gsm;
+ 	${$scalarref} =~ s/\r//gsm;
+	
+	my $charset	= '';
+	my $import	= [];
+	my $media	= [];
+	my $rule	= [];
+	
+	my $_do_declaration = sub {
+		my ( $key, $value ) = @_;
+		
+		$key	=~ s/^\s*|\s*$//gs;
+		$value	=~ s/^\s*|\s*$//gs;
+		
+		if ( $key eq 'content' ) {
+			my @strings;
+			my $_do_content = sub {
+				my $string = shift;
+				
+				my $ret = '~string_' . scalar( @strings ) . '~';
+				
+				push( @strings, $string );
+				
+				return $ret;
+			};
+			
+			$value =~ s/"(\\.|[^"\\])*"/&$_do_content( $& )/egs;
+			
+			$value =~ s/(?>\s+)(~string_\d+~)/$1/gsm;
+			$value =~ s/(~string_\d+~)(?>\s+)/$1/gsm;
+			
+			$value =~ s/~string_(\d+)~/$strings[$1]/egsm;
+		}
+		else {
+			$value =~ s/\s*,\s*/,/gsm;
+			$value =~ s/\s+/ /gsm;
+		}
+		
+		return '' if ( not $key or ( not $value and $value ne '0' ) );
+		
+		return $key . ':' . $value . ';' . ( $opts->{'compress'} eq 'pretty' ? "\n" : '' );
+	};
+	
+	my $_do_rule = sub {
+		my ( $selector, $declaration ) = @_;
+		
+		$selector =~ s/^\s*|\s*$//gs;
+		$selector =~ s/\s*,\s*/,/gsm;
+		$selector =~ s/\s+/ /gsm;
+		
+		$declaration =~ s/^\s*|\s*$//gs;
+		
+		$declaration =~ s/$DECLARATION/&$_do_declaration( $1, $2 )/egsm;
+		
+		my $ret = '~rule_' . scalar( @{$rule} ) . '~';
+		
+		my $store = $selector . '{' . ( $opts->{'compress'} eq 'pretty' ? "\n" : '' ) . $declaration . '}' . ( $opts->{'compress'} eq 'pretty' ? "\n" : '' );
+		
+		$store = '' unless ( $selector or $declaration );
+		
+		push( @{$rule}, $store );
+		
+		return $ret;
+	};
+	
+	my $_do_import = sub {
+		my ( $file, $mediatype ) = @_;
+		
+		if ( $file =~ /^("|')(?>\s*)(.*?)(?>\s*)\1$/ ) {
+			$file = $1 . $2 . $1;
+		}
+		elsif ( $file =~ /^url\(\s*("|')(?>\s*)(.*?)(?>\s*)\1\s*\)$/ ) {
+			$file = 'url(' . $1 . $2 . $1 . ')';
+		}
+		elsif ( $file =~ /^url\((?>\s*)(.*?)(?>\s*)\)$/ ) {
+			$file = 'url(' . $1 . ')';
+		}
+		else {
+			$file = '';
+		}
+		
+		my $store = '@import ' . $file;
+		
+		if ( $mediatype ) {
+			$mediatype =~ s/^\s*|\s*$//gs;
+			$mediatype =~ s/\s*,\s*/,/gsm;
+			
+			$store .= $mediatype;
+		}
+		
+		$store .= ';' . ( $opts->{'compress'} eq 'pretty' ? "\n" : '' );
+		
+		my $ret = '~import_' . scalar( @{$import} ) . '~';
+		
+		push( @{$import}, $store );
+		
+		return $ret;
+	};
+	
+	my $iec_isopen = 0;
+	
+	my $_do_comment = sub {
+		my $comment = shift;
+		
+		if ( $comment =~ /\\\*\/$/ and not $iec_isopen ) {
+			$iec_isopen = 1;
+			return '~iec_start~';
+		}
+		elsif ( $comment !~ /\\\*\/$/ and $iec_isopen ) {
+			$iec_isopen = 0;
+			return '~iec_end~';
+		}
+		
+		return ' ';
+	};
+	
+	my $_do_charset = sub {
+		my ( $selector, $declaration ) = @_;
+		
+		$charset = $selector . " " . $declaration . ( $opts->{'compress'} eq 'pretty' ? "\n" : '' );
+		
+		return '~charset~';
+	};
+	
+	my $_do_media = sub {
+		my ( $mediatype, $mediarules ) = @_;
+		
+		$mediatype =~ s/^\s*|\s*$//gs;
+		$mediatype =~ s/\s*,\s*/,/gsm;
+		
+		$mediarules =~ s/$IMPORT/&$_do_import( $1, $2 )/egsm;
+		$mediarules =~ s/$RULE/&$_do_rule( $1, $2 )/egsm;
+		
+		$mediarules =~ s/$PLACEHOLDER/$1/gsm;
+		
+		my $ret = '~media_' . scalar( @{$media} ) . '~';
+		
+		my $store = '@media ' . $mediatype . '{' . ( $opts->{'compress'} eq 'pretty' ? "\n" : '' ) .
+			$mediarules . '}' . ( $opts->{'compress'} eq 'pretty' ? "\n" : '' );
+		
+		push( @{$media}, $store );
+		
+		return $ret;
+	};
+	
+	${$scalarref} =~ s/$CHARSET/&$_do_charset( $1, $2 )/emos;
+	
+	${$scalarref} =~ s/$COMMENT/&$_do_comment( $& )/egsm;
+	
+	${$scalarref} =~ s/$MEDIA/&$_do_media( $1, $2 )/egsm;
+	
+	${$scalarref} =~ s/$IMPORT/&$_do_import( $1, $2 )/egsm;
+	
+	${$scalarref} =~ s/$RULE/&$_do_rule( $1, $2 )/egsm;
+	
+	${$scalarref} =~ s/$PLACEHOLDER/$1/gsm;
+	
+	${$scalarref} =~ s/~media_(\d+)~/$media->[$1]/egsm;
+	${$scalarref} =~ s/~rule_(\d+)~/$rule->[$1]/egsm;
+	${$scalarref} =~ s/~import_(\d+)~/$import->[$1]/egsm;
+	${$scalarref} =~ s/~charset~/$charset/gsm;
+	
+	${$scalarref} =~ s/~iec_start~/sprintf( '\/*\\*\/%s', $opts->{'compress'} eq 'pretty' ? "\n" : '' )/egsm;
+	${$scalarref} =~ s/~iec_end~/sprintf( '\/**\/%s', $opts->{'compress'} eq 'pretty' ? "\n" : '' )/egsm;
+	
+	${$scalarref} =~ s/\n$//s unless ( $opts->{'compress'} eq 'pretty' );
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+CSS::Packer - Another CSS minifier
+
+=head1 VERSION
+
+Version 0.2
+
+=head1 SYNOPSIS
+
+    use CSS::Packer;
+
+    CSS::Packer::minify( $scalarref, $opts );
+
+=head1 DESCRIPTION
+
+A fast pure Perl CSS minifier.
+
+=head1 FUNCTIONS
+
+=head2 CSS::Packer::minify( $scalarref, $opts );
+
+First argument must be a scalarref of CSS-Code.
+Second argument must be a hashref of options. The only option is
+
+=over 4
+
+=item compress
+
+Defines compression level. Possible values are 'minify' and 'pretty'.
+Default value is 'pretty'.
+
+'pretty' converts
+
+    a {
+    color:          black
+    ;}   div
+    
+    { width:100px;
+    }
+
+to
+
+    a{
+    color:black;
+    }
+    div{
+    width:100px;
+    }
+
+'minify' converts the same rules to
+
+    a{color:black;}div{width:100px;}
+
+=back
+
+=head1 AUTHOR
+
+Merten Falk, C<< <nevesenin at cpan.org> >>
+
+=head1 BUGS
+
+Please report any bugs or feature requests to C<bug-css-packer at rt.cpan.org>, or through
+the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CSS-Packer>.  I will be notified, and then you'll
+automatically be notified of progress on your bug as I make changes.
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+perldoc CSS::Packer
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright 2008 Merten Falk, all rights reserved.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
+=head1 SEE ALSO
+
+L<CSS::Minifier>,
+L<CSS::Minifier::XS>
+
+=cut

Added: branches/upstream/libcss-packer-perl/current/t/00-load.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/00-load.t?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/00-load.t (added)
+++ branches/upstream/libcss-packer-perl/current/t/00-load.t Tue Sep 15 23:08:58 2009
@@ -1,0 +1,9 @@
+#!perl -T
+
+use Test::More tests => 1;
+
+BEGIN {
+	use_ok( 'CSS::Packer' );
+}
+
+diag( "Testing CSS::Packer $CSS::Packer::VERSION, Perl $], $^X" );

Added: branches/upstream/libcss-packer-perl/current/t/01-io.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/01-io.t?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/01-io.t (added)
+++ branches/upstream/libcss-packer-perl/current/t/01-io.t Tue Sep 15 23:08:58 2009
@@ -1,0 +1,75 @@
+#!perl -T
+
+# =========================================================================== #
+#
+# All these tests are stolen from CSS::Minifier
+#
+# =========================================================================== #
+
+use Test::More;
+
+my $not = 6;
+
+SKIP: {
+	eval( 'use CSS::Packer' );
+	
+	skip( 'CSS::Packer not installed!', $not ) if ( $@ );
+	
+	plan tests => $not;
+	
+	minTest( 's1', 'pretty' );
+	minTest( 's2', 'pretty' );
+	minTest( 's3', 'minify' );
+	minTest( 's4', 'minify' );
+	
+	my $var = "foo {\na : b;\n}";
+	CSS::Packer::minify( \$var, { 'compress' => 'minify' } );
+	is( $var, 'foo{a:b;}', 'string literal input and ouput (minify)' );
+	$var = "foo {\na : b;\n}";
+	CSS::Packer::minify( \$var, { 'compress' => 'pretty' } );
+	is( $var, "foo{\na:b;\n}\n", 'string literal input and ouput (pretty)' );
+}
+
+sub filesMatch {
+	my $file1 = shift;
+	my $file2 = shift;
+	my $a;
+	my $b;
+	
+	while (1) {
+		$a = getc($file1);
+		$b = getc($file2);
+		
+		if (!defined($a) && !defined($b)) { # both files end at same place
+			return 1;
+		}
+		elsif (
+			!defined($b) || # file2 ends first
+			!defined($a) || # file1 ends first
+			$a ne $b
+		) {     # a and b not the same
+			return 0;
+		}
+	}
+}
+
+sub minTest {
+	my $filename = shift;
+	my $compress = shift || 'pretty';
+	
+	open(INFILE, 't/stylesheets/' . $filename . '.css') or die("couldn't open file");
+	open(GOTFILE, '>t/stylesheets/' . $filename . '-got.css') or die("couldn't open file");
+	
+	my $css = join( '', <INFILE> );
+	CSS::Packer::minify( \$css, { 'compress' => $compress } );
+	print GOTFILE $css;
+	close(INFILE);
+	close(GOTFILE);
+	
+	open(EXPECTEDFILE, 't/stylesheets/' . $filename . '-expected.css') or die("couldn't open file");
+	open(GOTFILE, 't/stylesheets/' . $filename . '-got.css') or die("couldn't open file");
+	ok(filesMatch(GOTFILE, EXPECTEDFILE));
+	close(EXPECTEDFILE);
+	close(GOTFILE);
+}
+

Added: branches/upstream/libcss-packer-perl/current/t/pod.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/pod.t?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/pod.t (added)
+++ branches/upstream/libcss-packer-perl/current/t/pod.t Tue Sep 15 23:08:58 2009
@@ -1,0 +1,12 @@
+#!perl -T
+
+use strict;
+use warnings;
+use Test::More;
+
+# Ensure a recent version of Test::Pod
+my $min_tp = 1.22;
+eval "use Test::Pod $min_tp";
+plan skip_all => "Test::Pod $min_tp required for testing POD" if $@;
+
+all_pod_files_ok();

Added: branches/upstream/libcss-packer-perl/current/t/stylesheets/s1-expected.css
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/stylesheets/s1-expected.css?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/stylesheets/s1-expected.css (added)
+++ branches/upstream/libcss-packer-perl/current/t/stylesheets/s1-expected.css Tue Sep 15 23:08:58 2009
@@ -1,0 +1,9 @@
+ at import url(sheet2.html);
+foo{
+asdf:asdf;
+ew:12;
+}
+bar{
+content:"a\n  b\
+    asdf";
+}

Added: branches/upstream/libcss-packer-perl/current/t/stylesheets/s1.css
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/stylesheets/s1.css?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/stylesheets/s1.css (added)
+++ branches/upstream/libcss-packer-perl/current/t/stylesheets/s1.css Tue Sep 15 23:08:58 2009
@@ -1,0 +1,11 @@
+ @import  url(sheet2.html ); 
+foo {
+  asdf:asdf;
+  ew:12;
+}
+bar
+{
+  content: "a\n  b\
+    asdf";
+  
+}

Added: branches/upstream/libcss-packer-perl/current/t/stylesheets/s2-expected.css
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/stylesheets/s2-expected.css?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/stylesheets/s2-expected.css (added)
+++ branches/upstream/libcss-packer-perl/current/t/stylesheets/s2-expected.css Tue Sep 15 23:08:58 2009
@@ -1,0 +1,18 @@
+.clearfix:after{
+content:".";
+display:block;
+height:0;
+clear:both;
+visibility:hidden;
+}
+.clearfix{
+display:inline-block;
+}
+/*\*/
+* html .clearfix{
+height:1%;
+}
+.clearfix{
+display:block;
+}
+/**/

Added: branches/upstream/libcss-packer-perl/current/t/stylesheets/s2.css
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/stylesheets/s2.css?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/stylesheets/s2.css (added)
+++ branches/upstream/libcss-packer-perl/current/t/stylesheets/s2.css Tue Sep 15 23:08:58 2009
@@ -1,0 +1,17 @@
+/* from http://www.positioniseverything.net/easyclearing.html */    
+/* from http://www.positioniseverything.net/easyclearing.html */    
+.clearfix:after {
+    content: "."; 
+    display: block; 
+    height: 0; 
+    clear: both; 
+    visibility: hidden;
+}
+
+.clearfix {display: inline-block;}
+
+/* Hides from IE-mac \*/
+/* Hides from IE-mac \*/
+* html .clearfix {height: 1%;}
+.clearfix {display: block;}
+/* End hide from IE-mac */

Added: branches/upstream/libcss-packer-perl/current/t/stylesheets/s3-expected.css
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/stylesheets/s3-expected.css?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/stylesheets/s3-expected.css (added)
+++ branches/upstream/libcss-packer-perl/current/t/stylesheets/s3-expected.css Tue Sep 15 23:08:58 2009
@@ -1,0 +1,2 @@
+ at import url(sheet2.html);foo{asdf:asdf;ew:12;}bar{content:"a\n  b\
+    asdf";}

Added: branches/upstream/libcss-packer-perl/current/t/stylesheets/s3.css
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/stylesheets/s3.css?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/stylesheets/s3.css (added)
+++ branches/upstream/libcss-packer-perl/current/t/stylesheets/s3.css Tue Sep 15 23:08:58 2009
@@ -1,0 +1,11 @@
+ @import  url(sheet2.html ); 
+foo {
+  asdf:asdf;
+  ew:12;
+}
+bar
+{
+  content: "a\n  b\
+    asdf";
+  
+}

Added: branches/upstream/libcss-packer-perl/current/t/stylesheets/s4-expected.css
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/stylesheets/s4-expected.css?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/stylesheets/s4-expected.css (added)
+++ branches/upstream/libcss-packer-perl/current/t/stylesheets/s4-expected.css Tue Sep 15 23:08:58 2009
@@ -1,0 +1,1 @@
+.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.clearfix{display:inline-block;}/*\*/* html .clearfix{height:1%;}.clearfix{display:block;}/**/

Added: branches/upstream/libcss-packer-perl/current/t/stylesheets/s4.css
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/stylesheets/s4.css?rev=44120&op=file
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/stylesheets/s4.css (added)
+++ branches/upstream/libcss-packer-perl/current/t/stylesheets/s4.css Tue Sep 15 23:08:58 2009
@@ -1,0 +1,17 @@
+/* from http://www.positioniseverything.net/easyclearing.html */    
+/* from http://www.positioniseverything.net/easyclearing.html */    
+.clearfix:after {
+    content: "."; 
+    display: block; 
+    height: 0; 
+    clear: both; 
+    visibility: hidden;
+}
+
+.clearfix {display: inline-block;}
+
+/* Hides from IE-mac \*/
+/* Hides from IE-mac \*/
+* html .clearfix {height: 1%;}
+.clearfix {display: block;}
+/* End hide from IE-mac */




More information about the Pkg-perl-cvs-commits mailing list