cubing / cubing.js

🛠 A library for displaying and working with twisty puzzles. Also currently home to the code for Twizzle.
https://js.cubing.net/cubing/
GNU General Public License v3.0
232 stars 42 forks source link

Use Constructable Style Sheets #266

Open lgarron opened 1 year ago

lgarron commented 1 year ago

Safari will now support them! 🥳 https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes

https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/CSSStyleSheet

I wrote CSSSource with this upgrade in mind, so it's time to replace that: https://github.com/cubing/cubing.js/blob/fdf6f0ae4af29de4aced2a02307f2e1ed78ced63/src/cubing/twisty/views/ManagedCustomElement.ts#L6-L18