The <select>
element, long a styling holdout, is finally getting much-needed CSS customization capabilities in Chromium-based browsers. Developers can now style aspects like the dropdown arrow (using appearance: none
and pseudo-elements), open state, and even the listbox itself, offering greater control over its visual presentation. This enables better integration with overall site design and improved user experience without resorting to JavaScript workarounds or custom elements. While some pseudo-elements are browser-prefixed, the changes pave the way for more consistently styled and accessible dropdown menus across the web.
The Department of Justice is reportedly still pushing for Google to sell off parts of its Chrome business, even as it prepares its main antitrust lawsuit against the company for trial. Sources say the DOJ believes Google's dominance in online advertising is partly due to its control over Chrome and that divesting the browser, or portions of it, is a necessary remedy. This potential divestiture could include parts of Chrome's ad tech business and potentially even the browser itself, a significantly more aggressive move than previously reported. While the DOJ's primary focus remains its existing ad tech lawsuit, pressure for a Chrome divestiture continues behind the scenes.
HN commenters are largely skeptical of the DOJ's potential antitrust suit against Google regarding Chrome. Many believe it's a misguided effort, arguing that Chrome is free, open-source (Chromium), and faces robust competition from other browsers like Firefox and Safari. Some suggest the DOJ should focus on more pressing antitrust issues, like Google's dominance in search advertising and its potential abuse of Android. A few commenters discuss the potential implications of such a divestiture, including the possibility of a fork of Chrome or the browser becoming part of another large company. Some express concern about the potential negative impact on user privacy. Several commenters also point out the irony of the government potentially mandating Google divest from a free product.
In 2008, amidst controversy surrounding its initial Chrome End User License Agreement (EULA), Google clarified that the license only applied to Chrome itself, not to user-generated content created using Chrome. Matt Cutts explained that the broad language in the original EULA was standard boilerplate, intended for protecting Google's intellectual property within the browser, not claiming ownership over user data. The company quickly revised the EULA to eliminate ambiguity and explicitly state that Google claims no rights to user content created with Chrome. This addressed concerns about Google overreaching and reassured users that their work remained their own.
HN commenters in 2023 discuss Matt Cutts' 2008 blog post clarifying Google's Chrome license agreement. Several express skepticism of Google, pointing out that the license has changed since the post and that Google's data collection practices are extensive regardless. Some commenters suggest the original concern arose from a misunderstanding of legalese surrounding granting a license to use software versus a license to user-created content. Others mention that granting a license to "sync" data is distinct from other usage and requires its own scrutiny. A few commenters reflect on the relative naivety of concerns about data privacy in 2008 compared to the present day, where such concerns are much more widespread. The discussion ultimately highlights the evolution of public perception regarding online privacy and the persistent distrust of large tech companies like Google.
The Chrome team is working towards enabling customization of the <select>
element using the new <selectmenu>
element. This upcoming feature allows developers to replace the browser's default dropdown styling with custom HTML, offering greater flexibility and control over the appearance and functionality of dropdown menus. Developers will be able to integrate richer interactions, accessibility features, and more complex layouts within the select element, all while preserving the semantic meaning and native behavior like keyboard navigation and screen reader compatibility. This enhancement aims to address the longstanding developer pain point of limited styling options for the <select>
element, opening up opportunities for more visually appealing and user-friendly form controls.
Hacker News users generally expressed frustration with the <select>
element's historical limitations and welcomed the proposed changes for customization. Several commenters pointed out the difficulties in styling <select>
cross-browser, leading to reliance on JavaScript workarounds and libraries like Choices.js. Some expressed skepticism about the proposed solution's complexity and potential performance impact, suggesting simpler alternatives like allowing shadow DOM styling. Others questioned the need for such extensive customization, arguing for consistency and accessibility over visual flair. A few users highlighted specific use cases, such as multi-select with custom item rendering, where the proposed changes would be beneficial. Overall, the sentiment leans towards cautious optimism, acknowledging the potential improvements while remaining wary of potential drawbacks.
Chromium-based browsers on Windows are improving text rendering to match the clarity and accuracy of native Windows applications. By leveraging the DirectWrite API, these browsers will now render text using the same system-enhanced font rendering settings as other Windows programs, resulting in crisper, more legible text, particularly noticeable at smaller font sizes and on high-DPI screens. This change also improves text layout, resolving issues like incorrect bolding or clipping, and makes text selection and measurement more precise. The improved rendering is progressively rolling out to users on Windows 10 and 11.
HN commenters largely praise the improvements to text rendering in Chromium on Windows, noting a significant difference in clarity and readability, especially for fonts like Consolas. Some express excitement for the change, calling it a "huge quality of life improvement" and hoping other browsers will follow suit. A few commenters mention lingering issues or inconsistencies, particularly with ClearType settings and certain fonts. Others discuss the technical details of DirectWrite and how it compares to previous rendering methods, including GDI. The lack of subpixel rendering support in DirectWrite is also mentioned, with some hoping for its eventual implementation. Finally, a few users request similar improvements for macOS.
Some websites display boxes instead of flag emojis in Chrome on Windows due to a font substitution issue. Windows uses its own Segoe UI Emoji font for most emoji, but defaults to a lower-quality bitmap font called "Segoe UI Symbol" specifically for flag emojis. This bitmap font lacks the necessary glyphs for many flag combinations, resulting in the missing emoji. Websites can force Chrome to use the correct, vector-based Segoe UI Emoji font by explicitly specifying it in their CSS, ensuring flags render properly.
Commenters on Hacker News largely discuss the technical details behind the issue, focusing on the surprising interaction between Chrome, Windows, and the specific way flags are rendered using two combined code points. Several point out the complexity and unexpected behaviors that arise from combining characters, particularly when dealing with different systems and fonts. Some users express frustration with the inconsistency and lack of clear documentation around emoji rendering. A few commenters offer potential workarounds or solutions, including using a fallback font or pre-rendering the flags as images. Others delve into the history and evolution of emoji standards and the challenges of maintaining compatibility across platforms. A compelling comment thread explores the tradeoffs between using the combined code points for flags versus using dedicated single code points, highlighting the performance implications and rendering complexities. Another interesting discussion revolves around the role of fonts and the challenges of designing fonts that support a rapidly expanding set of emojis.
Summary of Comments ( 42 )
https://news.ycombinator.com/item?id=43532830
Hacker News users generally expressed cautious optimism about the ability to finally style
<select>
elements with CSS. Several pointed out that this has been a long-requested feature and lamented the previous difficulty in customizing dropdowns. Some praised the detailed explanation in the blog post, while others worried about browser compatibility and the potential for inconsistencies across different implementations. A few users discussed specific styling challenges they'd encountered, like styling the dropdown arrow or achieving consistent behavior across operating systems. There was some concern about the potential for developers to create confusing or inaccessible custom selects, but also acknowledgment that the feature offers powerful new design possibilities.The Hacker News post "The
<select>
element can now be customized with CSS" linking to a Chrome developer blog post has generated a number of comments discussing the implications of this change.Several commenters express cautious optimism. While acknowledging that increased customizability is generally good, they point out the historical difficulties and inconsistencies across browsers in styling
<select>
elements. Some express concern that this new ability, while welcome, might lead to developers creating inconsistent or poor user experiences by over-styling the element and deviating too far from established platform conventions. They argue that the default select element, while visually simple, offers a familiar and predictable user experience, and excessive customization could compromise usability.One commenter highlights the specific challenges of creating accessible custom select elements, emphasizing the importance of ensuring that custom styles don't negatively impact keyboard navigation or screen reader compatibility. They suggest that developers should carefully consider accessibility implications when implementing custom styles.
Others share practical experiences and anecdotes about past struggles with styling
<select>
, expressing relief that more customization will be possible. They discuss the workarounds they've had to employ, such as using JavaScript libraries to create custom select replacements, and anticipate that this change will simplify development.A recurring theme in the discussion is the desire for a balance between customizability and consistency. Commenters acknowledge the need for flexibility in styling to match different design requirements but also emphasize the importance of maintaining a recognizable and predictable user interface for the sake of usability. They suggest that developers should exercise restraint and prioritize user experience when customizing select elements.
Some comments delve into the technical details of the proposed changes, discussing the specific CSS properties and how they might be used. There is also discussion about browser compatibility and the potential for inconsistencies in implementation across different browsers.
A few commenters express skepticism about the necessity of extensive customization, arguing that the default select element is functional and sufficient in most cases. They suggest that excessive styling can lead to unnecessary complexity and potentially degrade the user experience.
Overall, the comments reflect a mix of excitement and apprehension about the ability to customize
<select>
elements with CSS. While many welcome the increased flexibility, there's a clear understanding of the potential pitfalls and a shared concern for maintaining usability and accessibility. The discussion emphasizes the importance of thoughtful and responsible implementation of custom styles, prioritizing user experience over purely aesthetic considerations.