Closed Bug 1288341 Opened 8 years ago Closed 8 years ago

Don't overlap layout-expander in RTL Locales

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(firefox50 affected, firefox51 verified)

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

People

(Reporter: magicp.jp, Assigned: steveck)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20160720030208

Steps to reproduce:

1. Start Nightly in RTL locales
2. Go to https://bugzulla.mozilla.org
3. Open DevTools > Inspector > Computed


Actual results:

layout-expander is overlapping with other element and has wrong direction and margin.

Regression range:
https://hg.mozilla.org/integration/fx-team/pushloghtml?fromchange=e2ddf53209916302a81ca331f88b4df8df0ca7c7&tochange=48d51227912b8ec3600758d59a995521e2fbea1c


Expected results:

Apply correct margin and direction.
Blocks: 1247729
Has Regression Range: --- → yes
Has STR: --- → yes
Component: Untriaged → Developer Tools: Computed Styles Inspector
OS: Unspecified → All
Hardware: Unspecified → All
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P2
Seems all the expander arrows need to be adjusted to proper place. I replace the margin left to inline start, applied a proper padding to property viewer and mirrored the arrow while in rtl scenario.
Assignee: nobody → schung
Status: NEW → ASSIGNED
Attachment #8777647 - Flags: review?(ntim.bugs)
Comment on attachment 8777647 [details]
Bug 1288341 - Don't overlap layout-expander in RTL Locales.

https://reviewboard.mozilla.org/r/69160/#review66260

::: devtools/client/themes/computed.css:140
(Diff revision 1)
>    visibility: hidden;
> -  margin-left: -12px !important;
> +  margin-inline-start: -12px !important;
> +}
> +
> +.expander:dir(rtl) {
> +  transform: scaleX(-1);

This part doesn't seem to work when testing locally.
Maybe :-moz-locale-dir(rtl) will ?
To test RTL locally, you can use the Force RTL add-on: https://addons.mozilla.org/en-us/firefox/addon/force-rtl/

When you have the add-on installed, on the menu bar, click `Tools` then click `Force RTL direction`.
Comment on attachment 8777647 [details]
Bug 1288341 - Don't overlap layout-expander in RTL Locales.

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/69160/diff/1-2/
Attachment #8777647 - Flags: review?(ntim.bugs)
https://reviewboard.mozilla.org/r/69160/#review66260

> This part doesn't seem to work when testing locally.
> Maybe :-moz-locale-dir(rtl) will ?

I might use wrong way to trigger the RTL case, thanks for sharing the addon. BTW I saw lots of places applied both(-moz-locale-dir/dir). is it because of the mixing of xul/html architecture?
(In reply to Steve Chung [:steveck] from comment #7)
> https://reviewboard.mozilla.org/r/69160/#review66260
> 
> > This part doesn't seem to work when testing locally.
> > Maybe :-moz-locale-dir(rtl) will ?
> 
> I might use wrong way to trigger the RTL case, thanks for sharing the addon.
> BTW I saw lots of places applied both(-moz-locale-dir/dir). is it because of
> the mixing of xul/html architecture?

Yeah, :dir is used if the document containing the element is HTML and :-moz-locale-dir is used if the document containing the element is XUL. Eventually, when we'll switch everything to HTML in the long run, :dir will be used everywhere.
Comment on attachment 8777647 [details]
Bug 1288341 - Don't overlap layout-expander in RTL Locales.

https://reviewboard.mozilla.org/r/69160/#review66366

Works fine, thanks!
Attachment #8777647 - Flags: review?(ntim.bugs) → review+
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/c92d40e69176
Don't overlap layout-expander in RTL Locales. r=ntim
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/c92d40e69176
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
I have reproduced this Bug on Nightly 50.0a1 (2016-07-21)  on Windows 10, 64 Bit!

The bug's fix is now verified on latest  Nightly 51.0a1

Nightly  51.0a1:
Build ID	   : 20160816030459
User Agent 	   : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:51.0) Gecko/20100101 Firefox/51.0

[bugday-20160817]
I have reproduced this bug with Nightly 50.0a1 (2016-07-21) on Ubuntu 14.04, 64 bit!

The bug's fix is now verified on latest Nightly 51.0a1.

Beta 51.0a1:
Build ID 	20160818030226
User Agent 	Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0


[bugday-20160817]
Status: RESOLVED → VERIFIED
Product: Firefox → DevTools
Component: Inspector: Computed → Inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: