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

Unified Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-snap-size-1/snap-height-parsing-001.html

Issue 2635283002: Import csswg-test@bc8209834436f49df0511b3b440faece186e64b5 (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/LayoutTests/imported/csswg-test/css-snap-size-1/snap-height-parsing-001.html
diff --git a/third_party/WebKit/LayoutTests/imported/csswg-test/css-snap-size-1/snap-height-parsing-001.html b/third_party/WebKit/LayoutTests/imported/csswg-test/css-snap-size-1/snap-height-parsing-001.html
deleted file mode 100644
index 501749944a3f40c342486dfd64574b168c997ad0..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/csswg-test/css-snap-size-1/snap-height-parsing-001.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<title>CSS Snap Size: parsing snap-height</title>
-<link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com">
-<link rel="help" href="https://drafts.csswg.org/css-snap-size/#snap-height">
-<meta name="assert" content="This test asserts the parsing and getComputedStyle works correctly for the snap-height property.">
-<meta name="flags" content="dom">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-
-<div data-expected="0px" title="initial value"></div>
-
-<div style="snap-height: 20px 60" data-expected="20px 60">
- <div data-expected="20px 60" title="snap-height should inherit"></div>
- <div style="snap-height: initial" data-expected="0px"></div>
- <div style="snap-height: initial; snap-height: inherit" data-expected="20px 60"></div>
-
- <div style="snap-height: 40px" data-expected="40px"></div>
-
- <div style="snap-height: 0" data-expected="0px"></div>
-
- <div style="snap-height: 1" data-expected="20px 60"></div>
-
- <div style="snap-height: -1px" data-expected="20px 60"></div>
- <div style="snap-height: 40px -1" data-expected="20px 60"></div>
- <div style="snap-height: 40px 0" data-expected="20px 60"></div>
- <div style="snap-height: 40px 101" data-expected="20px 60"></div>
-</div>
-
-<div id="pt" style="snap-height: 40pt"></div>
-
-<script>
-Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), function (element) {
- test(function () {
- var actual = getComputedStyle(element).snapHeight;
- assert_equals(actual, element.dataset.expected);
- }, element.title || element.getAttribute("style"));
-});
-
-test(function () {
- assert_equals(getComputedStyle(document.getElementById("pt")).snapHeight.slice(-2), "px");
-}, "Computed value must be the absolute length");
-</script>

Powered by Google App Engine
This is Rietveld 408576698