| Index: third_party/WebKit/LayoutTests/css-display-3/display-contents-reattachment.html
|
| diff --git a/third_party/WebKit/LayoutTests/css-display-3/display-contents-reattachment.html b/third_party/WebKit/LayoutTests/css-display-3/display-contents-reattachment.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..57f561e92f86497a2b28e326947dde4cb466f80d
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/css-display-3/display-contents-reattachment.html
|
| @@ -0,0 +1,49 @@
|
| +<!doctype html>
|
| +<meta charset="utf-8">
|
| +<title>CSS Display 3: Display contents reattachment works well in Flex items</title>
|
| +<link rel="author" title="Emilio Cobos Álvarez" href="mailto:ecobos@igalia.com">
|
| +<link rel="help" href="http://dev.w3.org/csswg/css-display">
|
| +<style>
|
| +.flex {
|
| + display: flex;
|
| +}
|
| +.inline {
|
| + display: inline;
|
| +}
|
| +.contents {
|
| + display: contents;
|
| +}
|
| +</style>
|
| +<div class="flex">
|
| +0
|
| + <div class="contents">
|
| + <div>1</div>
|
| + </div>
|
| + <div class="contents">
|
| + <div class="inline">2<div>2</div></div>
|
| + </div>
|
| + <div class="contents">
|
| + 3
|
| + </div>
|
| + <div class="inline">3</div>
|
| +</div>
|
| +<script>
|
| +var TIMEOUT = 1000;
|
| +window.onload = function() {
|
| + setTimeout(() => {
|
| + var elements = [];
|
| + var all = document.querySelectorAll('*');
|
| + for (var i = 0; i < all.length; ++i) {
|
| + if (window.getComputedStyle(all[i]).display == 'contents') {
|
| + elements.push(all[i]);
|
| + all[i].style.display = 'none';
|
| + }
|
| + }
|
| + console.log(elements.length);
|
| + document.body.offsetHeight;
|
| + setTimeout(() => {
|
| + elements.forEach(e => e.style.display = '');
|
| + }, TIMEOUT);
|
| + }, TIMEOUT);
|
| +}
|
| +</script>
|
|
|