Weekly Digest // STYLING — Week 48-2026
paletteWeekly Report

Where did the extra 15px come from? | Week 48 CSS and styling

Measure layout overflow before clipping it, test the minimum size of a card image, and check how text and link previews render on their actual platforms.

calendar_todaysummarizeWeek 48-2026
Four causes of horizontal overflow to check before setting overflow-x: hidden on body
TAG: CSS FEATUREREAD_TIME: 6_MIN

Four causes of horizontal overflow to check before setting overflow-x: hidden on body

A 1200px window had only 1185px of usable content width in Yuki Sasai’s Chromium test with a classic scrollbar. An absolutely positioned background sized to 100vw took the full window width and made the page scroll sideways. Sasai measured each element’s bounds, switched that background to 100%, clipped oversized decorations inside their own wrappers, and let fixed-width cards shrink. After the changes, scrollWidth matched clientWidth at five widths from 390px through 1440px. A separate visual check still matters because a decoration can overlap the text at tablet widths without extending the page.
CSS FEATURE5:44

A responsive card with no media queries

Kevin Powell builds a card whose image and text sit side by side when there is room and wrap when their container narrows. The image starts with a 400px flex basis, but replacing it with a much wider image changes where the card wraps because the image brings its own minimum size. Setting min-inline-size: 0 lets even his 1600px image shrink to the intended size. An aspect ratio and object-fit: cover keep a tall photo from stretching the row, at the cost of cropping the picture. A custom property lets someone reusing the card tune its wrapping behavior for the space available.
AI_INFOGRAPHIC
A responsive card with no media queries — infographic
TAG: CSS FEATUREREAD_TIME: 7_MIN

Style Queries as Conditional Modifiers

Moving a row of article cards into a split header changes the space it occupies and the direction readers can comfortably scroll. Kevin Powell lets the parent set a custom property when the header becomes two columns, then has the card grid read that setting with a style query. Changing the flow direction alone produces an awkwardly tall stack. The grid also switches to a single column and limits its block size, giving the cards a vertical scrolling area of their own. A component can respond to a setting supplied by an ancestor, while a simple modifier class still works for a choice made directly on a button.
TAG: ECOSYSTEMREAD_TIME: 3_MIN

OGP Image Format Support on Major Sites and Apps

A browser can display an image a messaging app leaves out of a shared link. Terence Eden tested seven formats by publishing pages with Open Graph image metadata, pasting the links into social and messaging services, and recording whether a preview image appeared. PNG and WebP appeared in all thirteen rows of his results table. His JPEG failed to appear in several Discord channels, a result he qualifies because he could not explain why that particular file failed. For teams preparing share cards, repeating the test with their own images can reveal whether the format appears in the services their readers use and whether animation stops on the first frame.
TAG: CSS FEATUREREAD_TIME: 5_MIN

Why pixel fonts show color fringes on Windows and how to fix them with one line of CSS

A black-and-white game showed red and blue fringes around text in its HTML overlay on Windows. Its developer compared the same 24px font in Microsoft Edge 156 on Windows 11, counting pixels where color-channel values differed by more than 20. Adding will-change: transform to the transparent text layer reduced the count from 1,200 to zero in that test. The author kept the declaration off the stage because it would change the positioning reference for a full-screen orientation notice. The workaround applies to the overlay text in this setup, and leaves lettering drawn into the canvas untouched.
summarizeDigest_Summary

Yuki Sasai found 15px of horizontal overflow in a Chromium window with a classic scrollbar. The background took the full viewport width while the page had less room for content. Find the element that crosses the edge before hiding the overflow. Checking the corrected layout at five widths showed that the page no longer extended sideways.

Kevin Powell shows how a card’s own image can change its wrapping point. Reducing the image’s minimum size lets it shrink, while cropping a tall image introduces a choice about what stays in view. In a separate layout, an ancestor’s custom property tells a card grid when to change to a bounded vertical scroller.

むりむりこ checked the red and blue fringes on a pixel font by counting colored pixels on a Windows test machine. Applying will-change: transform to the transparent text layer removed those colored edges in the test. Keeping the declaration off the stage also preserved the positioning reference of a full-screen notice.

Terence Eden took image testing beyond the browser by pasting links into the services where people share them. PNG and WebP appeared across his thirteen result rows. His unexpected JPEG result in Discord is a reason to try the actual asset in its destination.

Key Takeaways
  • Compare the overflowing box with the page’s usable width before changing the whole layout.
  • Test a card with a wide image and a tall one before committing to the crop.
  • Open a shared link in its destination app and check the preview image there.