- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Mon, 19 Mar 2012 19:05:56 -0400
- To: "Arron Eicholz" <arron.eicholz@microsoft.com>
- Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
Hello, The text assert of several background-0* tests are stating things which are not always true and sometimes not even correct for their very own tests. Eg.: http://test.csswg.org/suites/css2.1/nightly-unstable/html4/background-003.htm "Background with repeat only does nothing to the element." While that may be what we can view in the rendered test, it is dangerous to speak in such general terms and to conclude in such manner. Background shorthand with only its background-repeat subproperty set will nevertheless have all of the other background sub-properties use their initial values (transparent for color, scroll for attachment, 0% 0% for position, none for image). All these can be inherited too from descendants with inherit keyword. Another aspect which makes such text assert wrong is that the background shorthand declaration is immediately followed by a background-image: so, the background shorthand declaration is not alone and "only" in the test itself. There are at least one dozen of tests with test assert text claims ("* only does nothing to the element") which I find dangerous/doubtful to say or inaccurate or just incorrect. ---------------- E.g http://test.csswg.org/suites/css2.1/nightly-unstable/html4/background-035.htm and http://test.csswg.org/suites/css2.1/nightly-unstable/html4/background-040.htm "Since the initial value for background-repeat is repeat the position and color declarations will have no effect." In general and in these 2 tests, such statement is not true. The image will be initially positioned (anchored) from the top right and the rightmost cat image will not be cut off, precisely because of the position declaration. The test assert text contradicts partly the test's pass/fail condition sentence itself. Also, it is possible to have an image with parts of it transparent; in which case, the color declaration would have an effect. Btw, I checked the submitted test and we do not have a test using an image with transparent parts. " When the image is available, it is rendered on top of the background color. (Thus, the color is visible in the transparent parts of the image). " http://www.w3.org/TR/CSS21/colors.html#propdef-background-image Gérard -- Contributions to the CSS 2.1 test suite: http://www.gtalbot.org/BrowserBugsSection/css21testsuite/ CSS 2.1 Test suite RC6, March 23rd 2011: http://test.csswg.org/suites/css2.1/20110323/html4/toc.html CSS 2.1 test suite harness: http://test.csswg.org/harness/ Contributing to to CSS 2.1 test suite: http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Monday, 19 March 2012 23:06:29 UTC