Skip to content

Commit

Permalink
Merge pull request w3c#783 from frivoal/florian/cursor-tests
Browse files Browse the repository at this point in the history
Florian/cursor tests

With the two changes Florian just made, I believe all tests are correct.
  • Loading branch information
bert-github committed Dec 13, 2016
2 parents f20ab5d + 7c27365 commit d68ccab
Show file tree
Hide file tree
Showing 39 changed files with 853 additions and 0 deletions.
20 changes: 20 additions & 0 deletions css-ui-3/cursor-001.html
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: none</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'none' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: none;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor disappears.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-002.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: context-menu</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'context-menu' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: context-menu;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates availability of a context menu.
Often rendered as an arrow with a small menu-like graphic next to it.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-003.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: cell</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'cell' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: cell;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that a cell or set of cells may be selected.
Often rendered as a thick plus-sign with a dot in the middle.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-004.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: vertical-text</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'vertical-text' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: vertical-text;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates vertical-text that may be selected.
Often rendered as a horizontal I-beam.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-005.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: alias</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'alias' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: alias;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates an alias of/shortcut to something is to be created.
Often rendered as an arrow with a small curved arrow next to it.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-006.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: copy</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'copy' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: copy;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates something is to be copied.
Often rendered as an arrow with a small plus sign next to it.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-007.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: no-drop</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'no-drop' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: no-drop;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that the dragged item cannot be dropped at the current cursor location.
Often rendered as a hand or pointer with a small circle with a line through it.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-008.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: not-allowed</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'not-allowed' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: not-allowed;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that the requested action will not be carried out.
Often rendered as a circle with a line through it.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-009.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: grab</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'grab' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: grab;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that something can be grabbed (dragged to be moved).
Often rendered as the backside of an open hand.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-010.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: grabbing</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'grabbing' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: grabbing;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that something is being grabbed (dragged to be moved).
Often rendered as the backside of a hand with fingers closed mostly out of view.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-011.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: ew-resize</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'ew-resize' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: ew-resize;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that something can be resized horizontally, bidirectionally.
Often rendered as arrows pointing left and right.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-012.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: ns-resize</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'ns-resize' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: ns-resize;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that something can be resized vertically, bidirectionally.
Often rendered as arrows pointing up and down.</p>
<div></div>
</body>
22 changes: 22 additions & 0 deletions css-ui-3/cursor-013.html
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: nesw-resize</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'nesw-resize' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: nesw-resize;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that something can be resized diagonally
along a north-east to south-west axis, bidirectionally.
Often rendered as arrows pointing north-east and south-west.</p>
<div></div>
</body>
22 changes: 22 additions & 0 deletions css-ui-3/cursor-014.html
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: nwse-resize</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'nwse-resize' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: nwse-resize;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that something can be resized diagonally
along a north-west to south-east axis, bidirectionally.
Often rendered as arrows pointing north-west and south-east.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-015.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: col-resize</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'col-resize' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: col-resize;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that something can be resized horizontally, bidirectionally.
Often rendered as arrows pointing left and right with a vertical bar separating them.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-016.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: row-resize</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'row-resize' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: row-resize;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that something can be resized vertically, bidirectionally.
Often rendered as arrows pointing up and down with a horizontal bar separating them.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-017.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: all-scroll</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'all-scroll' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: all-scroll;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that the something can be scrolled in any direction.
Often rendered as arrows pointing up, down, left, and right with a dot in the middle.</p>
<div></div>
</body>
21 changes: 21 additions & 0 deletions css-ui-3/cursor-018.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: cursor: zoom-in</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor">
<meta name="flags" content="interact">
<meta charset="UTF-8">
<meta name="assert" content="The 'zoom-in' cursor value is supported">
<style>
div {
cursor: url("support/cursors/fail.png"), help;
cursor: zoom-in;
width: 100px;
height: 100px;
border: solid blue;
}
</style>
<body>
<p>The test passes if, when moved inside the blue box, the cursor indicates that something can be zoomed in.
Often rendered as a magnifying glass with a "+" in the center of the glass.</p>
<div></div>
</body>

0 comments on commit d68ccab

Please sign in to comment.