Options:
- # Session Start: Sun Dec 02 00:00:00 2007
- # Session Ident: #html-wg
- # [00:00] * Quits: Lachy (Lachlan@80.202.68.140) (Quit: This computer has gone to sleep)
- # [00:03] * Joins: jgraham_ (james@81.86.218.70)
- # [00:16] * Joins: Lachy (Lachlan@84.215.41.149)
- # [00:33] <mjs> Lachy: am now
- # [00:34] <Lachy> mjs, in WebKit's <video> implementation, why does the image loaded by the poster attribute only display until the video has loaded? Shouldn't it display until the video starts playing?
- # [00:35] <mjs> Lachy: could be a bug, but I thought it did the later (wait until video first plays)
- # [00:36] <Lachy> nope
- # [00:38] * Quits: aroben (aroben@67.160.250.192) (Connection reset by peer)
- # [00:52] <mjs> Lachy: can you file it (<http://bugs.webkit.org>) or should I?
- # [00:53] <Lachy> you can
- # [01:02] <mjs> Lachy: filed http://bugs.webkit.org/show_bug.cgi?id=16226
- # [01:10] * Quits: gsnedders (gsnedders@86.145.188.131) (Quit: gsnedders)
- # [01:10] <Lachy> mjs, you'll need to change that link in the bug report, since that's in my temp directory and will be deleted shortly
- # [01:11] <Lachy> (also, that directory was supposed to be hidden, which is why I sent you the link privately)
- # [01:11] <mjs> Lachy: ah, sorry
- # [01:11] <Lachy> I'll make a proper test case, give me a few minutes
- # [01:11] <mjs> Lachy: I'll delete the URL
- # [01:12] <Philip> Lachy: If you say something was "supposed to be hidden" on a public channel, you know everybody's going to rush to look at it and poke around to see what else they can find in that directory ;-)
- # [01:13] <Lachy> it's gone now!
- # [01:14] <mjs> Lachy: sorry about that, just bug filing habite
- # [01:14] <mjs> *habit
- # [01:28] * Joins: myakura (myakura@122.29.186.5)
- # [01:32] <Lachy> mjs, http://lachy.id.au/dev/markup/tests/html5/video/007 and http://lachy.id.au/dev/markup/tests/html5/video/008
- # [01:40] <Philip> Oh, I just remembered it's probably a bad idea to try to W3Cise the canvas tests now, since the WG might decide to exclude canvas and force all the useful work to happen somewhere else
- # [01:42] <mjs> Philip: and here we witness the amazing power of FUD in stopping progress (though I think that is probably a wise choice on your part)
- # [01:43] <Philip> mjs: It's only stopping progress in the W3Cising direction, which leaves more time for progress in e.g. the integrating-into-browsers direction :-)
- # [01:45] <Philip> (Currently "more time" means "still no time since I've got too many other things to do first", but anyway...)
- # [01:46] <mjs> Philip: I have to figure out how to get your test cases into the WebKit layout test framework
- # [01:47] <Philip> mjs: If there's something I can do to help with that, I'd be happy to attempt to find time to do so
- # [01:48] <Lachy> if anyone missed out on seeing the previous demo video, I've moved them to a new permanent location
- # [01:48] <Lachy> http://lachy.id.au/dev/markup/examples/video/
- # [01:48] <mjs> Philip: for our layout test format, any test that can show a difference in text content, layout metrics or style is best, so the red-green ones will integrate trivially
- # [01:48] <Philip> I really need to go through all the tests some time to make sure they're not broken and reflect the current/proposed spec and aren't missing certain cases
- # [01:49] <mjs> Philip: the blue ones that require inspection will only really work as pixel tests so won't be quite as great, but it would be hard to do fuller automation without having getImageData()
- # [01:49] <mjs> however, I must admit this is a motivation to add getImageData()
- # [01:50] <Philip> I guess I need to think about colour space issues some time too, because currently I'm assuming everything is easy and linear and matches the rendering of the PNGs, which might not be a safe assumption
- # [01:52] <Philip> Oh, and I need to think about how to test optional features (gradients, shadows), or propose that they be made non-optional
- # [01:53] <Philip> Can't think of much else, though
- # [01:55] <Philip> Oh, and I should write patches for browsers that are too lazy to fix the bugs themselves ;-)
- # [01:55] <gavin> Philip: it'd sure be great to get your test in Mozilla's automated test suite as well :)
- # [01:57] <Dashiva> mjs: But who will test getImageData()? :P
- # [01:57] <mjs> Dashiva: it's true that both drawing wrong and having a corresponding bug in getImageData() could make tests accidentally pass, but it seems pretty unlikelly
- # [01:58] <mjs> Philip: for WebKit, it's almost certain <canvas> rendering will remain in line with the way an <img> containing untagged image data renders
- # [01:58] <Philip> gavin: I'd be happy to help with that too, particularly if someone else did any boring / time-consuming bits :-)
- # [01:58] <mjs> Philip: also, patches very welcome, including patches to add some or all of the test suite to our regression tests
- # [02:00] <Philip> Dashiva: You can test getImageData by just drawing stuff and asserting the result values - the real problem is testing that the rendered output is not upside-down or byte-flipped compared to the internal bitmap, and that needs human inspection
- # [02:01] <Philip> My test code already has workarounds for two getImageData bugs (Firefox returning premultiplied alpha, Opera returning BGRA), so most of the automatically-checked tests work even when the getImageData tests fail
- # [02:01] <gavin> Philip: I'm not all that familiar with your tests, but it sounds like they could probably be ported to our mochitest-based framework fairly easily
- # [02:01] <gavin> or perhaps to the "reftest" framework
- # [02:02] <gavin> http://developer.mozilla.org/en/docs/Developing_Tests has some info, if you want to look into it :)
- # [02:06] * Quits: jgraham_ (james@81.86.218.70) (Quit: This computer has gone to sleep)
- # [02:08] * Quits: tH (Rob@87.102.21.203) (Quit: ChatZilla 0.9.79-rdmsoft [XULRunner 1.8.0.9/2006120508])
- # [02:11] <Philip> gavin: I expect most would work as MochiTests (though I've no idea how easy it would be to integrate with that), and only a few would have to be reftests instead
- # [02:12] <Philip> gavin: Some tests depend on accessing things across subdomains (to make sure security checks work sensibly) - is there any way to run those nicely, without depending on an actual external network connection?
- # [02:13] <gavin> yes, we have support for cross-domain testing
- # [02:13] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Quit: Less talk, more pimp walk.)
- # [02:13] <gavin> using a custom HTTP server implemented in JS
- # [02:14] <Philip> Okay, sounds handy
- # [02:14] <gavin> http://developer.mozilla.org/en/docs/Mochitest#How_do_I_test_issues_which_only_show_up_when_tests_are_run_across_domains.3F
- # [02:15] <mjs> we have cross-domain tests using apache
- # [02:15] <mjs> (our regression test setup launches apache)
- # [02:15] <Philip> Hmm... If a page on http://example.com loads an image from ftp://example.com, does that count as being cross domain?
- # [02:16] <mjs> we really have only one kind of test
- # [02:16] <mjs> Philip: normally cross-scheme access is disallowed
- # [02:16] * Quits: myakura (myakura@122.29.186.5) (Quit: Leaving...)
- # [02:16] <mjs> so cross-domain isn't quite the most accurate term
- # [02:16] <mjs> browser security people usually say same-origin
- # [02:16] <mjs> (well, the good ones, the bad ones say cross-site scripting, which is confusing, since that often refers to server-side vulnerabilities too)
- # [02:17] <Philip> Aha, "origin" is the word I wasn't thinking of but should have been
- # [02:19] <Philip> I guess it might be nice to have a single source for all the canvas tests, and automatically construct specialised versions for each user (WebKit, Mozilla, etc), so updates can be more easily propagated to everyone
- # [02:20] <gavin> yeah, that would be ideal
- # [02:20] <gavin> dunno how hard it would be
- # [02:20] <gavin> I know we've imported some external testsuites with various rewriting hacks in the past
- # [02:20] <Philip> That makes it hard for the individual projects to make modifications, though, since they'd have to get the single source updated
- # [02:20] <gavin> but I think those were one time imports
- # [02:22] * Quits: Sander (svl@86.87.68.167) (Quit: And back he spurred like a madman, shrieking a curse to the sky.)
- # [02:23] * Philip generates the test files from a mildly crazy YAML + Python system, so it ought to be relatively straightforward to have various customised test case formats
- # [02:32] <Philip> gavin: The documentation makes it sound like Mochitest is quite a heavyweight mechanism - if I just want to run a bit of HTML and JS and output a boolean pass/fail, is it still the best thing to use?
- # [02:36] <gavin> writing a mochitest that does that isn't too heavyweight
- # [02:36] <gavin> let me find you an example
- # [02:38] <gavin> http://lxr.mozilla.org/seamonkey/source/testing/mochitest/tests/test_bug696.html
- # [02:38] <Philip> http://developer.mozilla.org/en/docs/Mochitest#Try_not_to_use_Mochitest sounds like it's trying to put me off :-)
- # [02:38] <gavin> there's some boilerplate overhead that kind of makes it look complicated
- # [02:39] <gavin> it is trying to put you off, if there's a better alternative :)
- # [02:39] <gavin> in this case I don't think there is
- # [02:39] <gavin> reftest could work, but then you need to provide reference renderings somehow, and for canvas that might be hard in some cases
- # [02:39] <Philip> Okay, thanks :-)
- # [02:41] <Philip> I have PNG reference images for most of the tests, but it's hard to get pixel-perfect matches since <canvas> isn't designed for that precision, so I expect it wouldn't work so well
- # [02:42] <gavin> yeah, could be
- # [02:42] <Philip> (and so lots of the tests use getImageData to extract a few pixels, and check the result is +/- 10% of the expected value, which stops most false negatives and doesn't let through too many false positives)
- # [02:43] * Quits: heycam (cam@203.217.79.225) (Ping timeout)
- # [02:49] * Joins: heycam (cam@203.217.91.18)
- # [03:17] * Joins: Zeros (Zeros-Elip@69.140.40.140)
- # [04:45] <mjs> getImageData is great for testability
- # [04:45] <mjs> kinda makes me want to implement it
- # [05:11] * Quits: mjs (mjs@64.81.48.145) (Quit: mjs)
- # [05:14] * Joins: mjs (mjs@64.81.48.145)
- # [05:24] * Joins: aroben (adamroben@67.160.250.192)
- # [06:38] * Quits: Zeros (Zeros-Elip@69.140.40.140) (Quit: Leaving)
- # [07:28] * Quits: sbuluf (rimz@200.49.132.89) (Ping timeout)
- # [07:50] * Joins: sbuluf (dmgfopl@200.49.132.97)
- # [07:51] * Quits: sbuluf (dmgfopl@200.49.132.97) (Quit: sbuluf)
- # [07:53] * Joins: sbuluf (hwdp@200.49.132.87)
- # [08:38] * Joins: shepazu_ (schepers@128.30.52.30)
- # [08:38] * Quits: shepazu (schepers@128.30.52.30) (Ping timeout)
- # [09:40] * Quits: sbuluf (hwdp@200.49.132.87) (Ping timeout)
- # [09:45] * Parts: anne (annevk@82.156.27.18)
- # [09:48] * Quits: aroben (adamroben@67.160.250.192) (Connection reset by peer)
- # [09:48] * Joins: aroben (adamroben@67.160.250.192)
- # [10:10] * Joins: ROBOd (robod@89.122.216.38)
- # [10:15] * Joins: jgraham_ (james@81.86.218.70)
- # [10:48] * Quits: aroben (adamroben@67.160.250.192) (Quit: aroben)
- # [12:00] * Joins: gsnedders (gsnedders@86.145.188.131)
- # [12:21] * Joins: sbuluf (pzamdx@200.49.132.103)
- # [12:21] * Quits: sbuluf (pzamdx@200.49.132.103) (Quit: sbuluf)
- # [12:21] * Joins: sbuluf (zblzp@200.49.132.103)
- # [14:07] * Joins: tH_ (Rob@87.102.21.203)
- # [14:07] * tH_ is now known as tH
- # [14:30] * Joins: Sander (svl@86.87.68.167)
- # [14:44] * Quits: Lachy (Lachlan@84.215.41.149) (Quit: Leaving)
- # [14:45] * Joins: Lachy (Lachlan@84.215.41.149)
- # [15:07] <Philip> mjs: I certainly won't complain if you want to implement getImageData :-)
- # [15:08] <Philip> Multiple bonus points go to anyone who can implement it for Excanvas in IE
- # [15:12] * Quits: Lachy (Lachlan@84.215.41.149) (Quit: This computer has gone to sleep)
- # [15:13] <Philip> anne: I've added some notes to http://wiki.whatwg.org/wiki/SVG_and_canvas
- # [15:51] * Joins: Lachy (Lachlan@88.91.106.25)
- # [16:05] * Quits: Sander (svl@86.87.68.167) (Quit: And back he spurred like a madman, shrieking a curse to the sky.)
- # [16:21] * Joins: anne-mac (annevk@80.202.68.140)
- # [16:23] * Joins: myakura (myakura@122.29.186.5)
- # [16:26] <anne-mac> thanks Philip, that's useful :)
- # [16:26] * Philip notices that http://www.w3.org/TR/SVG-access/ uses SVG in no namespace (except in the final example)
- # [16:26] <Philip> (Is that just an error, or is it correct according to an old/obsolete version of SVG?)
- # [16:27] <Philip> anne-mac: I expect there are more things to say but I can't think of any more right now :-)
- # [16:29] <anne-mac> old obsolete version of SVG says Charles
- # [16:29] <anne-mac> he notes that the DTD reference also says "CR"
- # [16:33] <Philip> Ah, http://www.w3.org/TR/2000/CR-SVG-20000802/struct.html#DOMInterfaces seems to indicate you have to use <svg:svg> when embedding in another document, but can use plain <svg> for the root element of an SVG document
- # [16:48] * Quits: anne-mac (annevk@80.202.68.140) (Ping timeout)
- # [17:00] * Quits: gsnedders (gsnedders@86.145.188.131) (Quit: gsnedders)
- # [17:06] * Quits: myakura (myakura@122.29.186.5) (Quit: Leaving...)
- # [17:11] * Joins: Sander (svl@86.87.68.167)
- # [17:19] * Joins: gsnedders (gsnedders@86.145.188.131)
- # [18:18] * Quits: ChrisWilson (cwilso@131.107.0.104) (Ping timeout)
- # [18:23] * Joins: ChrisWilson (cwilso@131.107.0.103)
- # [18:40] * Joins: aroben (adamroben@67.160.250.192)
- # [18:50] * Joins: anneruneh (opera@80.203.30.152)
- # [19:11] * Quits: aroben (adamroben@67.160.250.192) (Ping timeout)
- # [19:22] * Quits: Lachy (Lachlan@88.91.106.25) (Quit: This computer has gone to sleep)
- # [19:27] * Joins: zcorpan (zcorpan@83.227.33.203)
- # [19:47] * Quits: zcorpan (zcorpan@83.227.33.203) (Ping timeout)
- # [19:52] * Joins: Lachy (Lachlan@80.203.102.149)
- # [19:56] * Quits: Lachy (Lachlan@80.203.102.149) (Ping timeout)
- # [19:57] * Quits: anneruneh (opera@80.203.30.152) (Ping timeout)
- # [20:13] * Joins: aroben (adamroben@67.160.250.192)
- # [21:11] * Joins: Lachy (Lachlan@80.203.30.152)
- # [21:16] * Quits: aroben (adamroben@67.160.250.192) (Quit: aroben)
- # [21:25] * Joins: hober (ted@68.107.112.172)
- # [21:30] * Quits: ROBOd (robod@89.122.216.38) (Quit: http://www.robodesign.ro )
- # [21:34] * Quits: Lachy (Lachlan@80.203.30.152) (Quit: Leaving)
- # [22:16] * Joins: zcorpan (zcorpan@83.227.33.203)
- # [22:48] * Quits: zcorpan (zcorpan@83.227.33.203) (Ping timeout)
- # [23:01] <Philip> Mochitest says "Passed: 4. Failed: 0", which sounds good so far
- # [23:40] * Joins: dbaron (dbaron@71.204.145.103)
- # [23:51] * Joins: heycam` (cam@130.194.72.84)
- # Session Close: Mon Dec 03 00:00:00 2007
The end :)