mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
660ab8f549
Using the style of the frame can mess things up when we reparent them due to ::first-line before removing them. MozReview-Commit-ID: 3Dt0wF2XRAH
13 lines
440 B
HTML
13 lines
440 B
HTML
<style></style>
|
|
<script>
|
|
document.documentElement.className = 'c1'
|
|
o1 = document.createElement('form')
|
|
o2 = document.createElement('e')
|
|
o1.className = 'c2'
|
|
document.documentElement.appendChild(o1)
|
|
document.documentElement.appendChild(o2)
|
|
document.styleSheets[0].insertRule('.c1:first-line, .c2 { position:fixed', 0);
|
|
document.documentElement.getBoundingClientRect()
|
|
document.styleSheets[0].cssRules[0].style.position = 'relative'
|
|
</script>
|