cursor-image-png-040

Cursor property, PNG

WeasyPrint

This browser

Flags
interact
Assertion
Test checks that gamma correction on PNG image cursor is correct.

Source

 1 <!DOCTYPE html>
 2 <html><head><title>CSS Basic User Interface Test: Cursor property, PNG</title>
 3 <link href="mailto:chris@w3.org" rel="author" title="Chris Lilley">
 4 <link href="http://www.w3.org/TR/css3-ui/#cursor" rel="help">
 5 <meta content="interact" name="flags">
 6 <meta content="Test checks that gamma correction on PNG image cursor is correct." name="assert">
 7 <style>
 8 	.test{background: #ffe5b4; border: 2px solid #555;
 9 	cursor:url(support/PTS/g04n3p04.png), help; width :128px; height: 224px; font-size: 32px; line-height:32px}
10 
11 </style>
12 </head><body>
13   <p>The test passes if all the reference images look the same, AND when moved inside the peach rectangle,  the cursor looks like the reference images (ignoring the small numeric values in each image).</p>
14 
15   <p class="test">
16   <img src="support/PTS/g03n3p04.png"><br>
17   <img src="support/PTS/g04n3p04.png"><br>
18   <img src="support/PTS/g05n3p04.png"><br>
19   <img src="support/PTS/g07n3p04.png"><br>
20   <img src="support/PTS/g10n3p04.png"><br>
21   <img src="support/PTS/g25n3p04.png"><br> </p>
22   <p>Indexed PNG images with various gamma values, 4 bit/pixel. Pixel values adjusted so that, when gamma corrected, the images look the same.
23 
24 </p></body></html>