@hypeddev

I tweet about UX, web design and new CSS/HTML/frontend web stuff.

London, England 🇬🇧
Joined June 2021
Afaik the original demo uses <pre contenteditable="plaintext-only"> + Range + CSS Custom Highlights But we can now syntax-highlight <textarea> + <input> too, using OpaqueRange Check @hypeddev article for more details here: nitter.cf/webstandardsdev/status…
Highlighting a range of text inside a form field. @hypeddev shows how OpaqueRange brings the CSS Custom Highlight API to form controls: call createValueRange() and style the result with ::highlight(). Chromium 152 only for now. #chrome #js olliewilliams.xyz/blog/opaqu…
1
1
9
3,439
Ollie Williams retweeted
This is a great article. I've always been sus about the hype around JPEG XL, as it never stacked up when I actually tested it with web use-cases. giannirosato.com/blog/post/c…
9
8
93
13,417
Please vote for Element.moveBefore for Interop 2027 🙏 github.com/web-platform-test…
👀 React <ViewTransition> + DOM moveBefore() - moveBefore() now allows React to preserve state during siblings reconciliation (experimental channel) - you can animate those stateful elements with <ViewTransition> Quite cool 😁
4
6
117
14,137
👀 Out-of-order streaming - Now in the HTML spec 🎉 Positive positions from browsers, already in Chrome
18
54
19
486
106,426
Safari Technology Preview has added support for intercepting a navigation with a precommit handler, part of the Navigation API that already shipped in Firefox and Chrome/Edge. Hopefully frontend routers will finally start adopting this API. webkit.org/blog/18194/releas…
1
11
1,390
“Persistent widgets are embedded browsing contexts, like iframes, but they can persist across same-origin navigations without reloading.” groups.google.com/a/chromium…
2
286
Ollie Williams retweeted
It's amazing to me that GitHub has rewritten itself as a React app, but now the only way to get the number of open issues and PRs to update is to hard-reload the page.
39
28
8
1,126
71,413
Chrome has added the ability to determine whether an event was triggered by a CSS pseudo element
2
4
25
1,926
Together with the declarative API, it will also include a way to import HTML in JavaScript: import fragment from "/partial.html" with { type: "fragment" }
2
10
2,194