Opened 16 years ago

Closed 15 years ago

#336 closed enhancement (fixed)

lots of errors in style tests

Reported by: bill Owned by: sjmiles
Priority: high Milestone: 0.9
Component: Core Version: 0.2
Keywords: Cc:
Blocked By: Blocking:


On IE, the following tests produce lots of errors:

  • test_style_getBox.html - number of errors
  • test_style_metrics.html - lots of NaNs?

Not sure if this is a test script problem or a code problem.

Change History (4)

comment:1 Changed 16 years ago by sjmiles

IE has no concept of 'computed style' AFAIK. So any non-zero numeric style not expressed in px has no 'pixel' value. So there are many cases where style metrics cannot be successfully calculated on IE.

Dean Edwards has code for converting non-px unit values into pixels: that would increase the 'solution space' for the style metrics.

In general, I have no solution for 'auto' margins, but it may be possible to infer those values through cleverness.

There are comments in the style.js file regarding this problem.

comment:2 Changed 16 years ago by sjmiles

Milestone: 0.3release0.4
Type: defectenhancement

comment:3 Changed 16 years ago by dylan

Milestone: 0.40.5
Owner: changed from anonymous to sjmiles

comment:4 Changed 15 years ago by sjmiles

Resolution: fixed
Status: newclosed

Style tests all pass under 0.9 code.

Note: See TracTickets for help on using tickets.