Skip to content

Commit 520a5e3

Browse files
committed
[css-ui-4] Rework example
The SVG cursor element has been deprecated, so using it in an example is a bad idea.
1 parent 1442d21 commit 520a5e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-ui-4/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,20 +1022,20 @@ Styling the Cursor: the 'cursor' property</h4>
10221022
Here is an example of using several cursor values.
10231023
<pre><code class="lang-css">
10241024
:link,:visited {
1025-
cursor: url(example.svg#linkcursor),
1025+
cursor: url(example.svg),
10261026
url(hyper.cur),
10271027
url(hyper.png) 2 3,
10281028
pointer
10291029
}
10301030
</code></pre>
10311031

10321032
This example sets the cursor on all hyperlinks (whether visited or not)
1033-
to an external SVG <{cursor}>.
1034-
User agents that don't support SVG cursors would simply skip
1033+
to an external SVG image to be used as a cursor.
1034+
If that fails to load, user agents would simply skip
10351035
to the next value and attempt to use the "hyper.cur" cursor.
10361036
If that cursor format was also not supported,
10371037
the UA could attempt to use the "hyper.png" cursor with the explicit hotspot.
1038-
Finally if the UA does not support any of those image cursor formats, the UA would skip to the last value
1038+
Finally if the UA cannot load any of those image cursors, the UA would skip to the last value
10391039
and render the ''pointer'' cursor.
10401040
</div>
10411041

0 commit comments

Comments
 (0)