Closed
Bug 668435
Opened 13 years ago
Closed 9 years ago
Inspector's hilight box should round corners to match what it's hilighting
Categories
(DevTools :: Inspector, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: Dolske, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
7.53 KB,
patch
|
paul
:
review-
|
Details | Diff | Splinter Review |
The Inspector would ever ever-so-slightly more awesome than it already is if the hilight box sometimes had rounded corners.
Specifically, if it checked getComputedStyle() on the thing it was hilighting, and rounded it's own corners to match. That would make it feel even more like it was hilighting the actual element in the page, as opposed to a floating square awesomebox.
Updated•12 years ago
|
Component: Developer Tools → Developer Tools: Inspector
Comment 2•12 years ago
|
||
Patch addressing the issue. It doesn't look perfect because of bug 382721. It uses the non-standard MozOutlineRadius property to also round the dashed outline.
Test for this issue included, but I noticed that although the test includes a 500ms delay to "make sure the highlighter is not mutting the resize event", it still fails because the outline is not refreshed on time. At least on my machine it takes about 4 seconds until a refresh actually happens.
Comment 3•12 years ago
|
||
Attachment #696949 -
Attachment is obsolete: true
Attachment #697916 -
Flags: review?(paul)
Comment 4•12 years ago
|
||
Thanks for the patch. I'll try to review that next week after the merge.
Comment 5•12 years ago
|
||
Another thing that I'm not happy about is that I've added a scaleValue method [1] which seems generic enough to be included in a common module/library. Is there already such a method that I can use instead?
[1] https://bugzilla.mozilla.org/attachment.cgi?id=697916&action=diff#a/browser/devtools/inspector/Highlighter.jsm_sec5
Comment 6•12 years ago
|
||
Comment on attachment 697916 [details] [diff] [review]
Patch for inclusion
The radius should be computed in getDirtyRect.
You're not sure that the whole rectangle is visible. What about situations like that: http://jsbin.com/obosan ?
Attachment #697916 -
Flags: review?(paul) → review-
Comment 7•12 years ago
|
||
Rethinking it, that sounds a bit hard to fix. Removing [good-first-bug].
Whiteboard: [good first bug][mentor=paul][lang=js]
Comment 8•11 years ago
|
||
Because we are planning on always using the box model I don't believe that this will apply (the box model is always square unless transformed).
Comment 9•11 years ago
|
||
(In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #8)
> Because we are planning on always using the box model I don't believe that
> this will apply (the box model is always square unless transformed).
Is the area just 'outside' of a rounded corner (but still inside of the border-box) part of the content/padding or the margin? It's not colored to match the content/padding so there's a good argument to say that it's part of the margin, and should be highlighted as such. i.e. the highlight box should have rounded corners to match border-radius.
Comment 10•9 years ago
|
||
Marking this as WONTFIX, I believe the highlighting currently available in FFN45 is sufficient without rounding the corners
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•