Cannot Copy/Paste from/to CodeMirror using a mouse right-click menu with CSS3 rules applied #2154
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Browsers: Firefox 26.0
OS: OSX 10.9.1
CodeMirror: Version 3.21
Problem:
Copying, pasting from CodeMirror is not available when the some CSS3 rules are applied to the parent container.
Simplified test case:
http://jsbin.com/ihunin/328/
Copy/paste options are not available in the mouse right-click menu with
marginandbackface-visibility+transformapplied:Turning off the
marginon the body fixes this issue. However, its not possible in our case to turn off margins or remove the CSS3 rules to prevent content flicker on mobile devices.I think this can be considered a Firefox bug -- when the
bodyhas abackface-visibilityortransformrule applied to it, fixed positioning no longer actually positions the element relative to the viewport, but rather to the top-left corner of the body (also causing the element to scroll!). The problem is not present in other browsers, and completely breaks the things people use fixed positioning for.So please file a bug with Firefox, and find some workaround (moving the styling to an element that's not the body should do it) in the meantime.
mentioned in issue #3238