Automattic / Automattic/harper

Harper Highlight in Google docs incorrect on nonstandard zoom settings

Open
#3,164 2 comments 1 reaction 0 assignees View on GitHub
bug google-docs
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 12h
Merged PRs (30d)
106

Description

**Describe the bug**
Harper highlights the incorrect places when a zoom setting is not the default 100% in Google Docs. It appears to be shifting/growing now, but not properly to move to the correct location

**To Reproduce**
Steps to reproduce the behavior:
1. Go to any Google doc with an error flagged, or create one
2. In the Google Docs Toolbar, change the zoom to anything but the default (More evident when increasing size)
3. See error

**Expected behavior**
The expected behaviour in this case would be for the highlight to shift to correctly cover the incorrect word/phrase.

**Screenshots**
First screenshot with default setting and correct highlighting
Image
Screenshot at 125% zoom and highlight shifted too far left.
Image
Screenshot at 150% zoom, highlight shifted even further left.
Image
Screenshot at 200% zoom, highlight shifted even further left than above.
Image

**Platform**
The platform that has this issue is Google Docs in Google Chrome.

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in Google Docs in Chrome at 100%, 125%, 150%, and 200% zoom, comparing the highlight position with the flagged word or phrase. No source file or test is named in the issue, so trace the Google Docs highlight-positioning entry point from the reproduction. Done means the highlight covers the correct text at each reported zoom level.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.