Skip to main content

Bug Tracker

Side navigation

#13346 closed bug (notabug)

Opened January 29, 2013 12:24PM UTC

Closed January 29, 2013 04:15PM UTC

.css() do not set value when value = 1e-8

Reported by: de.sh.vit@gmail.com Owned by: de.sh.vit@gmail.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

When I set the css property as follows:

$('div').css({height: 0.00000001});

Nothing happens.

It seems that this is happening because of the representation of the number in the exponential form: 0.00000001 = 1e-8 and adding to it 'px' in the code library receives '1e-8px'.

Attachments (0)
Change History (4)

Changed January 29, 2013 01:34PM UTC by gibson042 comment:1

owner: → de.sh.vit@gmail.com
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

Changed January 29, 2013 03:30PM UTC by de.sh.vit@gmail.com comment:2

status: pendingnew

Changed January 29, 2013 03:40PM UTC by de.sh.vit@gmail.com comment:3

Sorry, test case: http://jsfiddle.net/gRvR2/5/

Changed January 29, 2013 04:15PM UTC by dmethvin comment:4

resolution: → notabug
status: newclosed

That's not a reasonable request of the browser, jQuery has nothing to do with it.

http://jsfiddle.net/dmethvin/gRvR2/7/

So I'll close this notabug, but it could also be cantfix. If you think something is wrong take it to the browser bug trackers and argue your case.