[Webkit-unassigned] [Bug 141331] getBoundingClientRect() returns wrong values while CSS transform is transitioned or animated

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 10 02:06:57 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=141331

Tigran <buddha-1 at mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #246161|text/html                   |text/plain
          mime type|                            |
 Attachment #246161|0                           |1
           is patch|                            |

--- Comment #2 from Tigran <buddha-1 at mail.ru> ---
Comment on attachment 246161
  --> https://bugs.webkit.org/attachment.cgi?id=246161
A page to reproduce an aspect of the bug

><!DOCTYPE html>
><html>
><head>
>	<meta charset="utf-8">
>
>	<title>getBoundingClientRect WebKit Bug</title>
>
>	<style>
>		body {
>			margin: 0;
>		}
>		#test {
>			display: inline-block;
>			background: green;
>			-webkit-animation: slide 10s linear infinite alternate;
>			animation: slide 10s linear infinite alternate;
>		}
>
>		@-webkit-keyframes slide {
>			to {
                -webkit-transform: translate(1000px, 0);
>				transform: translate(1000px, 0);
>			}
>		}
>
>		@keyframes slide {
>			to {
                -webkit-transform: translate(1000px, 0);
>				transform: translate(1000px, 0);
>			}
>		}
>	</style>
></head>
><body>
>	<div id="test">Test</div>
>
>	<script>
>	var testEl = document.getElementById('test');
>
>	setInterval(function() {
>		console.log('Left is: ' + testEl.getBoundingClientRect().left);
>	}, 1000);
>	</script>
></body>
></html>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150210/e9cfe170/attachment-0002.html>


More information about the webkit-unassigned mailing list