Una ๐Ÿ‡บ๐Ÿ‡ฆ

31.1K posts

Una ๐Ÿ‡บ๐Ÿ‡ฆ banner
Una ๐Ÿ‡บ๐Ÿ‡ฆ

Una ๐Ÿ‡บ๐Ÿ‡ฆ

@Una

Building the web you build on @GoogleChrome โœจ๐ŸŽจ Web Experience DevRel Lead ๐Ÿฆ„ @csswg + @openuicg. #CSSPodcast host ๐ŸŽฌ https://t.co/J9Y8U6Bz4f

Brooklyn, NY Katฤฑlฤฑm Kasฤฑm 2008
1.4K Takip Edilen88.1K Takipรงiler
Una ๐Ÿ‡บ๐Ÿ‡ฆ
@solarise_webdev I'd actually love to hear more about where you ran into issues like these. Would be super helpful for the eng team! Can you DM me more details?
English
1
0
1
85
Robin
Robin@solarise_webdevยท
Exactly! A great visual cue that itโ€™s integrated tightly with the DOM. And error, focus states etc all controlled by CSS *But* I still had to apply some workaround to actually line up the inputs with CSS transforms (which makes sense ofc as itโ€™s doing arbitrary things with canvas textures), but itโ€™s a neat effect regardless
English
1
0
0
102
Una ๐Ÿ‡บ๐Ÿ‡ฆ
You know its real DOM content because look at those browser-UI form validation popovers ๐Ÿ˜† still accessible and placed correctly ๐Ÿ’ฏ
Robin@solarise_webdev

HTML can't run Doom But HTML can now run *inside* Doom! Thanks to HTML-in-Canvas! Fully accessible DOM elements drawn into Doom's own wall textures. This demo uses a WebAssembly port (jacobenget/doom.wasm) of the original C source. See it in action at html-in-canvas-stuff.solarise.dev/doom.html - Requires Chrome with chrome://flags/#canvas-draw-element enabled. On every Doom tick, HTML-in-Canvas's drawElementImage() captures the DOM form (child of ) to an offscreen buffer, it's quantised to Doom's 256-colour palette, and the bytes are written straight into the cached patch for the appropriate texture in Doom. Doom's own software renderer then paints it onto E1M1 as a wall texture - which means perspective warp, sector lighting, and even the damage-red tint all get included and applied to the HTML form elements. It's just a texture to Doom.

English
2
8
171
10.6K
Una ๐Ÿ‡บ๐Ÿ‡ฆ retweetledi
Sawyer Hood
Sawyer Hood@sawyerhoodยท
After seeing the reaction to pretext, I can tell you: the world is not ready for HTML-in-Canvas.
English
35
89
1.8K
108.2K
Una ๐Ÿ‡บ๐Ÿ‡ฆ retweetledi
ใƒใ‚ทใƒขใƒˆใ‚ฟใ‚ฏใƒž / FunTech
ใ“ใ‚ŒใŒๆœ€ใ‚‚ใƒฆใƒผใ‚ถใƒผใซๅ„ชใ—ใใชใ„ใƒ•ใ‚ฉใƒผใƒ UIใงใ™ ใ‚นใƒ‘ใƒ ๅฏพ็ญ–ใซใคใ‹ใˆใพใ™ ChromeใฎHTML-in-Canvas APIใงใคใใ‚Šใพใ—ใŸ
ๆ—ฅๆœฌ่ชž
57
157
2.1K
131.8K
Tim Holman
Tim Holman@twholmanยท
The first rule of html-in-canvas api, never share anything but a video of your html-in-canvas demo.
English
7
10
320
27.4K
Una ๐Ÿ‡บ๐Ÿ‡ฆ retweetledi
ไธ€ไธ
ไธ€ไธ@yisiblยท
I and @imCGQAQ are currently working on implementing the CSS `polygon() round` keyword in Chrome. This is one of my favorite CSS features! Thanks to @LeaVerou for bringing it to CSS. The CodePen link is coming soon.
English
1
13
115
15.3K
Jake Archibald
Jake Archibald@jaffathecakeยท
@Una Whey, good times! Congratulations!
Jake Archibald tweet media
English
1
0
25
2.9K
Una ๐Ÿ‡บ๐Ÿ‡ฆ
7 years at Google today!? Wow time flies. So much has changed in that time, and I'm still happy to be doing meaningful work on a product that impacts billions of users with an awesome team ๐Ÿ’™ This much hasn't changed ๐Ÿ˜Š
Una ๐Ÿ‡บ๐Ÿ‡ฆ tweet mediaUna ๐Ÿ‡บ๐Ÿ‡ฆ tweet mediaUna ๐Ÿ‡บ๐Ÿ‡ฆ tweet media
English
8
2
258
11.4K
Una ๐Ÿ‡บ๐Ÿ‡ฆ
@FourEyedWiz I just learned that cross-origin content is not supported due to security risks so it would need to be an iframe or video hosted on the same origin
English
1
0
1
48
Damilare Akinlaja
Damilare Akinlaja@FourEyedWizยท
@Una I am sure it is possible. I am just saying the examples people are showing are not selling it well.
English
1
0
0
44
James Levi
James Levi@jameslevicfยท
venn diagrams are so back
English
23
86
1.4K
59.3K
Wes Bos
Wes Bos@wesbosยท
@Una Thanks Una! Means a lot. More demos coming shortly
English
1
0
6
1.5K
Una ๐Ÿ‡บ๐Ÿ‡ฆ
@tfdev__ Literally the Basement studio site is one of the first things I showed to the PM last year as an example of where this would be amazing. *fangirling* can't waitttt to see what else you build
English
1
1
10
2.7K
Tomas Ferreras
Tomas Ferreras@tfdev__ยท
I just built a Chrome extension that brings experimental HTML-in-Canvas to life. It includes a live shader editor and presets. The extension is currently in the Chrome Store review queue, but you can dive into the source code right now! repo: github.com/tomasferrerasdโ€ฆ
English
9
36
439
32.3K
Wes Bos
Wes Bos@wesbosยท
A bit more explanation. Working on some more demos to show soon
English
7
15
403
39.1K
Wes Bos
Wes Bos@wesbosยท
HTML in Canvas API is NUTS
English
65
141
2.4K
1.1M
Una ๐Ÿ‡บ๐Ÿ‡ฆ retweetledi
Manu Arora
Manu Arora@mannupaajiยท
Use ๐šœ๐š’๐š‹๐š•๐š’๐š—๐š-๐š’๐š—๐š๐šŽ๐šก() to stagger children of a parent without having to manually track a using --๐š’ ๐šŸ๐šŠ๐š›๐š’๐šŠ๐š‹๐š•๐šŽ๐šœ or having to use an animation library .๐š’๐š๐šŽ๐š– { ๐šŠ๐š—๐š’๐š–๐šŠ๐š๐š’๐š˜๐š—: ๐šŽ๐š—๐š๐šŽ๐š› ๐Ÿถ.๐Ÿบ๐Ÿป๐šœ ๐šŒ๐šž๐š‹๐š’๐šŒ-๐š‹๐šŽ๐šฃ๐š’๐šŽ๐š›(๐Ÿถ.๐Ÿธ๐Ÿธ, ๐Ÿท, ๐Ÿถ.๐Ÿน๐Ÿผ, ๐Ÿท) ๐š‹๐š˜๐š๐š‘; ๐šŠ๐š—๐š’๐š–๐šŠ๐š๐š’๐š˜๐š—-๐š๐šŽ๐š•๐šŠ๐šข: ๐šŒ๐šŠ๐š•๐šŒ(๐Ÿถ.๐Ÿท๐Ÿธ๐šœ * (๐šœ๐š’๐š‹๐š•๐š’๐š—๐š-๐š’๐š—๐š๐šŽ๐šก() - ๐Ÿท)); } @๐š”๐šŽ๐šข๐š๐š›๐šŠ๐š–๐šŽ๐šœ ๐šŽ๐š—๐š๐šŽ๐š› { ๐š๐š›๐š˜๐š– { ๐š˜๐š™๐šŠ๐šŒ๐š’๐š๐šข: ๐Ÿถ; ๐š๐š›๐šŠ๐š—๐šœ๐š๐š˜๐š›๐š–: ๐š๐š›๐šŠ๐š—๐šœ๐š•๐šŠ๐š๐šŽ๐šˆ(๐Ÿผ๐š™๐šก); } ๐š๐š˜ { ๐š˜๐š™๐šŠ๐šŒ๐š’๐š๐šข: ๐Ÿท; ๐š๐š›๐šŠ๐š—๐šœ๐š๐š˜๐š›๐š–: ๐š๐š›๐šŠ๐š—๐šœ๐š•๐šŠ๐š๐šŽ๐šˆ(๐Ÿถ); } } Clean and minimal approach for stagger animations
English
15
33
642
27K
Matt Perry
Matt Perry@mattgperryยท
@Una @motiondotdev I know, me too. Now I just use little dashes to prove I'm a man of the people. My big gap is interruptable view transitions!
English
1
0
2
131
Una ๐Ÿ‡บ๐Ÿ‡ฆ
Proud of our team for making this happen ๐Ÿฅฒ Many years of work, lots of discussions, and many prototypes painfully taken back to the drawing board. *of course it isn't just the Chrome team working on this--the web is a huge collaborative effort--but you can't deny that Chrome is leading the charge here and this post represents a ton of our engineering effort, feature championing, and vision. blog.gitbutler.com/the-great-css-โ€ฆ
English
2
32
205
11.1K
Drazen
Drazen@kingdraleยท
@bdc Hm super janky for me. I am on Arc, which is Chromium based.
English
3
1
9
2.7K
Benjamin De Cock
Benjamin De Cock@bdcยท
CSS view transitions + anchor positioning now let you easily build smooth SPA-like navigation on a good old static website!
English
21
48
1.2K
122.1K