mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
6c8e907ee2
Test by bzbarsky; reference by dbaron. The test passes with the patch. With the changes to RestyleManagerBase::ProcessRestyledFrames reverted, the test shows the expected mispositioning resulting from not applying the transform. MozReview-Commit-ID: 7oIQFD8QKUn --HG-- extra : transplant_source : %A3%A6%A0X%C2%1B%CE%E1-%1F%5Ci%A9%06%10%29h%E8/%B7
12 lines
355 B
HTML
12 lines
355 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
The green square below should be centered.
|
|
<div style="width: 400px; height: 400px; position: absolute;
|
|
perspective: 600px; left: 50%; top: 50%; background: green;">
|
|
</div>
|
|
<script>
|
|
document.body.offsetWidth;
|
|
document.querySelector("div").style.transform = "translate(-50%, -50%)";
|
|
</script>
|
|
</html>
|