Lots of background-size testcases

It's been forever and a day since I *should* have posted these, but here are all the reasonable background-size testcases Mozilla currently uses to verify the correctness of our implementation of background-size (omitting the unreasonable ones: some that test behavior with monstrously large background-size dimensions, plus a few that use -moz-background-inline-policy, previously known as background-break):

http://web.mit.edu/jwalden/www/w3c/background-size-reftests.zip

These tests as originally written all work in Mozilla, save for background-size-no-intrinsic-(height|width)-image.html as we haven't implemented SVG as backgrounds yet.  I had to do a bunch of s/-moz-background-(clip|origin|size)/background-\1/g and s/: (padding|border);/: \1-box;/g to make everything not-vendor-prefixed (some done manually, most done with find and regexes) so it's possible I introduced errors doing so; I'd love to hear about any errors you happen to notice.  The reftest.list file within the zip explains the expected behavior: == followed by two filenames says those two should render identically, != followed by two names says they should render differently.  Several contain/cover tests rely on the canvas having greater height than width, for obvious reasons.  The test files aren't explicitly labeled as such, but all copyright is dedicated to the public domain: use 'em however you want.

Anyway: enjoy.

Jeff

Received on Tuesday, 3 November 2009 01:11:07 UTC