RESOLVED FIXED 20055
Line highlighting should last longer
https://bugs.webkit.org/show_bug.cgi?id=20055
Summary Line highlighting should last longer
Anthony Ricaud
Reported 2008-07-16 09:32:08 PDT
When a line is highlighted (e.g : after a click in the profile panel), there's not enough time for the user to see it.
Attachments
Patch to restore the fade out (2.59 KB, patch)
2008-07-16 09:41 PDT, Anthony Ricaud
timothy: review-
Patch with a class for fade out (2.60 KB, patch)
2008-07-18 06:26 PDT, Anthony Ricaud
no flags
Increase the highlighted time (2.13 KB, patch)
2008-08-05 16:37 PDT, Anthony Ricaud
timothy: review+
Anthony Ricaud
Comment 1 2008-07-16 09:41:17 PDT
Created attachment 22308 [details] Patch to restore the fade out
Anthony Ricaud
Comment 2 2008-07-16 09:45:31 PDT
In addition to this fix, I also suggest to increase the effect time. Either the time with the className or the transition.
Timothy Hatcher
Comment 3 2008-07-16 11:04:12 PDT
Comment on attachment 22308 [details] Patch to restore the fade out Why not move the "-webkit-transition-property: background-color; -webkit-transition-duration: 1s;" style properties to the normal ".webkit-line-content" rule a couple of lines above? That should remove the need to set the inline transition styles. r- until that is changed, unless there is a reason it can't be that way.
Anthony Ricaud
Comment 4 2008-07-16 11:12:08 PDT
Two reasons: aroben told me that the desired effect was only a fade out. With the transition on the CSS rule, it would have been a fade in and out. And even if we want to change for a fade in and out, this rule cause an effect from black to white when the HTML source is created.
Timothy Hatcher
Comment 5 2008-07-16 11:18:15 PDT
(In reply to comment #4) > Two reasons: > aroben told me that the desired effect was only a fade out. With the transition > on the CSS rule, it would have been a fade in and out. > And even if we want to change for a fade in and out, this rule cause an effect > from black to white when the HTML source is created. > I see. Then I would recommend adding a new CSS class rule that "turns" on the transitions, and add the class after "webkit-highlighted-line" is added. Then remove both classes after the timeout.
Anthony Ricaud
Comment 6 2008-07-18 06:26:58 PDT
Created attachment 22358 [details] Patch with a class for fade out I've added the class. But I'm concerned about classes in this file. It will be difficult for other ports to style the inspector differently.
Timothy Hatcher
Comment 7 2008-07-18 09:27:19 PDT
(In reply to comment #6) > Created an attachment (id=22358) [edit] > Patch with a class for fade out > > I've added the class. But I'm concerned about classes in this file. It will be > difficult for other ports to style the inspector differently. > I agree but it is no better than the inline style.
Anthony Ricaud
Comment 8 2008-07-18 09:37:19 PDT
Of course, inline styles are worst. I was just comparing with an external CSS file.
Mark Rowe (bdash)
Comment 9 2008-07-26 22:10:27 PDT
Landed in r35382.
Anthony Ricaud
Comment 10 2008-07-27 03:09:01 PDT
Reopen this bug because no decision was taken about making this effect longer.
Timothy Hatcher
Comment 11 2008-07-27 16:56:41 PDT
I think a fade of 2s or 3s would be fine.
Timothy Hatcher
Comment 12 2008-07-27 16:57:43 PDT
I mean fade in 2 or 3s.
Mark Rowe (bdash)
Comment 13 2008-07-28 00:39:14 PDT
If the patch that was landed did not address this bug, why was it attached to this bug report?
Mark Rowe (bdash)
Comment 14 2008-07-28 00:39:30 PDT
Comment on attachment 22358 [details] Patch with a class for fade out Clearing the review flag as the patch has been landed.
Anthony Ricaud
Comment 15 2008-07-28 00:59:22 PDT
(In reply to comment #12) > I mean fade in 2 or 3s. > You mean fade out, since there's no fade in. (In reply to comment #13) > If the patch that was landed did not address this bug, why was it attached to > this bug report? > The patch adressed one part of the bug.
Anthony Ricaud
Comment 16 2008-08-05 16:37:37 PDT
Created attachment 22665 [details] Increase the highlighted time
Timothy Hatcher
Comment 17 2008-08-07 20:58:19 PDT
Fixed in r35633.
Note You need to log in before you can comment on or make changes to this bug.