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

Unified Diff: LayoutTests/fast/css-generated-content/before-after-no-content.html

Issue 570713002: Avoid calculating style for ::before/::after without content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 3 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 | LayoutTests/fast/css-generated-content/before-after-no-content-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css-generated-content/before-after-no-content.html
diff --git a/LayoutTests/fast/css-generated-content/before-after-no-content.html b/LayoutTests/fast/css-generated-content/before-after-no-content.html
new file mode 100644
index 0000000000000000000000000000000000000000..6e7263fbfc7cf29d0300ac30a68209a857e1d41b
--- /dev/null
+++ b/LayoutTests/fast/css-generated-content/before-after-no-content.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<style>
+span, ::before, ::after { color: green; }
+#before::before { content: "P"; }
+#after::after { content: "S"; }
+</style>
+<p>There should be two green PASSes below.</p>
+<div id="before"><span>ASS</span></div>
+<div id="after"><span>PAS</span></div>
+<div id="noBeforeAfter"></div>
« no previous file with comments | « no previous file | LayoutTests/fast/css-generated-content/before-after-no-content-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698