Open Bug 1339052 Opened 7 years ago Updated 2 years ago

Ctrl-Z undo history of an <input> disappears when the input element (or ancestor) is positioned on :hover (CSS)

Categories

(Core :: DOM: Editor, defect, P3)

39 Branch
defect

Tracking

()

People

(Reporter: robwu, Unassigned)

References

Details

Steps to reproduce:

1. Visit https://jsfiddle.net/xo13dc8f/ . It is basically:
  <style>.hovereffect:hover{position:relative}</style>
  <input>
  <input class=hovereffect>
2. In the first text field, type anything, e.g. asdf
3. Click anywhere outside the textfield and click in the text field again.
4. Press Ctrl-Z (or contextmenu, Undo).

5. Repeat step 2 - 4 for the second text field.

Expected result:
- At the end of step 4, the first text field is empty.
- At the end of step 5, the second text field should be empty because of Ctrl-Z (undo).

Actual result:
- At the end of step 5, the second text field is NOT empty. The undo history seems to have disappeared.


This ia a very strange bug... why would the input undo/redo history be affected by CSS?
Priority: -- → P3
See Also: → 1620050
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.