I know there's a WebKit bug for this: https://bugs.webkit.org/show_bug.cgi?id=112521
I feel like I remember it being fixed in Chrome, but I just saw the behavior you described when I tried the first JSFiddle link — so I must be misremembering.
I couldn't find a link to a Chromium bug, but maybe I just didn't look hard enough.