Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

JS error applying styles with non-px length units to childless elements #99

Closed
lojjic opened this Issue · 1 comment

1 participant

@lojjic
Owner

See http://css3pie.com/forum/viewtopic.php?f=3&t=357 -- when using a length with units other than px, PIE tries to insert the length-calc element into the target element. This causes an error for some elements which cannot accept children, e.g. input[type=submit].

@lojjic
Owner

Also happens with table elements, though that does not throw an error, it just results in the length being calculated as 0px. See http://css3pie.com/forum/viewtopic.php?f=3&t=573

@lojjic lojjic closed this issue from a commit
Jason Johnston When calculating em unit size on elements that don't accept children,…
… insert the length calc element into the parent and perform an additional calculation based on the specified font-size. Prevents error trying to insert into the childless element. Fixes #99.
8923137
@lojjic lojjic closed this in 8923137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.