Skip Menu |

This queue is for tickets about the CSS-Tiny CPAN distribution.

Report information
The Basics
Id: 87261
Status: resolved
Priority: 0/
Queue: CSS-Tiny

People
Owner: Nobody in particular
Requestors: vanstyn [...] cpan.org
Cc: PLICEASE [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.19
Fixed in: 1.20



Subject: properties that start with asterisk (*) are not supported
Here is an example of valid CSS: .mycls { *display: inline; *zoom: 1; } However, CSS::Tiny doesn't like it because the validation regex doesn't allow property names to start with '*'. This could be fixed by changing the validation regex on line 58 (v1.19) from this: /^\s*([\w._-]+)\s*:\s*(.*?)\s*$/ To this: /^\s*(\*?[\w._-]+)\s*:\s*(.*?)\s*$/ This is what I am doing to fix it in CSS::Scopifier until this bug can be fixed in CSS::Tiny.
Hi, This package hasn't been updated on CPAN since September 2010, so I have forked on github where I have implemented your fix. It is available at: https://github.com/m4ddav3/CSS-Tiny Cheers! m4ddav3 On Wed Jul 24 12:47:00 2013, VANSTYN wrote: Show quoted text
> Here is an example of valid CSS: > > .mycls { > *display: inline; > *zoom: 1; > } > > However, CSS::Tiny doesn't like it because the validation regex > doesn't allow property names to start with '*'. > > This could be fixed by changing the validation regex on line 58 > (v1.19) from this: > > /^\s*([\w._-]+)\s*:\s*(.*?)\s*$/ > > To this: > > /^\s*(\*?[\w._-]+)\s*:\s*(.*?)\s*$/ > > This is what I am doing to fix it in CSS::Scopifier until this bug can > be fixed in CSS::Tiny.
ADAMK: Incidentally, I would be more than happy to do a release for this module if you like.
On Fri Jan 17 17:45:02 2014, MADDAVE wrote: Show quoted text
> ADAMK: Incidentally, I would be more than happy to do a release for > this module if you like.
How about emailing adam at his cpan email (adamk at cpan dot org )? I requested that he transfer File::Where and he forwarded the request on to the modules list and requested the transfer.