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

Unified Diff: third_party/WebKit/LayoutTests/css-display-3/display-contents-dynamic-002.html

Issue 2450093005: Support display: contents for elements, first-line and first-letter pseudos. (Closed)
Patch Set: Support display: contents for elements, first-line and first-letter pseudos. Created 4 years, 1 month 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
Index: third_party/WebKit/LayoutTests/css-display-3/display-contents-dynamic-002.html
diff --git a/third_party/WebKit/LayoutTests/css-display-3/display-contents-dynamic-002.html b/third_party/WebKit/LayoutTests/css-display-3/display-contents-dynamic-002.html
new file mode 100644
index 0000000000000000000000000000000000000000..c76a83229686e02ff63ac54054aecb20d7792b72
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css-display-3/display-contents-dynamic-002.html
@@ -0,0 +1,47 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>CSS Display: Dynamic changes to display:contents element should not break attachment order</title>
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:ecobos@igalia.com">
+<link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents">
+<link rel="match" href="display-contents-dynamic-002-expected.html">
+<style>
+ .box {
+ height: 100px;
+ width: 100px;
+ background-color: purple;
+ }
+
+ .container {
+ width: 800px;
+ display: flex;
+ }
+
+ #contents {
+ display: contents;
+ border: 10px solid red;
+ background: red;
+ }
+
+ #contents > .box {
+ background: green;
+ }
+
+ .container.active #contents {
+ display: none;
+ }
+</style>
+<div class="container">
+ <div class="box"></div>
+ <div id="contents">
+ <div class="box"></div>
+ <div class="box"></div>
+ </div>
+ <div class="box"></div>
+ <div class="box"></div>
+</div>
+<script>
+ var container = document.querySelector('.container');
+ window.addEventListener('load', function() {
+ container.classList.add('active');
+ });
+</script>

Powered by Google App Engine
This is Rietveld 408576698