background-001: Color difference (was Re: talk about a reftest test)

Le 2015-01-16 00:34, Xu, JianfengX a écrit :
> Hey all,
> 
> I am a case developer. Just talk about an issue about reftest
> background-001.xht(saved at csswg-test/css21/backgrounds)

Test:
http://test.csswg.org/source/css21/backgrounds/background-001.xht


> which is
> used to check background with color only sets the background of the
> element to the color specified. And the css style of this case is as
> below:
>             div {
>                    background: green,
>                    height: 50px;
>                 }
> The reference file for this case

Reference file:
http://test.csswg.org/source/css21/backgrounds/background-001-ref.xht


> used now is setting a 1x1-green.png


http://test.csswg.org/source/css21/backgrounds/support/1x1-green.png


> picture as background of a div. But the render result is not the same
> as the origin case(I save these two web pages as pictures, compare
> them with image comparison tool, and find there are different).

What are the differences reported by the image comparison tool? Which 
image comparison tool are you using?

Which browser are you using? I ask because if you are using Firefox, a 
wide majority of images may not have been created with saving gamma 
correction information:

Bug 621474 - Image displays incorrect with wrong color (PNG sRGB doesn't 
match)
https://bugzilla.mozilla.org/show_bug.cgi?id=621474

Otherwise, please explain or elaborate. How do you save these web pages 
as png pictures? When you save these as pictures, do you save gamma 
correction information?

> So I create another reference file for this case using the following 
> css style:
>             div {
>                    background: rgb(0,128,0),
>                    height: 50px;
>                 }
> I am not sure if this is all right.

Well, there is a comma "," (逗号) after the rgb definition when there 
should not be any.

Gérard

> Would you please share your
> opinion with me? Too many thanks.
> 
> Best Regards,
> Chen Xi

-- 
Test Format Guidelines
http://testthewebforward.org/docs/test-format-guidelines.html

Test Style Guidelines
http://testthewebforward.org/docs/test-style-guidelines.html

Test Templates
http://testthewebforward.org/docs/test-templates.html

CSS Naming Guidelines
http://testthewebforward.org/docs/css-naming.html

Test Review Checklist
http://testthewebforward.org/docs/review-checklist.html

CSS Metadata
http://testthewebforward.org/docs/css-metadata.html

Received on Monday, 19 January 2015 20:59:47 UTC