Open Bug 857924 Opened 11 years ago Updated 2 years ago

Text-shadow blur and text decoration messes up when selecting text

Categories

(Core :: Layout: Text and Fonts, defect)

10 Branch
x86
Windows 7
defect

Tracking

()

People

(Reporter: f78909, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression, testcase)

Attachments

(4 files, 2 obsolete files)

Attached image Clipboard 2.png
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0
Build ID: 20130326150557

Steps to reproduce:

1. Have a text with "text-shadow" set to "rgb(0, 0, 0) 0px 16px 12px" and "text-decoration" set to "line-through"/"underline".
2. Select part of the text.


Actual results:

Additional shadow appeared at the start and the end of selection.


Expected results:

It shouldn't have.
Provide a small testcase (.html file), please.
Flags: needinfo?(f78909)
Attached file Try selecting text in the middle. (obsolete) —
Flags: needinfo?(f78909)
Attached file Try selecting text in the middle. (obsolete) —
Attachment #733376 - Attachment is obsolete: true
Attachment #733377 - Attachment is obsolete: true
Attachment #733380 - Attachment mime type: text/plain → text/html
I'm not sure if it's a valid regression. Anyway, the result:

m-c
good=2011-10-09
bad=2011-10-10
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b4da2d439cbc&tochange=e9c620a5c85f

Suspected bug:
Jonathan Kew — Bug 692752 - paint text-shadow after selection highlight background. r=roc
Blocks: 692752
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Text
Ever confirmed: true
Keywords: regression, testcase
Product: Firefox → Core
Version: 20 Branch → 10 Branch
Well, if selection having additional shadow is intended, it, at least, shouldn't have such clear borders nor it should have a gap.
I'd say the result is clearly wrong - as you drag-select back and forth, it's as though there's an additional area of shadow "attached" to each end of the selected range. These don't appear if the selected range extends all the way to either end of the text, though.

Seems to be a problem with how the shadow is rendered for the separate selected/non-selected segments of the text.
See Also: → 1364518
See Also: → 1548652
See Also: 1364518

The attached testcase seems to work fine for me in Nightly on Linux.

Attached file select.html

I can still reproduce on Nightly68.0a1 windows10.

Drag selection text as well as Select All(Ctrl+A).
OR Find in page, Ctrl+F and type foo.

See Also: → 1737045
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: