Closed Bug 1401365 Opened 7 years ago Closed 7 years ago

Flash of unstyled content (FOUC) on page load if form contains autofocus

Categories

(Core :: Layout, defect)

55 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1385594

People

(Reporter: simplepolymath, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0
Build ID: 20170824053622

Steps to reproduce:

Using the autofocus attribute on an input field causes a flash of unstyled content (FOUC) upon page load.


Actual results:

When loading any page which contains a form with an input field that has autofocus, the page will always briefly flash unstyled content. Removing the autofocus attribute resolves the problem, but is not a solution.

This bug only happens in Firefox. Unable to reproduce in other browsers.


Expected results:

The autofocus attribute should only be applied after styles have been applied.
Component: Untriaged → Layout
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.