File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 11Revision history for Perl extension CSS-Tiny
22
3+ 1.19 Fri 3 Sep 2010
4+ - No functional changes
5+ - Resolved RT #59037: CSS::Tiny reorders rules
6+ - The use of Tie::IxHash to achieve ordering is now documented
7+
381.18 Fri 3 Sep 2010
49- Resolved RT #60776: Parsing of multiple whitespace selectors
510- Added test script specifically for RT regression tests
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use strict;
22use vars qw{ $VERSION} ;
33BEGIN {
44require 5.004;
5- $VERSION = ' 1.18 ' ;
5+ $VERSION = ' 1.19 ' ;
66}
77use ExtUtils::MakeMaker;
88
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ package CSS::Tiny;
55use strict;
66BEGIN {
77require 5.004;
8- $CSS::Tiny::VERSION = ' 1.18 ' ;
8+ $CSS::Tiny::VERSION = ' 1.19 ' ;
99$CSS::Tiny::errstr = ' ' ;
1010}
1111
@@ -285,6 +285,27 @@ so that it can be dropped directly onto an XHTML page.
285285When an error occurs, you can retrieve the error message either from the
286286C<$CSS::Tiny::errstr > variable, or using the C<errstr > method.
287287
288+ =head1 CAVEATS
289+
290+ =head2 CSS Rule Order
291+
292+ While the order of rules in CSS is important, this is one of the features
293+ that is sacrificed to keep things small and dependency-free. If you need
294+ to preserve order yourself, we recommend that you upgrade to the more
295+ powerful L<CSS> module.
296+
297+ If this is not possible in your case, alternatively it can be done with the
298+ help of another module such as L<Tie::IxHash> :
299+
300+ my $css = CSS::Tiny->new;
301+ tie %$css, 'Tie::IxHash';
302+ $css->read('style.css');
303+
304+ Note: You will also need to remember to add the additional dependency to
305+ your code or module in this case.
306+
307+ =back
308+
288309=head1 SUPPORT
289310
290311Bugs should be reported via the CPAN bug tracker at
You can’t perform that action at this time.
0 commit comments