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)
DevTools
Inspector: Rules
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)
14.74 KB,
image/png
|
Details | |
689 bytes,
patch
|
ntim
:
review+
|
Details | Diff | Splinter Review |
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
status-firefox50:
--- → unaffected
status-firefox51:
--- → affected
Component: Untriaged → Developer Tools: CSS Rules Inspector
OS: Unspecified → All
Hardware: Unspecified → All
Comment 1•8 years ago
|
||
Inspector bug triage (filter on CLIMBING SHOES).
Keywords: good-first-bug
Priority: -- → P3
Assignee | ||
Comment 2•8 years ago
|
||
I think we should not mirror the twisty at all.
In that case, we can remove these rules:
https://dxr.mozilla.org/mozilla-central/source/devtools/client/themes/dark-theme.css#285-289
https://dxr.mozilla.org/mozilla-central/source/devtools/client/themes/light-theme.css#297-301
And this one looks important and can be kept:
https://dxr.mozilla.org/mozilla-central/source/devtools/client/themes/webconsole.css#575-579
What is your opinion on this Brosset ?
Flags: needinfo?(pbrosset)
Comment 3•8 years ago
|
||
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
Comment 4•8 years ago
|
||
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)
Assignee | ||
Comment 5•8 years ago
|
||
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
Comment 6•8 years ago
|
||
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)
Assignee | ||
Comment 7•8 years ago
|
||
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)
Comment 8•8 years ago
|
||
(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)
Assignee | ||
Comment 9•8 years ago
|
||
Here it is.
Attachment #8785961 -
Attachment is obsolete: true
Attachment #8786095 -
Flags: review?(ntim.bugs)
Updated•8 years ago
|
Flags: needinfo?(bgrinstead)
Comment 10•8 years ago
|
||
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)
Comment 11•8 years ago
|
||
You can use the Force RTL add-on to test your changes: https://addons.mozilla.org/en-US/firefox/addon/force-rtl/
Assignee | ||
Comment 12•8 years ago
|
||
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 13•8 years ago
|
||
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+
Updated•8 years ago
|
Keywords: checkin-needed
Comment 14•8 years ago
|
||
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
Comment 15•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
Reporter | ||
Comment 16•8 years ago
|
||
verified on latest Nightly (Build ID: 20160908030434). Thanks all.
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•