Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uphttp://output.jsbin.com/surane/quiet on Android glitches out #21326
Labels
Comments
|
@NiLSPACE is it still happening? |
|
No, but I recently got a new phone and I've never been able to reproduce this on it. Instead Servo says it finished loading even though it remains on the previous page. I do still have my old phone laying around, but I won't be able to test it until tomorrow. |
|
This is still happening on my old Huawei P10 lite while it doesn't happen on my Nokia 8 Sirocco. Though, as I said earlier it doesn't render anything at all on the Nokia. |
|
Just in case the page disappears: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<style>
.container div {
display: inline-block;
margin: 7px;
width: 45px;
height: 45px;
background: red linear-gradient(to bottom, orange, transparent);
}
</style>
</head>
<body>
<div class="container"></div>
<script>
var container = document.querySelector('.container');
container.innerHTML = Array(500).join('<div></div>');
var els = Array.prototype.slice.call(document.querySelectorAll('.container div'));
var start = performance.now();
function loop(now) {
els.forEach(function(el, i) {
var dur = (now - start) + (i*50);
var pos = (dur % 3000) / 3000;
var bouncePos = Math.abs(pos * 2 - 1);
var r = bouncePos * 50 + 50;
var b = (1 - bouncePos) * 50;
var rotation = pos * 360;
var radius = bouncePos * 25;
el.style.transform = 'rotate(' + rotation + 'deg)';
el.style.borderRadius = radius + 'px';
el.style.backgroundColor = 'rgb(' + r + '%, 0%, ' + b + '%)';
});
requestAnimationFrame(loop);
}
requestAnimationFrame(loop);
</script>
</body>
</html> |
|
This appears to crash now. |
|
|
Yes, that's #21505. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See GIF:

Also, I noticed the GPU usage is at 0%.
Phone: Huawei P10 lite