Closed
Bug 1288341
Opened 8 years ago
Closed 8 years ago
Don't overlap layout-expander in RTL Locales
Categories
(DevTools :: Inspector, defect, P2)
DevTools
Inspector
Tracking
(firefox50 affected, firefox51 verified)
VERIFIED
FIXED
Firefox 51
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
status-firefox50:
--- → affected
Component: Untriaged → Developer Tools: Computed Styles Inspector
OS: Unspecified → All
Hardware: Unspecified → All
Assignee | ||
Comment 2•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/69160/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/69160/
Attachment #8777647 -
Flags: review?(ntim.bugs)
Assignee | ||
Comment 3•8 years ago
|
||
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 | ||
Updated•8 years ago
|
Assignee: nobody → schung
Status: NEW → ASSIGNED
status-firefox51:
--- → affected
Updated•8 years ago
|
Attachment #8777647 -
Flags: review?(ntim.bugs)
Comment 4•8 years ago
|
||
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 ?
Comment 5•8 years ago
|
||
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`.
Assignee | ||
Comment 6•8 years ago
|
||
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)
Assignee | ||
Comment 7•8 years ago
|
||
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?
Comment 8•8 years ago
|
||
(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 9•8 years ago
|
||
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+
Updated•8 years ago
|
Keywords: checkin-needed
Comment 10•8 years ago
|
||
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
Comment 11•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c92d40e69176
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
Comment 12•8 years ago
|
||
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]
Comment 13•8 years ago
|
||
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]
Updated•8 years ago
|
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•3 years ago
|
Component: Inspector: Computed → Inspector
You need to log in
before you can comment on or make changes to this bug.
Description
•