Closed
Bug 1267802
Opened 8 years ago
Closed 6 years ago
Firebug theme - breadcrumbs-divider has wrong direction and position in RTL locales
Categories
(DevTools :: Inspector, defect, P2)
DevTools
Inspector
Tracking
(firefox48 affected, firefox49 affected, firefox50 affected, firefox51 affected)
People
(Reporter: magicp.jp, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [btpp-fix-later])
Attachments
(2 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 Build ID: 20160426044609 Steps to reproduce: 1. Start latest Nightly with RTL locales (e.g. Arabic version) 2. Go to any sites (e.g. about:home) 3. Open DevTools > Inspector with Firebug theme 4. Confirm breadcrumbs-divider Actual results: breadcrumbs-divider has wrong direction and position in RTL locales. And also light-theme's breadcrumbs-divider is overlapped. Please find attached image. Expected results: breadcrumbs-divider has correct direction and position. And also light-theme's breadcrumbs-divider does not display.
Has STR: --- → yes
status-firefox48:
--- → affected
status-firefox49:
--- → affected
Component: Untriaged → Developer Tools: Inspector
OS: Unspecified → All
Hardware: Unspecified → All
Updated•8 years ago
|
Blocks: improve-fb-theme
(In reply to magicp from comment #0) > breadcrumbs-divider has correct direction and position. And also > light-theme's breadcrumbs-divider does not display. Regarding light-theme's breadcrumbs-divider, filed to Bug 1268738 because it also reproduces in LTR locales.
Comment 2•8 years ago
|
||
Bug triage (filter on CLIMBING SHOES).
Priority: -- → P2
Whiteboard: [btpp-fix-later]
Updated•8 years ago
|
Assignee: nobody → moz-ian
Status: NEW → ASSIGNED
Comment 3•8 years ago
|
||
Instead of applying a simple rotation, it would be nice to consolidate the CSS by applying the same rules for both Firebug and Default (light/dark) to generate the separators.
Comment 4•8 years ago
|
||
(In reply to Tim Nguyen :ntim (use needinfo?) from comment #3) > Instead of applying a simple rotation, it would be nice to consolidate the > CSS by applying the same rules for both Firebug and Default (light/dark) to > generate the separators. This seems like probably a better approach than my initial one using SVG <use>, transforms, and anchor targeting to clone and flip the image in the SVG. It can't be exactly the same or you end up with the attached image, but I have a patch incoming that should do the job, though there are a couple possible niggles with it.
Comment 5•8 years ago
|
||
Use the divider SVG as a background for #breadcrumb-separator-normal and that as a background for the pseudo element, rather than the SVG as the content of the pseudo element, since pseudo elements can't be CSS transformed Review commit: https://reviewboard.mozilla.org/r/63780/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/63780/
Attachment #8770317 -
Flags: review?(ntim.bugs)
Comment 6•8 years ago
|
||
https://reviewboard.mozilla.org/r/63780/#review60832 ::: devtools/client/themes/widgets.css:358 (Diff revision 1) > + width: 5px; > + height: 7px; > +} > + > .theme-firebug .breadcrumbs-widget-item { > - margin-inline-start: 10px; > + margin-left: 1px; No point using the logical properties when they get direction: ltr;ed anyway, start will always resolve to left. ::: devtools/client/themes/widgets.css:406 (Diff revision 1) > left: -3px; > - margin: 0 0 0 -5px; > - padding: 0; > - width: 5px; > + margin: 0 0 0 -6px; > +} > + > +.theme-firebug .breadcrumbs-widget-item:-moz-locale-dir(rtl)::after { > + right: -7px; Why do the margin and box offset swap in RTL? It doesn't look right otherwise, but I don't understand why. Why is right -7 instead of -6? I thought it looked better.
Comment 7•8 years ago
|
||
(In reply to Ian Moody [:Kwan] from comment #6) > https://reviewboard.mozilla.org/r/63780/#review60832 > > ::: devtools/client/themes/widgets.css:358 > (Diff revision 1) > > + width: 5px; > > + height: 7px; > > +} > > + > > .theme-firebug .breadcrumbs-widget-item { > > - margin-inline-start: 10px; > > + margin-left: 1px; > > No point using the logical properties when they get direction: ltr;ed > anyway, start will always resolve to left. Where is direction: ltr; set ?
Updated•8 years ago
|
Flags: needinfo?(moz-ian)
Comment 8•8 years ago
|
||
(In reply to Tim Nguyen :ntim (use needinfo?) from comment #7) > (In reply to Ian Moody [:Kwan] from comment #6) > > https://reviewboard.mozilla.org/r/63780/#review60832 > > > > ::: devtools/client/themes/widgets.css:358 > > (Diff revision 1) > > > + width: 5px; > > > + height: 7px; > > > +} > > > + > > > .theme-firebug .breadcrumbs-widget-item { > > > - margin-inline-start: 10px; > > > + margin-left: 1px; > > > > No point using the logical properties when they get direction: ltr;ed > > anyway, start will always resolve to left. > Where is direction: ltr; set ? I believe this should be the right link, though I'm not at my usual computer so doing this is harder: https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/widgets/widgets.css#9 The reason it's set is so the CSS selectors stay "tag #id .class" rather than ".class id# tag" or something.
Flags: needinfo?(moz-ian)
Comment 9•8 years ago
|
||
Comment on attachment 8770317 [details] Bug 1267802 - Make the devtools firebug theme breadcrumb divider work more like the default, so RTL support is easier. Redirecting to bgrins who has worked on the breadcrumbs widget.
Attachment #8770317 -
Flags: review?(ntim.bugs) → review?(bgrinstead)
Comment 10•8 years ago
|
||
(Although the changes do look good to me, I'd like bgrins to take a second look)
Comment 11•8 years ago
|
||
(In reply to Ian Moody [:Kwan] from comment #5) > Use the divider SVG as a background for #breadcrumb-separator-normal and that > as a background for the pseudo element, rather than the SVG as the content of > the pseudo element, since pseudo elements can't be CSS transformed They can be transformed, if you apply display: inline-block to them. Would being able to do this simplify the patch? I'd like to avoid bringing in the -moz-element hack here if at all possible, and I'm not sure I follow all of the numerical values in the CSS - hopefully being able to do the transform will help but let me know if you want me to review it as-is
Updated•8 years ago
|
Attachment #8770317 -
Flags: review?(bgrinstead)
Comment 12•8 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #11) > (In reply to Ian Moody [:Kwan] from comment #5) > > Use the divider SVG as a background for #breadcrumb-separator-normal and that > > as a background for the pseudo element, rather than the SVG as the content of > > the pseudo element, since pseudo elements can't be CSS transformed > > They can be transformed, if you apply display: inline-block to them. Would > being able to do this simplify the patch? I'd like to avoid bringing in the > -moz-element hack here if at all possible, and I'm not sure I follow all of > the numerical values in the CSS - hopefully being able to do the transform > will help but let me know if you want me to review it as-is We already use -moz-element for the dark/light themes, any reason the firebug theme should follow a different approach ?
Flags: needinfo?(bgrinstead)
Comment 13•8 years ago
|
||
(In reply to Tim Nguyen :ntim (use needinfo?) from comment #12) > (In reply to Brian Grinstead [:bgrins] from comment #11) > > (In reply to Ian Moody [:Kwan] from comment #5) > > > Use the divider SVG as a background for #breadcrumb-separator-normal and that > > > as a background for the pseudo element, rather than the SVG as the content of > > > the pseudo element, since pseudo elements can't be CSS transformed > > > > They can be transformed, if you apply display: inline-block to them. Would > > being able to do this simplify the patch? I'd like to avoid bringing in the > > -moz-element hack here if at all possible, and I'm not sure I follow all of > > the numerical values in the CSS - hopefully being able to do the transform > > will help but let me know if you want me to review it as-is > > We already use -moz-element for the dark/light themes, any reason the > firebug theme should follow a different approach ? If it is being adapted to use the current approach then I'd expect a net removal of code - relying on the existing styling on .breadcrumbs-widget-item which uses #breadcrumb-separator-normal as a background image. What it looks like the theme is doing instead is clearing out the background that's already there then creating ::before/::after elements for showing the separator. Anyway, we don't need -moz-element here for firebug since it just needs to render a simple background image (as opposed to light/dark themes which are more complex). It doesn't seem right to me but I haven't dug into the details enough to say 'no' either. If you are happy with the approach, then maybe ask Honza for additional review just so he's in the loop on the Firebug changes.
Flags: needinfo?(bgrinstead)
status-firefox50:
--- → affected
status-firefox51:
--- → affected
Comment 14•7 years ago
|
||
Not currently working on this.
Assignee: moz-ian → nobody
Status: ASSIGNED → NEW
Updated•6 years ago
|
Attachment #8770317 -
Attachment is obsolete: true
Comment 15•6 years ago
|
||
The Firebug theme was removed in Bug 1378108, so I am marking this report as WONTFIX. Honza
Status: NEW → RESOLVED
Closed: 6 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
•