mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
02e7151f7c
This code needs to move out of PrepareResizeReflow() (and things that trigger code in it) because PrepareResizeReflow is conditioned on the block itself resizing. The reftest is based on a test by Jesse Ruderman <jruderman@gmail.com>. The reftest fails without the patch and passes with the patch. --HG-- extra : transplant_source : %E9%5E%97zE%A4%60n%8C%DD%F8K-%01%F3fF%E8%C9K
16 lines
313 B
HTML
16 lines
313 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
|
|
<div id="x" style="background: lightgreen; height: 3em; width: 400px; padding: 4px;">
|
|
<div style="text-indent: 40%; width: 200px; background: yellow;">X</div>
|
|
</div>
|
|
|
|
<script>
|
|
var x = document.getElementById('x');
|
|
x.offsetWidth;
|
|
x.style.width = '500px';
|
|
</script>
|
|
</body>
|
|
</html>
|