@@ -34,6 +34,7 @@ Ignored Terms: PaintWorklet
34
34
35
35
<pre class="link-defaults">
36
36
spec:css-break-3; type:dfn; text:fragment
37
+ spec:css-display-3; type:dfn; text:box
37
38
spec:infra; type:dfn; text:list
38
39
</pre>
39
40
@@ -634,8 +635,15 @@ Note: The contents of the resulting image are not designed to be accessible. Aut
634
635
Examples {#examples}
635
636
====================
636
637
637
- Example 1: A colored circle. {#example-1}
638
- -----------------------------------------
638
+ Example 1: Colored Circle {#example-1}
639
+ --------------------------------------
640
+
641
+ The example below makes use of the fact that <<paint()>> functions are able to be animated. E.g.
642
+ when the textarea is focused in the example below, the <code> --circle-color</code> property will
643
+ transition from <code> deepskyblue</code> to <code> purple</code> .
644
+
645
+ This ability isn't limited to just transitions, it also applies to CSS animations, and the Web
646
+ Animations API.
639
647
640
648
<pre class='lang-markup'>
641
649
<!DOCTYPE html>
@@ -691,8 +699,8 @@ registerPaint('circle', class {
691
699
});
692
700
</pre>
693
701
694
- Example 2: Image placeholder. {#example-2}
695
- ------------------------------------------
702
+ Example 2: Image Placeholder {#example-2}
703
+ -----------------------------------------
696
704
697
705
It is possible for an author to use paint to draw a placeholder image while an image is being
698
706
loaded.
@@ -828,8 +836,8 @@ registerPaint('arc', class {
828
836
});
829
837
</pre>
830
838
831
- Example 4: Different color based on size {#example-4}
832
- -----------------------------------------------------
839
+ Example 4: Different Colors ( based on size) {#example-4}
840
+ --------------------------------------------------------
833
841
834
842
<pre class='lang-markup'>
835
843
<h1>
0 commit comments