Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import wpt@fccee581c61d9c1e7a451bf1c0e7999b9f625c01
Using wpt-import in Chromium 7f7fd57. With Chromium commits locally applied on WPT: 188e75e "[@container] Feature check tests with container-type:size" fe54a37 "Rename CookieStore wpt tests to remove `.tentative.` infix." Note to sheriffs: This CL imports external tests and adds expectations for those tests; if this CL is large and causes a few new failures, please fix the failures by adding new lines to TestExpectations rather than reverting. See: https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md Directory owners for changes in this CL: rego@igalia.com: external/wpt/css/css-ui NOAUTOREVERT=true No-Export: true Change-Id: Ia53aa76bb91bc0f114a1c8ef3d7a5a7b91f05467 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3321943 Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com> Reviewed-by: Weizhong Xia <weizhong@google.com> Commit-Queue: Weizhong Xia <weizhong@google.com> Cr-Commit-Position: refs/heads/main@{#949573}
- Loading branch information
Chromium WPT Sync
authored and
Chromium LUCI CQ
committed
Dec 8, 2021
1 parent
4a6248c
commit c57281a
Showing
15 changed files
with
713 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
third_party/blink/web_tests/external/wpt/css/css-ui/user-select-001.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<meta charset="utf-8"> | ||
<title>CSS Basic User Interface Test: Block children of a inline parent with "user-select:text" should be selectable even with a user-select: none ancestor</title> | ||
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> | ||
<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> | ||
<link rel="help" href="https://drafts.csswg.org/css-ui/#propdef-user-select"> | ||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1743074"> | ||
|
||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/testdriver.js"></script> | ||
<script src="/resources/testdriver-actions.js"></script> | ||
<script src='/resources/testdriver-vendor.js'></script> | ||
|
||
<style> | ||
:root { | ||
user-select: none; | ||
} | ||
</style> | ||
|
||
<span style="user-select: text"> | ||
<div>Let's select this <b id="target">word</b></div> | ||
</span> | ||
|
||
<script> | ||
promise_test(async function() { | ||
let target = document.getElementById("target"); | ||
let actions = new test_driver.Actions(); | ||
|
||
// Simulate a double click to select a word. | ||
await actions.pointerMove(5, 5, {origin: target}) | ||
.pointerDown() | ||
.pointerUp() | ||
.pointerDown() | ||
.pointerUp() | ||
.send(); | ||
assert_equals(window.getSelection().toString(), "word", | ||
"The text 'word' should be selectable.") | ||
}, "Select the text 'word'"); | ||
</script> | ||
</html> |
33 changes: 33 additions & 0 deletions
33
...external/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors-iframe-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<title>Reference for default @scroll-timeline</title> | ||
<iframe width="400" height="400" srcdoc=' | ||
<html> | ||
<style> | ||
html { | ||
min-height: 100%; | ||
padding-bottom: 100px; | ||
} | ||
#box { | ||
width: 100px; | ||
height: 100px; | ||
background-color: green; | ||
transform: translateY(100px); | ||
} | ||
* { | ||
margin-top: 0px; | ||
margin-bottom: 0px; | ||
} | ||
</style> | ||
<script> | ||
window.addEventListener("load", function() { | ||
// Move the scroller to halfway. | ||
const scroller = document.scrollingElement; | ||
const maxScroll = scroller.scrollHeight - scroller.clientHeight; | ||
scroller.scrollTop = 0.5 * maxScroll; | ||
}); | ||
</script> | ||
<div id="box"></div> | ||
</html> | ||
'></iframe> |
69 changes: 69 additions & 0 deletions
69
...sts/external/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors-iframe.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<!DOCTYPE HTML> | ||
<html class="reftest-wait"> | ||
<title>The default scroll-timeline at rule in the iframe</title> | ||
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-at-rule"> | ||
<link rel="help" href="https://drafts.csswg.org/css-animations-2/#animation-timeline"> | ||
<meta name="assert" content="CSS animation correctly updates values when using the default scroll-timeline at rule"> | ||
<link rel="match" href="at-scroll-timeline-default-descriptors-iframe-ref.html"> | ||
|
||
<iframe id="target" width="400" height="400" srcdoc=' | ||
<html> | ||
<style> | ||
@keyframes update { | ||
from { transform: translateY(0px); } | ||
to { transform: translateY(200px); } | ||
} | ||
@scroll-timeline test-timeline { | ||
source: auto; | ||
orientation: auto; | ||
scroll-offsets: none; | ||
} | ||
html { | ||
min-height: 100%; | ||
padding-bottom: 100px; | ||
} | ||
#box { | ||
width: 100px; | ||
height: 100px; | ||
background-color: green; | ||
animation: update 1s linear; | ||
animation-timeline: test-timeline; | ||
} | ||
#covered { | ||
width: 100px; | ||
height: 100px; | ||
background-color: red; | ||
} | ||
* { | ||
margin-top: 0px; | ||
margin-bottom: 0px; | ||
} | ||
</style> | ||
<script> | ||
window.addEventListener("load", function() { | ||
const scroller = document.scrollingElement; | ||
// Move the scroller to the halfway point. | ||
const maxScroll = scroller.scrollHeight - scroller.clientHeight; | ||
scroller.scrollTop = 0.5 * maxScroll; | ||
window.requestAnimationFrame(() => { | ||
window.parent.postMessage("success", "*"); | ||
}); | ||
}); | ||
</script> | ||
<body> | ||
<div id="box"></div> | ||
<div id="covered"></div> | ||
</body> | ||
</html> | ||
'></iframe> | ||
|
||
<script> | ||
window.addEventListener("message", event => { | ||
if (event.data == "success") { | ||
document.documentElement.classList.remove("reftest-wait"); | ||
} | ||
}, false); | ||
</script> |
60 changes: 60 additions & 0 deletions
60
...xternal/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors-quirks-mode.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<html class="reftest-wait"> | ||
<title>The default scroll-timeline at rule in quirks mode</title> | ||
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-at-rule"> | ||
<link rel="help" href="https://drafts.csswg.org/css-animations-2/#animation-timeline"> | ||
<meta name="assert" content="CSS animation correctly updates values when using the default scroll-timeline at rule"> | ||
<link rel="match" href="at-scroll-timeline-default-descriptors-ref.html"> | ||
|
||
<style> | ||
@keyframes update { | ||
from { transform: translateY(0px); } | ||
to { transform: translateY(200px); } | ||
} | ||
|
||
@scroll-timeline test-timeline { | ||
source: auto; | ||
orientation: auto; | ||
scroll-offsets: none; | ||
} | ||
|
||
html { | ||
min-height: 100%; | ||
padding-bottom: 100px; | ||
} | ||
|
||
#box { | ||
width: 100px; | ||
height: 100px; | ||
background-color: green; | ||
animation: update 1s linear; | ||
animation-timeline: test-timeline; | ||
} | ||
|
||
#covered { | ||
width: 100px; | ||
height: 100px; | ||
background-color: red; | ||
} | ||
|
||
* { | ||
margin-top: 0px; | ||
margin-bottom: 0px; | ||
} | ||
</style> | ||
|
||
<div id="box"></div> | ||
<div id="covered"></div> | ||
|
||
<script> | ||
window.addEventListener('load', function() { | ||
const scroller = document.scrollingElement; | ||
|
||
// Move the scroller to the halfway point. | ||
const maxScroll = scroller.scrollHeight - scroller.clientHeight; | ||
scroller.scrollTop = 0.5 * maxScroll; | ||
|
||
window.requestAnimationFrame(() => { | ||
document.documentElement.classList.remove("reftest-wait"); | ||
}); | ||
}); | ||
</script> |
31 changes: 31 additions & 0 deletions
31
..._tests/external/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<title>Reference for default @scroll-timeline</title> | ||
<style> | ||
html { | ||
min-height: 100%; | ||
padding-bottom: 100px; | ||
} | ||
|
||
#box { | ||
width: 100px; | ||
height: 100px; | ||
background-color: green; | ||
transform: translateY(100px); | ||
} | ||
|
||
* { | ||
margin-top: 0px; | ||
margin-bottom: 0px; | ||
} | ||
</style> | ||
|
||
<div id="box"></div> | ||
|
||
<script> | ||
window.addEventListener('load', function() { | ||
// Move the scroller to halfway. | ||
const scroller = document.scrollingElement; | ||
const maxScroll = scroller.scrollHeight - scroller.clientHeight; | ||
scroller.scrollTop = 0.5 * maxScroll; | ||
}); | ||
</script> |
Oops, something went wrong.