Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13346 closed bug (notabug)

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

Reported by: de.sh.vit@… Owned by: de.sh.vit@…
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'.

Change History (4)

comment:1 Changed 10 years ago by gibson042

Owner: set to de.sh.vit@…
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.

comment:2 Changed 10 years ago by de.sh.vit@…

Status: pendingnew

comment:3 Changed 10 years ago by de.sh.vit@…

comment:4 Changed 10 years ago by dmethvin

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.

Note: See TracTickets for help on using tickets.