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 comment:1
owner: | → de.sh.vit@gmail.com |
---|---|
status: | new → pending |
Changed January 29, 2013 03:30PM UTC by comment:2
status: | pending → new |
---|
Test case: http://jsfiddle.net/gRvR2/
Changed January 29, 2013 03:40PM UTC by comment:3
Sorry, test case: http://jsfiddle.net/gRvR2/5/
Changed January 29, 2013 04:15PM UTC by comment:4
resolution: | → notabug |
---|---|
status: | new → closed |
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.
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.