servo/tests/wpt/css-tests/css-ui-3_dev/html/cursor-image-png-001.htm

17 lines
No EOL
794 B
HTML

<!DOCTYPE html>
<html><head><title>CSS Basic User Interface Test: Cursor property, PNG</title>
<link href="mailto:chris@w3.org" rel="author" title="Chris Lilley">
<link href="http://www.w3.org/TR/css3-ui/#cursor" rel="help">
<meta content="interact image" name="flags">
<meta charset="UTF-8">
<meta content="Test checks that a monochrome (type 0) PNG image, 1 bit/pixel, is supported as a CSS custom cursor." name="assert">
<style>
div.test{background: #AAA; border: 2px solid #555;
cursor:url(support/PTS/basn0g01.png), help; width: 128px; height: 64px}
div.test:before {content: url(support/PTS/basn0g01.png)
</style>
</head><body>
<p>The test passes if, when moved inside the grey rectangle, the cursor looks like the reference image.</p>
<div class="test"> </div>
</body></html>