Closed Bug 1380492 Opened 7 years ago Closed 7 years ago

Kerning defect in Gmail compose window

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: ekr, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Attached image Without Stylo
STR: 1. Go to gmail 2. Start composing 3. Type the first letter of the address Defect: Insufficient space between the To and the name.
Attached image With Stylo
Nice catch :-)
Got it.
Assignee: nobody → emilio+bugs
Test-case: <style> div { display: none; padding: -3px; } </style> <div id="target"></div> <script> alert(getComputedStyle(target).paddingTop); </script> Stylo alerts -3px, incorrectly.
Attachment #8885959 - Flags: review?(bobbyholley) → review+
What would happen for `padding-left: calc(-3px)`? Would it be clamped properly during computation?
(In reply to Xidorn Quan [:xidorn] UTC+10 from comment #7) > What would happen for `padding-left: calc(-3px)`? Would it be clamped > properly during computation? Yes, as far as I can tell... I'll test it though.
(In reply to Xidorn Quan [:xidorn] UTC+10 from comment #7) > What would happen for `padding-left: calc(-3px)`? Would it be clamped > properly during computation? The following properly alerts 0px: <!doctype html> <style> div { padding: 3px; padding: calc(-3px); display: none; } </style> <div></div> <script> alert(getComputedStyle(document.querySelector('div')).paddingTop); </script>
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: