mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
784eb8f590
This handles ::-moz-button-content, ::-moz-html-canvas-content, ::-moz-svg-text, ::-moz-svg-foreign-content. MozReview-Commit-ID: 3xk7214X2uR
15 lines
407 B
HTML
15 lines
407 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<iframe sandbox
|
|
style="width: 200px"
|
|
srcdoc="<canvas style='text-indent: 50vw; display: block'>Text</canvas>"></iframe>
|
|
<script>
|
|
onload = function() {
|
|
var i = document.querySelector("iframe");
|
|
window.w = i.offsetWidth;
|
|
i.style.width = "400px";
|
|
document.documentElement.className = "";
|
|
}
|
|
</script>
|
|
</html>
|