Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/gfx/wr/wrench/reftests/scrolling/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 5 kB image not shown  

Quelle  sticky.yaml   Sprache: unbekannt

 
Spracherkennung für: .yaml vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

root:
  items:
    # This is a scroll frame with an out-of-viewport rect that should be pushed into the
    # viewport by its "bottom" sticky constraint.
    - type: scroll-frame
      id: 2
      bounds: [10105050]
      content-size: [200200]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [10605050]
        margin-bottom: 0
        vertical-offset-bounds: [-5000]
        items:
        - type: rect
          bounds: [10605050]
          color: green
          clip-chain: [2]
    # Do the same thing, but now for the "top" constraint.
    - type: scroll-frame
      id: 3
      bounds: [70105050]
      content-size: [200200]
      scroll-offset: [050]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [70105050]
        margin-top: 0
        vertical-offset-bounds: [0500]
        items:
        - type: rect
          bounds: [70105050]
          color: green
          clip-chain: [3]
    # Do the same thing, but now for the "right" constraint.
    - type: scroll-frame
      id: 4
      bounds: [10705050]
      content-size: [200200]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [60705050]
        margin-right: 0
        horizontal-offset-bounds: [-5000]
        items:
        - type: rect
          bounds: [60705050]
          color: green
          clip-chain: [4]
    # Do the same thing, but now for the "left" constraint.
    - type: scroll-frame
      id: 5
      bounds: [70705050]
      content-size: [200200]
      scroll-offset: [500]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [70705050]
        margin-left: 0
        horizontal-offset-bounds: [0500]
        items:
        - type: rect
          bounds: [70705050]
          color: green
          clip-chain: [5]

    # The same tests, but this time with a margin.
    - type: scroll-frame
      id: 6
      bounds: [130105050]
      content-size: [200200]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [130605050]
        margin-bottom: 10
        vertical-offset-bounds: [-5000]
        items:
        - type: rect
          bounds: [130605050]
          color: green
          clip-chain: [6]
    # Do the same thing, but now for the "top" constraint.
    - type: scroll-frame
      id: 7
      bounds: [190105050]
      content-size: [200200]
      scroll-offset: [050]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [190105050]
        margin-top: 10
        vertical-offset-bounds: [0500]
        items:
        - type: rect
          bounds: [190105050]
          color: green
          clip-chain: [7]
    # Do the same thing, but now for the "right" constraint.
    - type: scroll-frame
      id: 8
      bounds: [130705050]
      content-size: [200200]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [180705050]
        margin-right: 10
        horizontal-offset-bounds: [-5000]
        items:
        - type: rect
          bounds: [180705050]
          color: green
          clip-chain: [8]
    # Do the same thing, but now for the "left" constraint.
    - type: scroll-frame
      id: 9
      bounds: [190705050]
      content-size: [200200]
      scroll-offset: [500]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [190705050]
        margin-left: 10
        horizontal-offset-bounds: [0500]
        items:
        - type: rect
          bounds: [190705050]
          color: green
          clip-chain: [9]

    # The same tests, but this time with a limit.
    - type: scroll-frame
      id: 10
      bounds: [250105050]
      content-size: [200200]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [250605050]
        margin-bottom: 0
        vertical-offset-bounds: [-250]
        items:
        - type: rect
          bounds: [250605050]
          color: green
          clip-chain: [10]
    # Do the same thing, but now for the "top" constraint.
    - type: scroll-frame
      id: 11
      bounds: [310105050]
      content-size: [200200]
      scroll-offset: [050]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [310105050]
        margin-top: 0
        vertical-offset-bounds: [025]
        items:
        - type: rect
          bounds: [310105050]
          color: green
          clip-chain: [11]
    # Do the same thing, but now for the "right" constraint.
    - type: scroll-frame
      id: 12
      bounds: [250705050]
      content-size: [200200]
      clip-to-frame: true
      items:
      - type: sticky-frame
        bounds: [300705050]
        margin-right: 0
        horizontal-offset-bounds: [-250]
        items:
        - type: rect
          bounds: [300705050]
          color: green
          clip-chain: [12]
    # Do the same thing, but now for the "left" constraint.
    - type: scroll-frame
      id: 13
      bounds: [310705050]
      content-size: [200200]
      clip-to-frame: true
      scroll-offset: [500]
      items:
      - type: sticky-frame
        bounds: [310705050]
        margin-left: 0
        horizontal-offset-bounds: [025]
        items:
        - type: rect
          bounds: [310705050]
          color: green
          clip-chain: [13]

[Dauer der Verarbeitung: 0.13 Sekunden, vorverarbeitet 2026-06-10]