#7860 closed bug (wontfix)
selector.css(name) returns inconsistently across browsers
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | css | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When a percentage value is used in CSS, the value returned depends on the browser. With webkit browsers, the percentage value is returned. With other browsers, the pixel value is returned. To see this in action, you can run the following in any webkit based browser, and then any other browser.
I am unsure of what the correct behavior should be, but my best guess would be consistently returning a pixel value. Usually computations depend on a value, not a percentage.
Change History (3)
comment:1 Changed 12 years ago by
Component: | unfiled → css |
---|---|
Milestone: | 1.6 → 1.5 |
Priority: | undecided → high |
Status: | new → open |
comment:2 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | open → closed |
I think the best resolution is to create a cssHook if you need to access min-/max- property values. These css properties won't change unless you change them within your logic. Additionally, they are not available in IE6
comment:3 Changed 12 years ago by
http://www.w3.org/TR/css3-box/#the-lsquo0 thanks Dave Methvin for providing this
Confirmed. http://jsfiddle.net/rwaldron/c6RQT/
jQuery 0 GIT, 1.4.4, 1.4.3, 1.4.2, 1.3.2, 1.2.6 WebKit: 50% FireFox: 288.5px