Issue Bug Resolved

#106395Editable page title shift layout on edit in Firefox - input field style line-height ignored

Ayke Halder 03/19/25, 15:58 updated 11/19/26, 10:45

Description

Firefox ignores CSS line-height for any text input field.
Firefox always uses line-height: normal !important
https://hg.mozilla.org/mozilla-central/rev/b97aef275b5e

Looks like Firefox treats text-inputs like “replaced inline elements” and therefore does not apply line-height:
https://developer.mozilla.org/en-US/docs/Web/CSS/line-height
> … on non-replaced inline elements , it specifies the height that is used to calculate line box height.

——

Where-as CSS height is working for text input fields – also in Firefox.

typo3-backend-editable-page-title only sets line-height: inherit but no height for its input-field.

In Firefox this results in layout-shift on opening the edit field.

typo3-be-pagetitle-layout-shift-firefox.gif

E.g. to fix this input field set height: 1.2 * 1.75rem.

Reviews 1

Files 1

History 36

  1. Sébastien Delcroix commented <span data-processor="relativetime" data-value="2025-04-09T23:04:43+00:00" > 04/09/25, 23:04 </span>

    @ike
    I can’t reproduce the layout shift in Firefox 137.0.1 on macOS Sonoma 14.7.3.

    What are your Firefox version and OS ?

  2. Georg Ringer commented and changed status New Accepted priority Should have Could have <span data-processor="relativetime" data-value="2025-04-28T19:34:09+00:00" > 04/28/25, 19:34 </span>

    can confirm on mac ventura 13.7.4 + firefox 137.0.2

  3. Gerrit Code Review pushed patch set 1 for main to change 92235 status Accepted Under Review <span data-processor="relativetime" data-value="2025-12-30T18:50:50+00:00" > 12/30/25, 18:50 </span>

  4. Ayke Halder commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-19T10:45:10+00:00" > 11/19/26, 10:45 </span>

    Applied in changeset commit:a4690e4d281417d785e102bce2a8c4f0035e1b60.