W3C home > Mailing lists > Public > public-css-testsuite@w3.org > January 2015

reftest about t422-rgba-clip-outside-device-gamut-b.xht

From: xing <422639122@qq.com>
Date: Tue, 27 Jan 2015 15:42:32 +0800
To: "public-css-testsuite" <public-css-testsuite@w3.org>
Message-ID: <tencent_31D0F1A9172988FD5C6AF79C@qq.com>
Hey all,


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) 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)">&nbsp;</td>
			<td style="background: rgb(102, 255, 102)">&nbsp;</td>
		</tr>
		<tr>
			<td style="background: rgba(-260, -254, 300, 0.4)">&nbsp;</td>
			<td style="background: rgb(153, 153, 255)">&nbsp;</td>
		</tr>
		<tr>
			<td style="background: rgba(-254, 256, 0, 0.6)">&nbsp;</td>
			<td style="background: rgb(102, 255, 102)">&nbsp;</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)">&nbsp;</td>
        </tr>
        <tr>
          <td colspan='2' style="background: rgb(153, 153, 255)">&nbsp;</td>
        </tr>
        <tr>
          <td colspan='2' style="background: rgb(102, 255, 102)">&nbsp;</td>
        </tr>
      ... ...


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? Thanks so much.


Best Regards,
Chenxiā€¨
Received on Tuesday, 27 January 2015 12:56:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:20 UTC