A recent change in Chromium-based browsers has disrupted text highlighting on certain websites, creating a frustrating experience for users. The issue stems from an update to selection styling that conflicts with Tailwind CSS, a popular utility-first CSS framework. This problem has been widely discussed on platforms like GitHub and Chromium forums, with affected websites—including prominent ones like The Verge, Bloomberg, and parts of X (formerly Twitter)—still working on fixes.
What’s Happening?
For websites experiencing the issue, users may encounter various difficulties when attempting to interact with text. In some cases, text can still be selected, copied, and pasted, but without any visual feedback, such as the usual highlighting that indicates text is selected. In other instances, users might be entirely unable to copy or select specific text or experience other unintended behaviors.
While Tailwind CSS has updated its tools and provided a workaround to address the issue, not all websites have implemented these fixes yet. As a result, the problem persists for many users navigating sites that rely on Tailwind.
What Changed in Chromium-Based Browsers?
The root of the issue lies in how selection properties are handled in the latest versions of Chromium-based browsers. Historically, selection properties were inherited from the originating element, meaning that the ::selection
pseudo-element used styles directly tied to the element being selected. However, with the release of Chrome 131, this inheritance model has been revised.
In the new behavior, selection properties are now inherited from the parent element, fundamentally altering how text styling behaves across websites. While this change might simplify some aspects of CSS implementation in the long run, it has introduced compatibility issues with existing frameworks like Tailwind CSS.
The problem has been gradually rolling out, with some users encountering it earlier during the testing phases of Chrome 130. It’s worth noting that this issue doesn’t affect browsers like Safari, which are not based on Chromium.
Developer Solutions and Challenges
Adam Wathan, the creator of Tailwind CSS, has shared a solution for developers on X, providing guidance on how to adjust their websites to align with the new inheritance behavior. However, implementing these fixes across all affected sites will take time, especially for large platforms with extensive content and complex infrastructure.
In the meantime, users of Chrome 131 and other updated Chromium-based browsers must navigate these issues until fixes are widely adopted. Websites like The Verge have acknowledged the problem and are actively working to resolve it, but the timeline for full implementation remains uncertain.
Implications for Users and Developers
This change underscores the challenges that arise when browsers update their underlying behavior, particularly when those changes conflict with popular tools and frameworks. For developers, adapting to the new inheritance model requires reviewing and updating stylesheets, which can be resource-intensive, especially for sites with extensive use of Tailwind CSS or custom styling.
For users, the issue serves as a reminder of the interconnected nature of web technologies. While the change may seem minor, it has significant implications for user experience on numerous websites. The lack of a visual indicator for text selection, for example, can create confusion and hinder productivity, particularly for tasks involving copying and pasting text.
Looking Ahead
The Chromium team has documented the selection styling changes in an October developer blog, providing insights into the reasoning behind the update and its intended benefits. As web developers adopt the recommended fixes, the issue is expected to diminish over time. However, given the widespread reliance on Tailwind CSS and the varying speeds at which websites implement changes, the problem may persist for some users in the near term.
For now, those experiencing difficulties with text selection on specific websites may need to rely on workarounds, such as using alternative browsers like Safari or earlier versions of Chrome where the issue doesn’t occur. Developers, meanwhile, can refer to Tailwind’s updated documentation and resources shared by Adam Wathan to expedite the process of resolving the issue.
Conclusion
The disruption in text highlighting caused by changes in Chromium-based browsers highlights the complexities of maintaining compatibility in a rapidly evolving web environment. While solutions are being developed and implemented, the incident underscores the importance of clear communication between browser developers, framework creators, and web developers to minimize user disruption. As fixes are gradually rolled out, users can expect the browsing experience on affected websites to return to normal.