Open
Bug 35146
Opened 25 years ago
Updated 4 years ago
Underlines retain color while being selected
Categories
(Core :: DOM: Selection, defect, P5)
Tracking
()
NEW
People
(Reporter: jruderman, Unassigned)
References
()
Details
Attachments
(1 obsolete file)
Select all the text in the paragraphs at the top of
<URL:resource:/res/samples/test0.html> and watch the underlines, overlines, and
strikethroughs. They retain their color while the text becomes white and the
background becomes black. I assume that the "correct" behavior is to turn all
the lines white, but I'm not sure.
Bug 3836 is another selection bug that happens on the same page.
Comment 1•25 years ago
|
||
i agree that the lines should change to the same color as the text. Every time
I select text in mozilla i find it awkward that the underlines of links retain
their color, as this just isn't standard behavior.
that IS funny. I actually went to some trouble to keep all other "decorations"
the same. whats wrong with this behavior? should the other decorations just not
show up? I think I will start a discussion of this on the layout newsgroup.
Status: NEW → ASSIGNED
Comment 3•25 years ago
|
||
Whatever decision you make:
1) Text with the SMALL-CAPS attribute should be painted using the OS color when
selected. In the current code, it keeps its foreground color (open test0 and
select the sentence "THIS TEXT IS SMALL-CAPS").
2) Always check for NS_DONT_CHANGE_COLOR after calling
GetColor(eColor_TextSelectForeground). On the Mac, we want to keep the foreground
color for the text and the decorations.
pierre or kathy. does
2) Always check for NS_DONT_CHANGE_COLOR after calling
GetColor(eColor_TextSelectForeground). On the Mac, we want to keep the
foreground
color for the text and the decorations.
Mean we are or are not doing this right now?
Comment 6•24 years ago
|
||
moving to future
Keywords: polish → helpwanted
Target Milestone: M19 → Future
Comment 7•24 years ago
|
||
*SPAM*: Changing the QA contact of all open/resolved Selection bugs from
elig@netscape.com to BlakeR1234@aol.com. After the many great years of service
Eli has given to Mozilla, it's time for him to move on; he has accepted a
position at Eazel. We'll be sad to see him go, and I'll do my best to fill his
spot...
QA Contact: elig → BlakeR1234
Comment 10•22 years ago
|
||
Here's a patch, that fixes this bug and also incorporates the previous patch I
had in my tree for (very minor) bug 160143.
What we do is that when we, in the PaintTextDecorations() function, come to the
point where we draw the decorations on selections, we check if the selection is
"normal" (i.e., a real selection, no spellchecking underline or something like
that), and then we paint the decorations on the selected characters.
So basically, we first paint all the decorations for a string as usual, and
then if something's selected, we do it again using the correct foreground
selection color.
I've tested this with a number of different testcases; all work well!
Comment 11•22 years ago
|
||
Basically the first big chunk of added lines in the patch is what fixes this
bug. The rest of the changes are for bug 160143.
Comment 12•22 years ago
|
||
Comment on attachment 93370 [details] [diff] [review]
Patch
simple fix looks good. I only looked at the fix for bug 35146.
Attachment #93370 -
Flags: review+
Comment 13•22 years ago
|
||
Reassigning to myself.
Comment 14•22 years ago
|
||
How does this interact with the fix for bug 1777?
Comment 15•22 years ago
|
||
He will have to merge with my fix, but that is probably simple (for him)...
Comment 16•22 years ago
|
||
"probably simple", eh? There is no way I can see to use the approach this patch
is using once we're painting text-decoration the right way. For example:
<span style="text-decoration: underline">Text <sup>foo</sup></span>
With the approach in this patch, highlighting the "foo" would actually draw
_two_separate_ underlines if we do text-decorations correctly. I don't think
that's what we want, is it?
Comment 17•22 years ago
|
||
Ok, I'm just saying that it's probably better if Esben (who knows a lot more
about this code, and especially about the new architecture) integrates my fix
into his mega-fix once mine is on the trunk... I don't see what's so
unreasonable about that?
Comment 18•22 years ago
|
||
There is no way to "integrate" this fix into the new setup. It would have to
just be completely redone, using a different approach (and backed out in the
process of landing the new stuff to boot). So I feel that landing this is not
worth it if the other patch is at all close to landing...
Comment 19•22 years ago
|
||
[A review for] this depends on bzbarsky's review for bug 1777, to see if my
code is bogus with Esben's arch change, or if we can use it in quirks mode at
least.
Depends on: 1777
Comment 20•22 years ago
|
||
*** Bug 118461 has been marked as a duplicate of this bug. ***
Comment 21•22 years ago
|
||
Comment on attachment 93370 [details] [diff] [review]
Patch
sr=bzbarsky
Attachment #93370 -
Flags: superreview+
Comment 22•22 years ago
|
||
*** Bug 164458 has been marked as a duplicate of this bug. ***
Comment 23•22 years ago
|
||
*** Bug 180273 has been marked as a duplicate of this bug. ***
Comment 24•22 years ago
|
||
Requesting blocking 1.4.We have a patch, (which has both r and sr), so let get
this checked in for 1.4
Flags: blocking1.4?
Comment 25•22 years ago
|
||
That patch does not even apply anymore. It needed to get updated after bug 1777
was fixed, and was not. At this point it needs updating to trunk and a review
of said updating.
Removing useless blocking request.
Flags: blocking1.4?
Updated•22 years ago
|
Attachment #93370 -
Attachment is obsolete: true
Comment 26•20 years ago
|
||
I wonder, if this would be fixed, would it not contradict css3 selectors?
http://www.w3.org/TR/css3-selectors/#selection
Afaik, selection is considered there as an anonymous inline box:
<span>The word <span::selection>select</span::selection> is selected</span>
Comment 27•20 years ago
|
||
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b) Gecko/20050205
Firefox/1.0+
(Aqua Mac OS X 10.2.6)
Selection means a blue background, with the foreground staying the same, and
the recipe in Comment 0 WFM.
FWIW, I think that comment 26 applies, but I don't claims more than a passing
familiarity with CSS3
Comment 28•19 years ago
|
||
*** Bug 304832 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Assignee: hwaara → selection
QA Contact: tpreston
Comment 29•19 years ago
|
||
*** Bug 333053 has been marked as a duplicate of this bug. ***
Updated•16 years ago
|
Assignee: selection → nobody
QA Contact: selection
Comment 30•4 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.
Severity: minor → S4
Priority: P3 → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•