summaryrefslogtreecommitdiffstats
path: root/devtools/docs/user/page_inspector/how_to/debug_scrollable_overflow/index.rst
blob: 795e8bc3ad716abdf0303ae0f6d36f94860e3358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
=========================
Debug scrollable overflow
=========================

A `scroll container <https://developer.mozilla.org/en-US/docs/Glossary/Scroll_container>`_ is created by applying `overflow: scroll <https://developer.mozilla.org/en-US/docs/Web/CSS/overflow>`_ to a container, or `overflow: auto <https://developer.mozilla.org/en-US/docs/Web/CSS/overflow>`_ when there is enough content to cause overflow. The Firefox DevTools make it easy to discover both scrollable elements and any elements that are causing overflow.


In the :ref:`HTML Pane <page_inspector_ui_tour_html_pane>`, ascrollable element has the ``scroll`` badge next to it, as shown in the following image:

.. image:: scroll_hover.png
  :alt: HTML Pane Scroll badge
  :class: center

You can toggle the ``scroll`` badge to highlight elements causing an overflow, expanding nodes as needed to make the nodes visible:

.. image:: scroll_badge_pressed.png
  :alt: Scroll badge toggled on 1
  :class: center

You will also see an ``overflow`` badge next to the node causing the overflow.

.. image:: overflow_badge.png
  :alt: HTML Pane: Overflow badge
  :class: center