David Wittenbrink (@d_wittenbrink) 's Twitter Profile
David Wittenbrink

@d_wittenbrink

Web developer | @[email protected]

ID: 16548362

calendar_today01-10-2008 19:07:34

753 Tweet

224 Followers

1,1K Following

Surma (@dassurma) 's Twitter Profile Photo

Fun tip of the day: Most syntax highlighters as well as prettier understand other web languages as template tags. You don’t need to install any packages, simply alias `String.raw`, the default (implicit) tag! Both files were identical and then processed by prettier.

Fun tip of the day: Most syntax highlighters as well as prettier understand other web languages as template tags. You don’t need to install any packages, simply alias `String.raw`, the default (implicit) tag!

Both files were identical and then processed by prettier.
Bramus (@bramus) 's Twitter Profile Photo

A new and exciting Web Platform Feature that ships with Chrome 118 (coming to you later this week) is @​scope, a way to scope CSS rules to only part of the document. developer.chrome.com/articles/at-sc…

Bramus (@bramus) 's Twitter Profile Photo

Scroll Detection, that’s something you need JS for, right? Guess again! Thanks to Scroll-Driven Animations you can extract the scroll velocity, allowing you to style elements based on the active scroll direction and scroll speed 🤯 Article with demos: bram.us/2023/10/23/css…

Stefan Judis (@stefanjudis) 's Twitter Profile Photo

Relaxed native CSS nesting landed in all three engines. Previously a nested rule had to start with one of these chars &@:.>~+#[*. This syntax limitation has been relaxed and you can now "just" nest stuff. ✅Chrome 120 ✅Firefox 117 ✅Safari 17.2

Relaxed native CSS nesting landed in all three engines.

Previously a nested rule had to start with one of these chars &@:.>~+#[*. 

This syntax limitation has been relaxed and you can now "just" nest stuff.

✅Chrome 120
✅Firefox 117
✅Safari 17.2
Firefox DevTools (@firefoxdevtools) 's Twitter Profile Photo

:has, text-indent: hanging, text-wrap: balance, iframe lazy loading, … @Firefox 121 is released today with lots of presents for web developers 🥳 mozilla.org/en-US/firefox/…

Barry Pollard (@tunetheweb) 's Twitter Profile Photo

Good post from redBus on using Phil Walton 's idle-until-urgent pattern to address INP issues, causes by analytics measurements on interactions. medium.com/redbus-in/redb…

Bramus (@bramus) 's Twitter Profile Photo

Creating a Scroll-Driven Animation is as easy as taking an existing CSS animation and declaring `animation-timeline: scroll()` on the element. The function accepts two parameters: a `<scroller>` and an `<axis>`

Bramus (@bramus) 's Twitter Profile Photo

7 years after I saw this get demoed by Chris Coyier at CSS Day conference, WebKit now added support to animate SVG path data from within CSS through the `d` property. ```css svg:hover path { d: path("M5,2 Q 8,5 5,8"); } ``` Bug: bugs.webkit.org/show_bug.cgi?i… Demo: bram.us/2017/06/21/cha…

7 years after I saw this get demoed by <a href="/chriscoyier/">Chris Coyier</a> at <a href="/CSSDayConf/">CSS Day conference</a>, WebKit now added support to animate SVG path data from within CSS through the `d` property.

```css
svg:hover path {
  d: path("M5,2 Q 8,5 5,8");
}
```

Bug: bugs.webkit.org/show_bug.cgi?i…

Demo: bram.us/2017/06/21/cha…
Dr Lea Verou (@leaverou) 's Twitter Profile Photo

Another cool CSS Nesting trick: && allows you to double the specificity of any rule while still having a single source of truth for the selector logic.

Another cool CSS Nesting trick: 

&amp;&amp; allows you to double the specificity of any rule while still having a single source of truth for the selector logic.
Bramus (@bramus) 's Twitter Profile Photo

Or use this CSS: ``` .log { scroll-snap-type: y proximity; align-content: end; } .log::after { display: block; content: ""; scroll-snap-align: end; } ``` “… remains snapped to the bottom …unless the user has scrolled away from that edge” — drafts.csswg.org/css-scroll-sna…

Sara Soueidan (@sarasoueidan) 's Twitter Profile Photo

"The hidden=until-found HTML attribute and the beforematch eventare now supported." Great news! Just yesterday I noticed that Firefox expanding the native <details> disclosure widget when using Find-in-page search. 🎉