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/relative-layout-once.md.
Lynx
  • English
  • relative-layout-once

    Introduction

    Used to set typesetting acceleration in relative-layout. When using positioning between elements at the same level, it is recommended to enable this property, and elements at the same level will only depend upwards.

    When this property is false, the relative performance is poor, and it can support the vertical direction and handle the dependencies separately in the horizontal direction. For example, if there are 1 and 2 elements in the page, the width of 1 is determined by 2, and the height of 2 is determined by 1. In this case, if relative-layout-once is true, it cannot be processed, and relative-layout-once is false. can be handled.

    Syntax

    relative-layout-once: true;
    relative-layout-once: false;

    Values

    Formal definition

    Initial valuetrue
    Applies torelative container
    Inheritedno
    Animatable

    Formal syntax

    relative-layout-once = true | false

    Difference between web

    • There is no such style in web.

    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.