[webkit-dev] Possible canvas-bug when linking to an external CSS file?

Martin Dittus dekstop at gmail.com
Wed Sep 7 14:47:33 PDT 2005


Hi all,

I've found that my canvas pages stop working in Safari as soon as I
add an external CSS file to the page. The canvas is added to the page,
but all drawing seems to be ignored.

I created three simple test cases:

test 1 - simple page with external CSS, and all canvas drawing done inline
test 2 - simple page without external CSS, and all canvas drawing done inline
test 3 - simple page with external CSS, and all canvas drawing done via onload()

Both Safari 2.0.1 (412.5) and the most recent WebKit CVS version show
the same behavior:

test 1 doesn't work (blank canvas) 
test 2 works (canvas filled black)
test 3 works (canvas filled black)

Just to be sure I checked with a recent Firefox release, and all three
test cases worked fine (canvas filled black).


Please see if you can replicate this behavior.

You can look at the test cases at
http://dekstop.de/weblog/2005/09/safari_canvas_bug/


Thanks,
Martin Dittus



More information about the webkit-dev mailing list