Open Bug 1502205 Opened 6 years ago Updated 2 years ago

<pre> can mess up layout of in-content XBL widgets and UA widgets

Categories

(Toolkit :: UI Widgets, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: timdream, Unassigned)

Details

Looks like only xbl-marquee takes care of that so this is embarrassingly broken.

data:text/html,<pre><audio controls></audio><video controls></video><input type="date"></pre><audio controls></audio><video controls></video><input type="date">

https://searchfox.org/mozilla-central/rev/e0c879c86b95bdc752b1dbff6088169735674e4a/layout/style/xbl-marquee/xbl-marquee.xml#676-677

I wonder if we should remove the whitespaces in the source, or have the DOM Parser to strip them out like 

https://searchfox.org/mozilla-central/rev/e0c879c86b95bdc752b1dbff6088169735674e4a/toolkit/content/customElements.js#102-115

or set a |white-space: normal !important| style on them.
Component: XUL Widgets → Video/Audio Controls
This affects <input type=date> as well...
Component: Video/Audio Controls → XUL Widgets
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.