Bug Tracker

Opened 10 years ago

Last modified 10 years ago

#11887 closed feature

Add an entry for $.cssNumber to the API docs — at Initial Version

Reported by: BillyRayPreachersSon Owned by:
Priority: low Milestone: None
Component: css Version: 1.7.2
Keywords: 1.9-discuss Cc:
Blocked by: Blocking:


I think it would be worthwhile adding an entry for $.cssNumber to the API docs, alongside the existing entry for $.cssHooks.

At present, the only mention of it is right at the bottom of the entry for $.cssHooks, and so it's very easy to miss.

The main reason I think it might be a useful addition is for anyone wondering why setting the line-height style without a value does not give the same results as setting the font-size style without a value, e.g.:

        var size = 10;
        el.css({ fontSize:size, lineHeight:size });

Personally, I'd add it to both the "CSS" and "Mainpulation -> Style Properties" categories, as those would be the places I'd be looking if I had the aforementioned issue.

Change History (0)

Note: See TracTickets for help on using tickets.