File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
web-workers/offscreen-canvas-worker Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 10
10
< body >
11
11
< header >
12
12
< h1 > OffscreenCanvas and worker threads</ h1 >
13
+ < p >
14
+ < b > Note:</ b > your browser must support
15
+ < a
16
+ href ="https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas "
17
+ > < code > OffscreenCanvas</ code > </ a
18
+ > .
19
+ </ p >
13
20
< p > This example has two canvases with incrementing counters.</ p >
14
21
15
22
< p >
@@ -55,15 +62,15 @@ <h1>OffscreenCanvas and worker threads</h1>
55
62
</ div >
56
63
< div id ="canvas-description ">
57
64
< p >
58
- < b > When the main thread is blocked</ b > , all UI elements are frozen.
59
- The hover effect on buttons is affected like this one :
65
+ < b > When the main thread is blocked</ b > , all UI elements are frozen.< br />
66
+ The hover effect on buttons is also blocked :
60
67
</ p >
61
68
< button > Example button</ button >
62
69
< p >
63
70
< b > When the worker thread is blocked</ b > , the main thread is free to
64
71
do work such as the element hover effects and animations. Blocking the
65
72
worker thread will still prevent Canvas B's counter from being
66
- updated, but the UI stays responsive while this happens .
73
+ updated, but the rest of the UI stays responsive while this is true .
67
74
</ p >
68
75
</ div >
69
76
Original file line number Diff line number Diff line change @@ -52,10 +52,6 @@ canvas:hover {
52
52
53
53
# canvas-description {
54
54
max-width : 50% ;
55
- text-align : center;
56
- }
57
-
58
- # canvas-description > p {
59
55
text-align : left;
60
56
}
61
57
You can’t perform that action at this time.
0 commit comments