Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: third_party/WebKit/LayoutTests/fast/text/whitespace/reattach-before-pseudo.html

Issue 2766163002: Pass nextTextSibling to ::before layout rebuild. (Closed)
Patch Set: Documentation fix. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/text/whitespace/reattach-before-pseudo-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/text/whitespace/reattach-before-pseudo.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/reattach-before-pseudo.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/reattach-before-pseudo.html
new file mode 100644
index 0000000000000000000000000000000000000000..18f75d0e3da14a0936fcb45e1516b73c9a85aa30
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/reattach-before-pseudo.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<style>
+ #t1::before {
+ content: "A";
+ display: block
+ }
+ #t1.inline::before {
+ display: inline
+ }
+
+ #t2::before {
+ content: "C";
+ display: block
+ }
+ #t2.inline::before {
+ display: inline
+ }
+</style>
+<p>There should be a space between A and B.</p>
+<div id="t1"> <span>B</span></div>
+<p>There should be a space between C and D.</p>
+<div id="t2"></div>
+<script>
+ t2.attachShadow({mode:"open"}).innerHTML = " <span>D</span>";
+ document.body.offsetTop; // Force layout tree generation.
+
+ t1.className = "inline";
+ t2.className = "inline";
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/text/whitespace/reattach-before-pseudo-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698