# Modern CSS migrations and subscription cancel messages

Two items: Smashing Magazine on the old code left behind when you move to modern CSS, and Apple's retention messages for subscriptions.

- Language: en
- Published: 2026-11-06
- Tags: dev, css
- URL: https://devs7ud.io/en/trends/sensing-dev-2026-11-06-b-en
- Translation (ko): https://devs7ud.io/trends/sensing-dev-2026-11-06-b.md

## Dev news two items

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.

| Item | Announced | In one line |
| --- | --- | --- |
| 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 |

_Source: the original post for each item._

## Remove the old code as well as adding new rules

- [Modern CSS Might Make Your Front-End More Complex](https://www.smashingmagazine.com/2026/11/modern-css-might-make-your-front-end-more-complex/) — The complexity left after a CSS migration

**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.

![The DevTools view from the Smashing article, with a :has(img) rule applied to a comment paragraph](/blog-img/sensing-dev-2026-11-06-b/1.png "zoom")

_Image: [Smashing Magazine](https://www.smashingmagazine.com/2026/11/modern-css-might-make-your-front-end-more-complex/)_

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 only | 0.1ms or less | Toggling a toolbar class with JavaScript |
| :has\(\) on body | 1.4ms or so | Only one toolbar was restyled |
| Two rules together | 7ms or so | 5,001 elements were restyled |

_Source: Smashing Magazine. Measured by toggling the selection of one row 300 times in a 5,000-row list, tested by the author in Chrome only._

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.

## Even the cancel screen gets a message

- [Retention messages for subscriptions](https://developer.apple.com/news/?id=fk9ps3gv) — Messages in the subscription cancel flow

**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 from Apple Developer News on retention messages](https://developer.apple.com/news/images/og/app-store-connect-og.png "zoom")

_Image: [Apple Developer News](https://developer.apple.com/news/?id=fk9ps3gv)_

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.

## View

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.

## Sources

- [Modern CSS Might Make Your Front-End More Complex](https://www.smashingmagazine.com/2026/11/modern-css-might-make-your-front-end-more-complex/), Smashing Magazine
- [Now available: Retention messages for subscriptions](https://developer.apple.com/news/?id=fk9ps3gv), Apple Developer News
