Two items: Smashing Magazine on the old code left behind when you move to modern CSS, and Apple's retention messages for subscriptions.
Two items about the screens people see. One is Smashing Magazine on the problems that come from old JavaScript and selectors left behind when you move to modern CSS. The other is Apple's retention messages, which can now appear in the subscription cancellation flow.
| Modern CSS migration article | November 3 | On old JavaScript and selectors left behind |
| Apple retention messages | November 4 | Shows messages and offers in the cancel flow |
Smashing Magazine on migrating to modern CSS (November 3). Front-end developer Gabriel Shoyombo writes that a new CSS feature can make one file simpler while making the whole app harder to understand. He separates how little code a file needs from how many interactions you must understand to change the app safely. The article is not against modern CSS. It shows through examples what goes wrong at the boundaries when you move.
Image: Smashing Magazine
The first case is one behavior with two owners. A card's width was switched by a ResizeObserver at 480px with a .card--wide class, and when the team moved to a container query it left the observer and the class rule in place. Later the breakpoint was changed to 600px in only one place, and between 480px and 600px the card had a single-column body with a wide-layout title. The second case is container-type: inline-size, which stops margin collapsing, excludes floats, and can collapse content-sized elements to 0px. The third is a :has(img) selector that mistook a comment's avatar for a hero image, and a lower-specificity rule that won.
- One rule only0.1ms or less
Toggling a toolbar class with JavaScript
- :has() on body1.4ms or so
Only one toolbar was restyled
- Two rules together7ms or so
5,001 elements were restyled
There is a performance case too. In a 5,000-row list, body:has(.row.is-selected) .toolbar alone took about 1.4ms to toggle a row's selection, but combined with .list:has(.cell > b) .row it restyled every row and took about 7ms. At 20,000 rows it was about 31ms. The author tested only in Chrome and filed a Chromium issue. The remedies are to narrow the scope with the > child combinator, wrap selector lists in :where() so specificity is zero, and delete the old observer, classes and selectors.
The article ends with six questions: whether exactly one of CSS or JavaScript owns the behavior, what changes for width, parent, children and neighbors, which rules could override it, whether the old implementation is fully deleted, whether you measured with real data before and after, and whether the next developer can tell why the rule exists.
Apple's retention messages for subscriptions (November 4). Apple described retention messages that can appear in the cancellation flow of an auto-renewable subscription. They remind subscribers of the subscription's value as they decide whether to cancel, to reduce cancellations, and can contain text, an image or a special offer. In App Store Connect you set, for each subscription, which subscribers can see a message and the wait time between messages.
Image: Apple Developer News
To choose which message each subscriber sees from their subscription details, you can use the Retention Messaging API, but access is by request. The post does not say how to apply, who qualifies, which devices and OS versions are supported, the image specifications or the offer types. It points to the App Store Connect help article on configuring retention messages for the details.
Both items are about the moment a person meets the screen. Smashing says to look for the old observer and class before you add the new rule, and Apple asks you to decide what the last cancel screen shows. If you moved anything to container queries, search once for old code that never got deleted. If you run a subscription app, review the cancel-screen message and who sees it alongside your retention plan. Smashing's performance numbers are one person's measurements in one browser, so measure again on your own list.
- Modern CSS Might Make Your Front-End More Complex, Smashing Magazine
- Now available: Retention messages for subscriptions, Apple Developer News
