New issue
Advanced search Search tips

Issue 640463 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Caret won't display properly in input with float width and text-align:right;

Reported by xhos...@gmail.com, Aug 24 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2837.0 Safari/537.36

Example URL:
http://plnkr.co/edit/2kslgNMj9fkk4AgXvlFT

Steps to reproduce the problem:
1. http://plnkr.co/edit/2kslgNMj9fkk4AgXvlFT?p=preview
2. click in inputs on Test cases #1-3
3. see the bug with caret

What is the expected behavior?
Like it works in Test case #4: the caret is crisp, without width and color issues.

What went wrong?
Test case #1-2:
Displays two carets simultaneously: one with placeholder color and one with text color;

Test case #3:
Color and width of caret is wrong

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? No latest Opera and Yandex Browser

Chrome version: 54.0.2837.0  Channel: dev
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 22.0 r0

This is bug from real life project,
see screenshot: https://yadi.sk/i/t6bIEH7GuSEDs

We workaround it by changing width from 20% to 200px.
 
Labels: Needs-Feedback
Is this Windows-specific? I can't repro on Mac on 54.0.2838.0 (Official Build) canary (64-bit) -- see screenshot
Screen Shot 2016-08-24 at 11.41.22 AM.png
26.4 KB View Download
Unable to reproduce the issue on Windows-10 High Dp monitor using chrome latest Dev M54-54.0.2837.0. Observed the caret is displayed on all 4 text boxes as shown in the screen-cast.
Cursor.mp4
960 KB View Download

Comment 3 by xhos...@gmail.com, Aug 25 2016

dglazkov@chromium.org, brajkumar@chromium.org:

I think you can't reproduce it because of High DPI on the monitor.


Comment 4 by xhos...@gmail.com, Aug 25 2016

This is how it shows in my monitor (Philips 226V4L 21.5" 1920x1080)
I check it on 3 other standart non-high-dpi monitors - it shows the same way.


caret-bug.gif
13.9 KB View Download

Comment 5 Deleted

Comment 6 by xhos...@gmail.com, Aug 29 2016

What is prevents to confirm a bug? Does screenshot in upper comment not enough?
Project Member

Comment 7 by sheriffbot@chromium.org, Sep 5 2016

Labels: -Needs-Feedback Needs-Review
Owner: dglazkov@chromium.org
Thank you for providing more feedback. Adding requester "dglazkov@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 8 by tkent@chromium.org, Sep 5 2016

Components: -Blink Blink>TextSelection Blink>Paint
Owner: chrishtr@chromium.org
Status: Assigned (was: Unconfirmed)
chrishtr@, was this the bug you recently fixed?
It's not the same bug, but I will look now. It apepars to be a simple pixel-
snapping bug.
Status: Started (was: Assigned)
Status: Fixed (was: Started)
Project Member

Comment 14 by bugdroid1@chromium.org, Sep 7 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4

commit 5aff38d7c5b1387eed23687dfac5bd43ecdaadf4
Author: Rebaseline Bot <blink-rebaseline-bot@chromium.org>
Date: Wed Sep 07 00:25:25 2016

Auto-rebaseline for r416741

https://chromium.googlesource.com/chromium/src/+/15cd2c4fe

BUG= 640463 
TBR=chrishtr@chromium.org

Review URL: https://codereview.chromium.org/2312953003 .

Cr-Commit-Position: refs/heads/master@{#416795}

[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/TestExpectations
[add] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/android/editing/deleting/delete-at-start-or-end-expected.png
[add] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/android/editing/deleting/delete-image-004-expected.png
[add] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/android/editing/deleting/transpose-empty-expected.png
[add] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/android/editing/execCommand/create-list-with-hr-expected.png
[add] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/android/editing/selection/4975120-expected.png
[add] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/android/editing/selection/contenteditable-click-inside-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/linux/editing/deleting/delete-at-start-or-end-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/linux/editing/deleting/delete-image-004-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/linux/editing/deleting/transpose-empty-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/linux/editing/execCommand/create-list-with-hr-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/linux/editing/selection/4975120-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/linux/editing/selection/contenteditable-click-inside-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/linux/fast/forms/text/input-placeholder-paint-order-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/mac-mac10.9/editing/pasteboard/4806874-expected.png
[add] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/mac-mac10.9/paint/caret/caret-subpixel-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/mac/editing/pasteboard/4806874-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/mac/editing/pasteboard/pasting-object-expected.png
[add] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/mac/paint/caret/caret-subpixel-expected.png
[add] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/mac/paint/caret/caret-subpixel-expected.txt
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/win/editing/deleting/delete-at-start-or-end-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/win/editing/deleting/delete-image-004-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/win/editing/deleting/transpose-empty-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/win/editing/execCommand/create-list-with-hr-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/win/editing/pasteboard/4806874-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/win/editing/pasteboard/pasting-object-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/win/editing/selection/4975120-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/win/editing/selection/contenteditable-click-inside-expected.png
[modify] https://crrev.com/5aff38d7c5b1387eed23687dfac5bd43ecdaadf4/third_party/WebKit/LayoutTests/platform/win/fast/forms/text/input-placeholder-paint-order-expected.png

Comment 15 by tkent@chromium.org, Oct 12 2016

Components: -Blink>TextSelection Blink>Editing>Selection

Sign in to add a comment