For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/css/properties/-x-auto-font-size.md.
Lynx
  • English
  • -x-auto-font-size

    Introduction

    The -x-auto-font-size property sets whether to enable text adaptive font size adjustment, minimum text font size, maximum text font size, and font size adjustment granularity value. All parameters except the first one are optional.

    Examples

    Syntax

    -x-auto-font-size: 'true';
    -x-auto-font-size: 'true 10px';
    -x-auto-font-size: 'true 10px 30px';
    -x-auto-font-size: 'true 10px 30px 2px';

    Values

    • First parameter indicates whether to enable text adaptive font size adjustment, 'true' to enable, 'false' to disable

    • Second parameter specifies the minimum text font size, value is <length>, this parameter is optional

    • Third parameter specifies the maximum text font size, value is <length>, this parameter is optional when the first two parameters exist

    • Fourth parameter specifies the font size adjustment granularity value, value is <length>, this parameter is optional when the first three parameters exist, default value is 1px

    Formal definition

    Initial valuefalse
    Applies totext
    Inheritedno
    Animatableno

    Formal syntax

    -x-auto-font-size = true (<length>){0,3} | false

    Differences from Web

    • This is a Lynx-specific property.

    Compatibility

    LCD tables only load in the browser

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.