New issue
Advanced search Search tips

Issue 612033 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Compat



Sign in to add a comment

position:relative + background-color makes caret invisible

Reported by cyril.au...@gmail.com, May 15 2016

Issue description

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

Example URL:

Steps to reproduce the problem:
1. https://jsfiddle.net/2bj86ezq/
2. 
3. 

What is the expected behavior?
cursor should be visible

What went wrong?
cursor isn't visible when clicking inside the <a> in blue

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? N/A 

Chrome version: 52.0.2729.3  Channel: dev
OS Version: 10.0
Flash Version: Shockwave Flash 22.0 r0
 
Cc: nyerramilli@chromium.org
Components: Blink>Editing
Labels: M-52 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Thanks for the report..
Able to reproduce the issue on Win7, Mac OS X 10.11.4, Ubuntu 14.04 using Chrome Stable 50.0.2661.102, Beta 51.0.2704.47, Dev 52.0.2729.3 and Canary 52.0.2737.0

Not a regression, issue existing from M30 # 30.0.1549.0 (Official Build 208818) 
attached screencast for reference, please check and let us know if more information is required.
612033.mov
8.0 MB Download

Comment 2 by yosin@chromium.org, May 17 2016

Components: -Blink>Editing Blink>TextSelection>Caret
Owner: yoichio@chromium.org
Status: Assigned (was: Untriaged)
Summary: position:relative + background-color makes caret invisible (was: cursor not visible on <a> with a position: relative [contenteditable])
yoichio@, could you check we have caret rectangle? If so, please route to Paint team.
Thanks!

position:relative + background-color makes caret invisible.

Minimized test case:
https://jsfiddle.net/ra9tLpj9/
Components: -Blink>TextSelection>Caret Blink>Paint
Owner: ----
In CaretBase::paintCaret,
 we call context.fillRect(FloatRect(drawingRect), caretColor) with the value:
drawingRect = (77.0000000, 8.00000000) x (1.00000000, 17.0000000)
caretColor = 0xff0000ee

It means CaretBase 'paints' a rectangle.
Routed to the paint team.
Status: Untriaged (was: Assigned)
Status: Available (was: Untriaged)
This bug looks like a consequence of the child <a> element having a self-painting
PaintLayer. The parent paints its cursor via BlockPainter::paintObject calling
BockPainter::paintCarets, which is careful to paint children first, but any self-
painting PaintLayer children paint all their phases *after* this one.

Fixing this appears to require painting the caret in a special foreground phase at the end
of the containing self-painting PaintLayers paint, but somehow applying any clips from
above which may obscure the caret.
Project Member

Comment 6 by sheriffbot@chromium.org, Jun 1 2016

Labels: -M-52 M-53 MovedFrom-52
Moving this nonessential bug to the next milestone.

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

Comment 7 by sheriffbot@chromium.org, Jul 10 2016

Labels: -M-53 MovedFrom-53
This issue has been moved once and is lower than Pri-1. Removing the milestone.

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

Comment 8 by sheriffbot@chromium.org, Jul 10 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Recharge-Cold BugSource-User PaintTeamTriaged-20170710
Status: Available (was: Untriaged)
Project Member

Comment 10 by sheriffbot@chromium.org, Jul 11

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)
Still broken.

Sign in to add a comment