W3C home > Mailing lists > Public > public-css-testsuite@w3.org > October 2012

background-size-013 and background-size-014 are weak (Re: New tests submission for css3 background-clip/-origin/-size)

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Sat, 13 Oct 2012 19:41:30 -0400
Message-ID: <4f1c20c79b3d4ea49e8038d0fec1cf8b.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Zhang, Zhiqiang" <zhiqiang.zhang@intel.com>
Cc: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>, "Christensen, Kenneth" <kenneth.christensen@intel.com>, "Zhang, Haili" <haili.zhang@intel.com>, "Yu, Ling L" <ling.l.yu@intel.com>, "Yang, Lei A" <lei.a.yang@intel.com>
Le Sam 13 octobre 2012 5:09, Zhang, Zhiqiang a écrit :

> Review is appreciated:
> https://test.csswg.org/shepherd/search/testcase/author/intel/status/submitted/
> Thanks,
> Zhiqiang


One aspect of the test that is maybe weak is that the intrinsic
dimensions of background-image are larger and taller than the tested
values. So, if an UA does not support background-size or does not scale
down (from 60px to 45px) the background-image, then the test will pass
anyway when it should fail. A way to counteract or compensate this is to
create a reversed test that has the red #test being background-sized
down (from say 100px intrinsic to 60px) and then have a smaller green
square #ref (say a 60x60 green square) overlap it.

red_box.png is 100px by 100px in




Just as I thought, background-size-013.html and background-size-014.html
are passed by weak and/or buggy browsers (IE7, IE8, NS6.2, Amaya 11.4.4,
Hv3 TKHTML alpha 16) when these 2 tests should fail in such browsers.
These 2 tests should be considered as tests which do not fail and can
not fail in browsers that only support CSS1.

Zhiqiang, I believe those 2 tests should be redone in a way that these
tests display red when background-size is not scaling down the
background-image (original intrinsic height and intrinsic width)

On the same test design perspective,


is doing the right thing: it will display red if background-size
declaration is not applied at all or if it is not supported. There is
also a good chance that it may display red too if background-size
declaration is not applied correctly.

Contributions to the CSS 2.1 test suite:

CSS 2.1 Test suite RC6, March 23rd 2011:

CSS 2.1 test suite harness:

Contributing to to CSS 2.1 test suite:
Received on Saturday, 13 October 2012 23:42:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:25 UTC