Closed Bug 1296648 Opened 8 years ago Closed 8 years ago

Fix direction of .ruleview-expander.theme-twisty in RTL locales

Categories

(DevTools :: Inspector: Rules, defect, P3)

defect

Tracking

(firefox50 unaffected, firefox51 verified)

VERIFIED FIXED
Firefox 51
Tracking Status
firefox50 --- unaffected
firefox51 --- verified

People

(Reporter: magicp.jp, Assigned: Towkir)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, regression)

Attachments

(2 files, 2 obsolete files)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 Build ID: 20160819030226 Steps to reproduce: 1. Start Nightly 2. Go to any sites (e.g. about:home) 3. Open DevTools > Inspector > Rules 4. Check .ruleview-expander.theme-twisty Actual results: .ruleview-expander.theme-twisty has wrong direction. Expected results: No longer transform scaleX(-1) as Ruleview is ltr.
Has STR: --- → yes
Component: Untriaged → Developer Tools: CSS Rules Inspector
OS: Unspecified → All
Hardware: Unspecified → All
Blocks: dt-rtl
Inspector bug triage (filter on CLIMBING SHOES).
Keywords: good-first-bug
Priority: -- → P3
Flags: needinfo?(pbrosset)
This used to work in Firefox 50, and fails in 51, so it's a regression. I'm forwarding this needinfo to Brian who might know what has changed in the theme CSS that might impact this. Also ntim might also know. In any case, they will be better persons than me to ask for feedback/reviews.
Flags: needinfo?(pbrosset)
Flags: needinfo?(ntim.bugs)
Flags: needinfo?(bgrinstead)
Keywords: regression
Seems like a regression of bug 1205590. We can't just remove the rules in light-theme.css and dark-theme.css, since this would affect other places. I'd prefer setting transform: none on the rule view twisties with a comment explaining why.
Flags: needinfo?(ntim.bugs)
Blocks: 1205590
Attached patch twistyOnRtlLocales.patch (obsolete) — Splinter Review
Hello Tim, Hope this is fine. but it would be very nice to know how would it break things somewhere if the rules were removed. :) Thanks
Assignee: nobody → 3ugzilla
Status: NEW → ASSIGNED
Attachment #8785961 - Flags: review?(ntim.bugs)
Comment on attachment 8785961 [details] [diff] [review] twistyOnRtlLocales.patch Review of attachment 8785961 [details] [diff] [review]: ----------------------------------------------------------------- By setting transform: none I actually meant setting it in rules.css similar to how it's currently set in webconsole.css The current patch basically does the same thing as removing the rule, which would break the computed view, the memory tool and the perf tool twisties (I might be missing some other places too)
Attachment #8785961 - Flags: review?(ntim.bugs)
Should there be any specific line number on rules.css file ? or any place is ok. and one more thing, webconsole.css has the twisty in a .message class, should it be the same in here too ? or just the .theme-twisty:dir and moz dir ??
Flags: needinfo?(ntim.bugs)
(In reply to [:Towkir] Ahmed from comment #7) > Should there be any specific line number on rules.css file ? or any place is > ok. I would say where it makes sense. Here would be a good place: https://dxr.mozilla.org/mozilla-central/source/devtools/client/themes/rules.css#326 > and one more thing, webconsole.css has the twisty in a .message class, > should it be the same in here too ? or just the .theme-twisty:dir and moz > dir ?? .ruleview-expander:-moz-locale-dir(rtl) is enough. -moz-locale-dir because the inspector is a XUL doc and .ruleview-expander to be as specific as we can.
Flags: needinfo?(ntim.bugs)
Here it is.
Attachment #8785961 - Attachment is obsolete: true
Attachment #8786095 - Flags: review?(ntim.bugs)
Flags: needinfo?(bgrinstead)
Comment on attachment 8786095 [details] [diff] [review] rtlDirectionRuleviewExpander.patch Review of attachment 8786095 [details] [diff] [review]: ----------------------------------------------------------------- The patch doesn't seem to work locally, the arrow is still backwards. It seems due to the higher specificity of the other transform rule. Maybe `.ruleview-expander.theme-twisty:-moz-locale-dir(rtl)` instead? ::: devtools/client/themes/rules.css @@ +325,5 @@ > display: inline-block; > } > > +.ruleview-expander:-moz-locale-dir(rtl) { > + /*for preventing .theme-twisty's wrong direction in rtl; Bug 1296648 */ nit: add whitespace after /*
Attachment #8786095 - Flags: review?(ntim.bugs)
You can use the Force RTL add-on to test your changes: https://addons.mozilla.org/en-US/firefox/addon/force-rtl/
Hi Tim, Sorry for being late. Here is the updated patch. Thanks
Attachment #8786095 - Attachment is obsolete: true
Attachment #8787932 - Flags: review?(ntim.bugs)
Comment on attachment 8787932 [details] [diff] [review] rtlDirectionThemeTwisty.patch Review of attachment 8787932 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me, works fine locally as well.
Attachment #8787932 - Flags: review?(ntim.bugs) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/fx-team/rev/16a1a91f9269 Fix direction of .ruleview-expander.theme-twisty in RTL locales. r=ntim
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
verified on latest Nightly (Build ID: 20160908030434). Thanks all.
Thanks magicp!
Status: RESOLVED → VERIFIED
Depends on: 1309168
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: