blob: 1df53fa11c618f2e5b1e403771bd5642f4e56df4 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
document.getElementById('label').textContent = 'Alternate longer text';
}, true);
</script>
Tests repaint of descendants of right-aligned fixed-position element.
Passes if the text "Button Title" is fully visible in the button.
<div style="position: fixed; right: 0; text-align: right;">
<span id="label">Initial text</span>
<input value="Button Title" type="button">
</div>