news.volyx.in

My favourite colour is Chuck Norris red (htmhell.dev)

519 points by OuterVale · 594 days ago · 100 comments on HN

Article summary

The article discusses how HTML parses invalid color values, specifically the 'color' attribute, and how it can lead to unexpected results, such as 'chucknorris' being parsed as a shade of red. This behavior is due to the browser's forgiving nature and its attempt to make sense of invalid input. The article also touches on how CSS handles invalid color values differently. The author argues that this forgiving nature is what makes the web resilient and allows old websites to still render in modern browsers.

Main themes

  • HTML color parsing
  • Browser forgiveness
  • CSS color handling
  • Web resilience
  • Legacy website compatibility

What commenters say

  • The behavior of HTML parsing invalid color values is well-defined and can lead to interesting and unexpected results.
  • The forgiving nature of browsers is a key factor in the web's resilience and ability to render old websites.
  • CSS handles invalid color values differently than HTML, and this difference can lead to distinct outcomes.
  • The ability to parse words as colors can be used to create games and interactive tools, such as color guessing games.
  • The use of obscure color names and shades can be a fun and educational way to learn about colors and their properties.
  • The web's shift towards siloed platforms and megacorps has made it harder to find and access unique and interesting content.
  • The terminology used to describe the '#' symbol, such as 'octothorpe' or 'hash symbol', can vary across regions and contexts.