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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-snap-size-1/snap-width-parsing-001.html

Issue 2018883002: Fix testharness paths in imported/csswg-test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>CSS Snap Size: parsing snap-width</title> 2 <title>CSS Snap Size: parsing snap-width</title>
3 <link rel="author" title="Koji Ishii" href="kojiishi@gmail.com"> 3 <link rel="author" title="Koji Ishii" href="kojiishi@gmail.com">
4 <link rel="help" href="https://drafts.csswg.org/css-snap-size/#snap-width"> 4 <link rel="help" href="https://drafts.csswg.org/css-snap-size/#snap-width">
5 <meta name="assert" content="This test asserts the parsing and getComputedStyle works correctly for the snap-width property."> 5 <meta name="assert" content="This test asserts the parsing and getComputedStyle works correctly for the snap-width property.">
6 <meta name="flags" content="dom"> 6 <meta name="flags" content="dom">
7 <script src="../../../resources/testharness.js"></script> 7 <script src="/resources/testharness.js"></script>
8 <script src="../../../resources/testharnessreport.js"></script> 8 <script src="/resources/testharnessreport.js"></script>
9 9
10 <div data-expected="0px" title="initial value"></div> 10 <div data-expected="0px" title="initial value"></div>
11 11
12 <div style="snap-width: 20px" data-expected="20px"> 12 <div style="snap-width: 20px" data-expected="20px">
13 <div data-expected="0px" title="snap-width should not inherit"></div> 13 <div data-expected="0px" title="snap-width should not inherit"></div>
14 <div style="snap-width: inherit" data-expected="20px"></div> 14 <div style="snap-width: inherit" data-expected="20px"></div>
15 </div> 15 </div>
16 16
17 <div style="snap-width: 20px; snap-width: initial" data-expected="0px"></div> 17 <div style="snap-width: 20px; snap-width: initial" data-expected="0px"></div>
18 18
(...skipping 12 matching lines...) Expand all
31 test(function () { 31 test(function () {
32 var actual = getComputedStyle(element).snapWidth; 32 var actual = getComputedStyle(element).snapWidth;
33 assert_equals(actual, element.dataset.expected); 33 assert_equals(actual, element.dataset.expected);
34 }, element.title || element.getAttribute("style")); 34 }, element.title || element.getAttribute("style"));
35 }); 35 });
36 36
37 test(function () { 37 test(function () {
38 assert_equals(getComputedStyle(document.getElementById("pt")).snapWidth.slice( -2), "px"); 38 assert_equals(getComputedStyle(document.getElementById("pt")).snapWidth.slice( -2), "px");
39 }, "Computed value must be the absolute length"); 39 }, "Computed value must be the absolute length");
40 </script> 40 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698