Exercise 13.06: Progressive Enhancement
If we take a moment to analyze the code we created in Exercise 13.05, Animating a Paint Worklet, we will see that it presents a few difficulties as code we may want to use on a live website.
If you open the
The following screenshot shows the result of running
CSS.registerProperty. The button is difficult to use as it appears with none of the expected styles:
In this exercise, we will make our code more robust and provide a decent experience for those browsers that...