← Previous Next →

Scrawl-canvas v8 - Canvas test 009

Pattern styles; Entity web link anchors; Dynamic accessibility

Move cursor over canvas, or use keyboard tab, to see dynamic hover and accessibility functionality
 
Keyboard navigate between blocks using the tab key. Click (or press keyboard enter) on an entity
to open a new web page
 
Right-click on an entity to reveal a normal <a> anchor link element

To note: Javascript is not running in this browser environment. Our apologies, but this demo has not yet been updated to support progressive enhancement.

Test purpose

To be aware: for reasons unknown, Chrome browsers struggle to apply shadows to entitys that use patterns for their fill and/or stroke, which can lead to a serious decrease in frame rate.

Additionally, using this demo to check zoned canvas User Interactions

Tracking User Interactions

Handle a right-click contextmenu user interaction on a block

Kill and resurrect

To note: There is a curious interplay in Chrome browsers between assets, shadows and the <canvas> element's context engine's "willReadFrequently" attribute. Very occasionally this interplay will combine to kill the performance of a canvas - as happens in this demo:

By default, SC sets "willReadFrequently" to true for all canvas context engines. For <canvas> elements demonstrating bad performance (in Chrome) this can be disabled by including data-will-read-frequently="false" in the element's markup. If setting this attribute on a canvas, additional testing will be required in non-Chrome browsers to make sure performance is not degraded in those environments.

Touch test: should work as expected - but dragging a finger from one block to another may lead to web page navigation being blocked by browser

Annotated code