Closed
Bug 1382222
Opened 7 years ago
Closed 7 years ago
stylo: setting border on element prevents active element indicator being shown when using keyboard natigation
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: sciguyryan, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: testcase)
Attachments
(3 files)
Hi all!
I found this one while editing a post on Mozillazine. I am unable to test how this behaves in standalone Servo as it doesn't currently support tab switching for input elements (see https://github.com/servo/servo/issues/3982). I have however tested this with Chrome and with Servo CSS disabled for comparison. I have provided reference screenshots for both of these along with the reduced testcase for consideration.
The title is a bit convoluted but I couldn't think of a good way of explaining this.
Loading the testcase and clicking on the textarea then hitting tab to switch the active element to the button will switch to the button but with no visual indication that it is selected at all. The fact that the element is actually selected can be demonstrated by following the steps above and hitting the enter key - an alert will be shown that is set via the onclick event on the button.
I don't know how much of a problem this is but it seems as though it could cause a security problem if someone were not sure which element they were clicking on.
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(xidorn+moz)
Reporter | ||
Comment 3•7 years ago
|
||
I'm not sure who the best to ni is in this instance. I'm not exactly clear who is mainly in charge of Stylo stuff at the moment!
Flags: needinfo?(cam)
Comment 4•7 years ago
|
||
Thanks Ryan, yes I can reproduce the problem.
The focus ring is rendered using an additional style context on the button frame, and we currently don't restyle those (bug 1366721). I'm pretty sure that's the problem.
Comment 6•7 years ago
|
||
Per bug 1382687, the border is normally set by a `input[type="submit"]:-moz-focusring::-moz-focus-inner` CSS rule in the user-agent stylesheet. I’ve tested that both :-moz-focusring and ::-moz-focus-inner work when used separately (in a UA sheet) but not together.
Blocks: stylo, stylo-site-issues
Reporter | ||
Comment 7•7 years ago
|
||
I can confirm that the fix as posted in bug 1366721 fixes this by grabbing the version that has the patch from autoland.
Reporter | ||
Updated•7 years ago
|
Flags: in-testsuite?
Reporter | ||
Comment 8•7 years ago
|
||
I'm going to mark this one as resolved -> fixed now since the resolution of bug 1366721 has also resolved this.
I'm going to ni heycam to see if we will need a testcase from this bug to compliment the one added in the patch for bug 1366721.
I couldn't think of a good way to build the testcase here into one that would fit in the reftest framework - setting .focus() on an element doesn't appear to emulate the act of tabbing between form elements.
Flags: needinfo?(cam)
Reporter | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
status-firefox56:
--- → fixed
Target Milestone: --- → mozilla56
Comment 9•7 years ago
|
||
(In reply to Ryan Jones [:sciguyryan] from comment #8)
> I'm going to ni heycam to see if we will need a testcase from this bug to
> compliment the one added in the patch for bug 1366721.
Thanks Ryan. In the end, I think the existing 731726-1.html test that bug 1366721 made pass looks to be sufficient.
Flags: needinfo?(cam)
You need to log in
before you can comment on or make changes to this bug.
Description
•