Skip to content

Commit b8861ab

Browse files
emiliofoolip
authored andcommitted
Make sure not to lose the element's pseudo-style when reparenting for first-line.
Differential Revision: https://phabricator.services.mozilla.com/D258703 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1979200 gecko-commit: a4948811d579443a7cfb16d24b3268aea58f2d89 gecko-reviewers: dshin
1 parent ecd44ec commit b8861ab

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html class="test-wait">
3+
<script>
4+
window.addEventListener("load", () => {
5+
const a = document.createElement("style")
6+
document.documentElement.appendChild(a)
7+
a.textContent = ":first-line{}"
8+
document.adoptNode(document.body)
9+
document.startViewTransition().ready.then(() => {
10+
document.documentElement.className = "";
11+
});
12+
})
13+
</script>

0 commit comments

Comments
 (0)