Best of Google Chrome — June 2024
- 1
- 2
CSS-Tricks·2y
Transitioning to Auto Height
Chrome Canary has introduced support for transitioning CSS properties to 'auto' values, significantly improving the ability to animate elements whose dimensions are unknown. This feature helps avoid the need for fixed-height transitions, allowing for more dynamic and responsive designs. The implementation leverages CSS 'calc()' to compute dimensions dynamically, and can handle properties like height, block-size, width, and inline-size. Additionally, transitioning from 'display: none' remains complex but doable with 'transition-behavior: allow-discrete' and '@starting-style' declarations.
- 3
Web Dev Simplified·2y
Only The Best Developers Understand How This Works
To become a top-tier JavaScript developer, mastering how JavaScript handles memory management is essential. This includes understanding garbage collection and using advanced debugging tools to identify memory leaks within your application. Using Chrome's memory tab and debugging features can significantly aid in examining stored memory and optimizing code performance.
- 4
- 5
Hacker News·2y
Flow Charts with CSS Anchor Positioning
The introduction of the CSS Anchor Positioning API in Chrome 125 simplifies complex positioning tasks like creating popovers and tooltips by allowing elements to be positioned relative to others. This technique can also be applied to create basic flow charts using just CSS. The post explains how to define unique anchor names and positions, demonstrates anchoring elements to multiple other elements, and explores creating flow chart nodes and lines with CSS pseudo-elements. Advanced techniques for creating multiple node flow charts and draggable flow charts using a bit of JavaScript are also covered.