Closed
Bug 1459646
Opened 7 years ago
Closed 7 years ago
[RTL] Resizer icons mirrored
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox-esr60 | --- | unaffected |
firefox60 | --- | unaffected |
firefox61 | + | fixed |
firefox62 | + | fixed |
People
(Reporter: itiel_yn8, Assigned: timdream)
References
(Blocks 1 open bug, )
Details
(Keywords: regression, rtl)
Attachments
(2 files)
41.45 KB,
image/png
|
Details | |
59 bytes,
text/x-review-board-request
|
dao
:
review+
RyanVM
:
approval-mozilla-beta+
|
Details |
See attached.
Same as bug 1457722 but for forms, such as in Pontoon.
The resizers should face to the left-bottom.
Regression is as in bug 1457722:
2018-05-07T18:43:12: DEBUG : Starting merge handling...
2018-05-07T18:43:12: DEBUG : Using url: https://hg.mozilla.org/integration/autoland/json-pushes?changeset=3a10be9bb6bd3b90594b4afe2896f9279f339e9a&full=1
2018-05-07T18:43:13: DEBUG : Found commit message:
Backed out 2 changesets (bug 1446923) for bustages in /python/mozbuild/mozbuild/test/frontend/test_emitter.py on a CLOSED TREE
Backed out changeset b9a5aab21d71 (bug 1446923)
Backed out changeset bc5ab6e2db10 (bug 1446923)
2018-05-07T18:43:13: INFO : The bisection is done.
The range is 2018-04-26 to 2018-04-27.
Tim, is there anything you can do here as well?
Has Regression Range: --- → yes
status-firefox61:
--- → affected
Flags: needinfo?(timdream)
Keywords: rtl
Assignee | ||
Comment 2•7 years ago
|
||
Ouch. I thought we've got this covered in reftest already?
Assignee: nobody → timdream
Status: NEW → ASSIGNED
tracking-firefox61:
--- → ?
Flags: needinfo?(timdream)
Updated•7 years ago
|
status-firefox60:
--- → unaffected
status-firefox62:
--- → affected
status-firefox-esr52:
--- → unaffected
status-firefox-esr60:
--- → unaffected
tracking-firefox62:
--- → +
Flags: in-testsuite?
Assignee | ||
Comment 3•7 years ago
|
||
This can be reproduced with, simply, this URL, on a non-Mac platform:
data:text/html,<textarea dir=rtl></textarea>
This cannot be reproduced on macOS because, in scroll frame, we don't replace the SVG resizer with RTL-aware native themed resizer.
==
Sadly, bug 1457722 was a complete screwed up. The native theming aware the direction of the frame, while I tried to (re-)flip them with -moz-locale-dir(). This is not a problem for XUL window where the frame direction is always the UI locale. It's a problem for web content, even when scroll frame in web content are using resizer[dir="bottomleft"] and resizer[dir="bottomright"] instead of "bottomstart" and "bottomend" because we had to (re-)flip bottomleft/right based on UI locale too, as described in bug 1457722 comment 8.
I am now convinced that we should just remove the directionality awareness from the widget code and let scroll frame and CSS to handle them completely.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8973856 -
Flags: review?(dao+bmo)
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8973856 [details]
Bug 1459646 - Always flip the resizer with CSS transform
https://reviewboard.mozilla.org/r/242228/#review248160
::: toolkit/content/minimal-xul.css:110
(Diff revision 3)
> cursor: ns-resize;
> }
>
> resizer[dir="left"],
> resizer[dir="right"] {
> + transform: scaleX(-1);
I'm confused, why are you doing this for both dir=right and dir=left?
Comment hidden (mozreview-request) |
Assignee | ||
Comment 9•7 years ago
|
||
mozreview-review |
Comment on attachment 8973856 [details]
Bug 1459646 - Always flip the resizer with CSS transform
https://reviewboard.mozilla.org/r/242228/#review248294
::: toolkit/content/minimal-xul.css:110
(Diff revision 3)
> cursor: ns-resize;
> }
>
> resizer[dir="left"],
> resizer[dir="right"] {
> + transform: scaleX(-1);
That was wrong.
Comment 10•7 years ago
|
||
mozreview-review |
Comment on attachment 8973856 [details]
Bug 1459646 - Always flip the resizer with CSS transform
https://reviewboard.mozilla.org/r/242228/#review248316
Attachment #8973856 -
Flags: review?(dao+bmo) → review+
Comment 11•7 years ago
|
||
Pushed by timdream@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3b84be9ee9e6
Always flip the resizer with CSS transform r=dao
Comment 12•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Assignee | ||
Comment 13•7 years ago
|
||
Comment on attachment 8973856 [details]
Bug 1459646 - Always flip the resizer with CSS transform
Approval Request Comment
[Feature/Bug causing the regression]: Bug 1450017
[User impact if declined]: See STR. Resizer will be renedered incorrectly on RTL textareas
[Is this code covered by automated tests?]: Yes, new reftest added.
[Has the fix been verified in Nightly?]: Not by QA; I checked it works as expected.
[Needs manual test from QE? If yes, steps to reproduce]: No.
[List of other uplifts needed for the feature/fix]: No.
[Is the change risky?]: Shouldn't be.
[Why is the change risky/not risky?]: The behavior is much more simpler and easier to understand.
[String changes made/needed]: No.
Attachment #8973856 -
Flags: approval-mozilla-beta?
Reporter | ||
Comment 14•7 years ago
|
||
I can confirm this is fully fixed on latest Nightly.
Comment 15•7 years ago
|
||
Comment on attachment 8973856 [details]
Bug 1459646 - Always flip the resizer with CSS transform
Approved for 61.0b4. Thanks for including a test.
Attachment #8973856 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 16•7 years ago
|
||
bugherder uplift |
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•