W3C home > Mailing lists > Public > www-style@w3.org > November 2009

Lots of background-size testcases

From: Jeff Walden <jwalden@MIT.EDU>
Date: Mon, 02 Nov 2009 17:10:23 -0800
Message-ID: <4AEF82FF.1000901@mit.edu>
To: www-style@w3.org
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):


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.

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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:40 UTC