Bug Tracker

Ticket #6783 (closed feature)

Opened 4 years ago

Last modified 2 years ago

css font-size get value or height get value in pixels

Reported by: eliran Owned by:
Priority: Milestone: 1.4.3
Component: css Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

IE7 IE8 1. .css('font-size') value doesn't give the correct font size value in pixels of specified DOM node(or selector) it gives what is 'written' in the html like: FONT-SIZE=2 or FONT-SIZE=3 means some relative value , inherited from parent nodes. when I use currentStyle of offsetParent, I get correct value

so what is the advantage of using jquery .css if it doesn't give the computed value (or currentStyle) of a node ?

same problem with the height, that many times gives : 'auto' ...

  1. textNode (type=3) css it would be big advantage to get all css inherited values also on textNode selector, so it gives exact absolute position in the terms:

what-you-see-what-you-get

Change History

comment:1 Changed 4 years ago by snover

  • Status changed from new to pending

This ticket has been marked as missing a test case. In an effort to reduce the number of outstanding tickets in the bug tracker, it will be closed automatically in 30 days. In order to prevent this from happening, please provide a working test case. If a test case has already been provided and our records are wrong, please respond to the ticket so that it can be fixed. Thank you!

comment:2 Changed 4 years ago by trac-o-bot

  • Status changed from pending to closed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.