Closed Bug 1940063 Opened 16 days ago Closed 9 days ago

Date picker button appears to be wrapped in line breaks / new lines

Categories

(Core :: Layout: Form Controls, defect)

Firefox 133
defect

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: jamie, Assigned: jfkthame)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0

Steps to reproduce:

Apply whitesapce: pre to a date input element: <input type="date" style="white-space: pre"/>

Actual results:

The date picker button appeared to have a lot of vertical padding, which disappeared once the cascaded whitespace: pre property was removed from the element.

Presumably there is whitespace around the calendar character in the source.

Expected results:

I wouldn't (and don't think others would) expect whitespace to appear before or after the button, or affect it's position.

I acknowledge that it's probably pointless for whitespace: pre to be applied directly to date inputs, but I don't think it's unlikely for that property to cascade from the parent element (such as a label), and it was quite difficult to figure out the cause.

OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
OS: Windows 10 → Windows 11

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Form Controls' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 11 → All
Hardware: x86_64 → All
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/507fe411e83f Ensure white-space:nowrap is set for the entire datetimebox widget. r=desktop-theme-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/50052 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: