1898569.html (818B)
1 <!DOCTYPE html> 2 <style> 3 *, 4 *:invalid { 5 padding-inline-end: 28643262.415086553rem; 6 scale: 52% 227 15%; 7 } 8 9 HTML { 10 writing-mode: sideways-lr; 11 } 12 13 *, 14 HTML { 15 background-color: lch(none none 2305); 16 } 17 </style> 18 <script> 19 async function timeout (cmd) { 20 const timer = new Promise((resolve, reject) => { 21 const id = setTimeout(() => { 22 clearTimeout(id) 23 reject(new Error('Promise timed out!')) 24 }, 750) 25 }) 26 return Promise.race([cmd, timer]) 27 } 28 29 window.addEventListener('load', async () => { 30 const video = document.createElementNS('http://www.w3.org/1999/xhtml', 'video') 31 document.documentElement.appendChild(video) 32 for (let i = 0; i < 23; i++) { 33 await timeout(video.requestFullscreen()) 34 } 35 }) 36 </script>