Opened 14 years ago

Last modified 10 years ago

#4356 closed defect

dojo.style: return values — at Version 2

Reported by: guest Owned by: sjmiles
Priority: low Milestone: future
Component: HTML Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by sjmiles)

If top/left is "auto", dojo.style returns 0. Same with lineHeight when "normal".

Not sure whether this is a good idea.

If no border attributes were set, dojo.style returns "". Maybe 0 was better in this case?

Change History (2)

comment:1 Changed 14 years ago by dylan

Milestone: 1.2

comment:2 Changed 13 years ago by sjmiles

Description: modified (diff)
Milestone: 1.2future

I'm not sure how to balance raw-values vs. heurisitics vs. complicated calculations in dojo.style. Personally, I've advocated more explicit functions so we aren't in the business of trying to solve the general case problem.

I am going to defer this ticket until there is some consensus towards a particular solution.

Note: See TracTickets for help on using tickets.