gecko-dev/layout/reftests/first-line/caption-insert-in-first-line-2.html
Boris Zbarsky efd62c0c96 Bug 1388877. Fix insertions under a ::first-line in stylo. r=heycam
MozReview-Commit-ID: CDolJpTtGki

--HG--
extra : rebase_source : dbef95a652491fbfee0a462995938b4801a785ad
2017-08-11 09:11:23 -04:00

21 lines
478 B
HTML

<!DOCTYPE html>
<style>
div { color: red; }
div::first-line { color: green }
#table { display: inline-table; }
#caption { display: table-caption; }
#tbody { display: table-row-group; }
</style>
<div id="x">
<span id="table">
<span id="tbody">be green</span>
</span>
</div>
<script>
x.offsetWidth;
var caption = document.createElement("span");
caption.id = "caption";
caption.textContent = "This should";
table.insertBefore(caption, tbody);
</script>