зеркало из https://github.com/mozilla/gecko-dev.git
28 строки
650 B
HTML
28 строки
650 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<style>
|
|
textarea {
|
|
min-height: 100px;
|
|
}
|
|
</style>
|
|
<div>
|
|
<iframe src="about:blank"></iframe>
|
|
</div>
|
|
<script>
|
|
let div = document.querySelector('div');
|
|
let iframe = document.querySelector('iframe');
|
|
iframe.onload = function() {
|
|
let doc = iframe.contentDocument;
|
|
let e = doc.createElement('textarea');
|
|
doc.body.appendChild(e);
|
|
setTimeout(function() {
|
|
getComputedStyle(e).minHeight;
|
|
div.style.display = 'none';
|
|
setTimeout(function() {
|
|
getComputedStyle(e).minHeight;
|
|
document.documentElement.className = "";
|
|
}, 0);
|
|
}, 0);
|
|
};
|
|
</script>
|