- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Tue, 27 Jan 2015 13:29:50 -0500
- To: xing <422639122@qq.com>
- Cc: Public CSS Test suite mailing list <public-css-testsuite@w3.org>
Le 2015-01-27 02:42, xing a écrit : > Hey all, > Hello Xing, > > I am a case developer. I want to add a reference file for > t422-rgba-clip-outside-device-gamut-b.xht test (saved at > csswg-test/css-color-3) Test: http://test.csswg.org/source/css-color-3/t422-rgba-clip-outside-device-gamut-b.xht > which is used to check 'Test clipping of > rgba() values outside the device gamut.' > > > Code of this case is as below: > > > <p>Every row in this table should have both columns the same > color:</p> > > > <table> > <tr> > <th style="background:white; color: black">Column 1</th> > <th style="background:black; color: white">Column 2</th> > </tr> > <tr> > <td style="background: rgba(-30, 500, -1, 0.6)"> </td> > <td style="background: rgb(102, 255, 102)"> </td> > </tr> > <tr> > <td style="background: rgba(-260, -254, 300, 0.4)"> </td> > <td style="background: rgb(153, 153, 255)"> </td> > </tr> > <tr> > <td style="background: rgba(-254, 256, 0, 0.6)"> </td> > <td style="background: rgb(102, 255, 102)"> </td> > </tr> > ... ... > > > And I create a reference file like this: > > <p>Every row in this table should have both columns the same > color:</p> > > > <table> > <tr> > <th style="background:white; color: black">Column 1</th> > <th style="background:black; color: white">Column 2</th> > </tr> > <tr> > <td colspan='2' style="background: rgb(102, 255, > 102)"> </td> > </tr> > <tr> > <td colspan='2' style="background: rgb(153, 153, > 255)"> </td> > </tr> > <tr> > <td colspan='2' style="background: rgb(102, 255, > 102)"> </td> > </tr> > ... ... Yes, Xing. This would be perfectly acceptable as a reference file. This is exactly what's needed as a reference file (albeit if we had images, using images would also be correct). The test is testing how values outside device gamut are clipped or mapped into the gamut range supported by the device. > From another perspective, the refernce file just check if the render > result of rgba(-30, 500, -1, 0.6) is the same as rgb(102, 255, 102). > So I am not sure if it is all right. Would you please share your > opinion with me? My opinion is that your reference file would be correct for such test. > Thanks so much. > > > Best Regards, > Chenxi The following would also be an acceptable reference file for such t422-rgba-clip-outside-device-gamut-b.xht test (albeit lines 12, 13, 14 of the test could be trimmed): line 12: body { background: white; color: black; } line 13: table { border-spacing: 0 2px; padding: 0; border: none; } line 14: td { border: none; padding: 0; height: 1.2em; } ]]></style> </head> <body> <p><strong>WARNING: This test assumes that the device gamut is sRGB (as it will be for many CRT monitors).</strong></p> <p>Every row in this table should have both columns the same color:</p> <table> <tr> <th style="background:white; color: black">Column 1</th> <th style="background:black; color: white">Column 2</th> </tr> <tr> <td style="background: rgb(102, 255, 102)"> </td> <td style="background: rgb(102, 255, 102)"> </td> </tr> <tr> <td style="background: rgb(153, 153, 255)"> </td> <td style="background: rgb(153, 153, 255)"> </td> </tr> etc... Gérard -- 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 Tuesday, 27 January 2015 18:30:22 UTC