ChavezArquitectos / curvycorners

Automatically exported from code.google.com/p/curvycorners
0 stars 0 forks source link

Fractional em sizes are not supported, nor shorthand for -{top,bottom}-{right,left} #96

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Specify -webkit-border-radius: 0.8em 0.8em 0 0;

What is the expected output? What do you see instead?
Expect top two corners curved, bottom square
Actual: all square, JS error

What version of the product are you using? On what operating system?
2.0.4, IE8 on Win7

Please provide any additional information below.
There are some parseInts that cause fractional em measurements (<1) to be 
ignored (as they get parsed to 0).
The units(num) function assumes that the match will succeed (by accessing 
match[1] without checking match) - this assumption fails if: a measurement is 
0, or the multi corner specification of -webkit-border-radius is used.

A patch is attached.

Original issue reported on code.google.com by domi...@lenny.cus.org on 17 Oct 2010 at 3:46

Attachments: