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

Unified Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-display-3/display-contents-computed-style.html

Issue 2588093003: Import display: contents tests from csswg-test. (Closed)
Patch Set: Rebased Created 4 years 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/imported/csswg-test/css-display-3/display-contents-computed-style.html
diff --git a/third_party/WebKit/LayoutTests/imported/csswg-test/css-display-3/display-contents-computed-style.html b/third_party/WebKit/LayoutTests/imported/csswg-test/css-display-3/display-contents-computed-style.html
index 8b48c27cb709476ee34c8e1215330acef14dc630..5f232f26105eab596669afa4a6c541d80e58b285 100644
--- a/third_party/WebKit/LayoutTests/imported/csswg-test/css-display-3/display-contents-computed-style.html
+++ b/third_party/WebKit/LayoutTests/imported/csswg-test/css-display-3/display-contents-computed-style.html
@@ -3,11 +3,12 @@
<title>CSS Display: Computed style for display:contents</title>
<link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com">
<link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents">
+<link rel="help" href="https://drafts.csswg.org/css-display-3/#transformations">
<link rel="help" href="https://drafts.csswg.org/cssom-1/#resolved-values">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
- .contents { display: contents }
+ html, .contents { display: contents }
#t2 .contents { background-color: green }
#t2 span { background-color: inherit }
@@ -66,4 +67,8 @@
assert_equals(computed.marginLeft, "25%");
assert_equals(computed.paddingTop, "10%");
}, "Resolved value should be computed value, not used value, for display:contents");
+
+ test(function(){
+ assert_equals(getComputedStyle(document.documentElement).display, "block");
+ }, "display:contents is blockified for root elements");
</script>

Powered by Google App Engine
This is Rietveld 408576698