Close Menu
    Latest Post

    Edifier S880DB MKII Speakers: Feature-Rich with a Minor Bass Limitation

    January 7, 2026

    Medium’s CEO Details Path to Profitability After $2.6M Monthly Losses

    January 7, 2026

    Meta Acquires Chinese-Founded AI Startup Manus

    January 7, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Edifier S880DB MKII Speakers: Feature-Rich with a Minor Bass Limitation
    • Medium’s CEO Details Path to Profitability After $2.6M Monthly Losses
    • Meta Acquires Chinese-Founded AI Startup Manus
    • Design System Annotations: Why Accessibility is Often Overlooked in Component Design (Part 1)
    • The Red-Teaming Resistance Leaderboard: Evaluating LLM Safety
    • Automating Your DevOps: Writing Scripts that Save Time and Headaches
    • The Most Overlooked Way to Stop Spam Calls on Android and iPhone
    • SteelSeries Arctis Nova 7P Gen 2 review: a highly versatile headset that’s become a daily driver
    Facebook X (Twitter) Instagram Pinterest Vimeo
    NodeTodayNodeToday
    • Home
    • AI
    • Dev
    • Guides
    • Products
    • Security
    • Startups
    • Tech
    • Tools
    NodeTodayNodeToday
    Home»Dev»CSS Text Fitting: Exploring text-grow and text-shrink Properties
    Dev

    CSS Text Fitting: Exploring text-grow and text-shrink Properties

    Samuel AlejandroBy Samuel AlejandroDecember 23, 2025No Comments2 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    src 1g42jkv featured
    Share
    Facebook Twitter LinkedIn Pinterest Email

    A new approach for fitting text, prototyped by Adam in Chrome Canary 145, has been introduced:

    h1 {
      text-grow: per-line scale;
    }

    This concept was previously discussed by Danny in the context of various text-fitting methods. The proposed syntax, including text-shrink, is detailed in Roma Komarov’s explainer:

    text-grow: <fit-target> <fit-method>? <length>?;
    text-shrink: <fit-target> <fit-method>? <length>?;
    • <fit-target>
      • per-line: The per-line target allows shorter lines to expand with text-grow and longer lines to contract with text-shrink, adjusting each line individually to fit the container.
      • consistent: The consistent target ensures that with text-grow, the shortest line expands to fit, and all other lines scale by the same factor. Conversely, with text-shrink, the longest line contracts to fit, and other lines shrink proportionally.
    • <fit-method> (optional)
      • scale: Scales the glyphs without altering the font-size.
      • scale-inline: Scales glyphs horizontally, independent of font-size.
      • font-size: Adjusts the font size to grow or shrink as needed.
      • letter-spacing: Modifies letter spacing instead of font-size.
    • <length> (optional): Specifies a maximum font size for text-grow or a minimum font size for text-shrink.

    These various fit methods involve either scaling glyphs or modifying the actual font size. Consequently, the explainer highlights that accessibility considerations are still under development, such as:

    A key question is whether user agents should prevent enlarged lines from fitting the container width if an end-user attempts to increase font size, and if a minimum font setting adequately addresses this.

    Regarding unresolved issues, Una Kravets has raised several points:

    • Should the last line of a paragraph be scaled?
    • Is the current line-height behavior as expected?
    • Should it scale non-text parts such as inline images together?

    Contributions to the discussion are welcome in the GitHub issue.

    Donnie D’Amato has suggested that this concept might be more appropriate for print stylesheets than for screen displays, presenting an interesting potential application.

    This marks a significant advancement compared to earlier methods involving manual adjustments and JavaScript libraries like FitText.js.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleHow to Change DNS Settings on Various Devices
    Next Article Improved Performance for GitHub Actions Workflows Page
    Samuel Alejandro

    Related Posts

    Tools

    Design System Annotations: Why Accessibility is Often Overlooked in Component Design (Part 1)

    January 7, 2026
    Dev

    Automating Your DevOps: Writing Scripts that Save Time and Headaches

    January 7, 2026
    Dev

    GPT Function Calling: 5 Underrated Use Cases

    January 6, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Latest Post

    ChatGPT Mobile App Surpasses $3 Billion in Consumer Spending

    December 21, 202512 Views

    Automate Your iPhone’s Always-On Display for Better Battery Life and Privacy

    December 21, 202510 Views

    Creator Tayla Cannon Lands $1.1M Investment for Rebuildr PT Software

    December 21, 20259 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    About

    Welcome to NodeToday, your trusted source for the latest updates in Technology, Artificial Intelligence, and Innovation. We are dedicated to delivering accurate, timely, and insightful content that helps readers stay ahead in a fast-evolving digital world.

    At NodeToday, we cover everything from AI breakthroughs and emerging technologies to product launches, software tools, developer news, and practical guides. Our goal is to simplify complex topics and present them in a clear, engaging, and easy-to-understand way for tech enthusiasts, professionals, and beginners alike.

    Latest Post

    Edifier S880DB MKII Speakers: Feature-Rich with a Minor Bass Limitation

    January 7, 20260 Views

    Medium’s CEO Details Path to Profitability After $2.6M Monthly Losses

    January 7, 20260 Views

    Meta Acquires Chinese-Founded AI Startup Manus

    January 7, 20260 Views
    Recent Posts
    • Edifier S880DB MKII Speakers: Feature-Rich with a Minor Bass Limitation
    • Medium’s CEO Details Path to Profitability After $2.6M Monthly Losses
    • Meta Acquires Chinese-Founded AI Startup Manus
    • Design System Annotations: Why Accessibility is Often Overlooked in Component Design (Part 1)
    • The Red-Teaming Resistance Leaderboard: Evaluating LLM Safety
    Facebook X (Twitter) Instagram Pinterest
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions
    • Disclaimer
    • Cookie Policy
    © 2026 NodeToday.

    Type above and press Enter to search. Press Esc to cancel.