gecko-dev/testing/web-platform/tests/loading/preloader-css-import-no-quote.tentative.html
Darwin Huang 17086d9a43 Bug 1613513 [wpt PR 21611] - Refactor: Fix misspellings., a=testonly
Automatic update from web-platform-tests
Refactor: Fix misspellings.

Miscellaneous spellfixes. No functional changes.

Instances of "necessary" and "board".

Change-Id: Ib3c9031ca98cdd2f7ebc661a62692b9ebba8c9b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040063
Auto-Submit: Darwin Huang <huangdarwin@chromium.org>
Commit-Queue: Darwin Huang <huangdarwin@chromium.org>
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738772}

--

wpt-commits: 711a8af108e58e24e3d2be9e13a3e432797c81c0
wpt-pr: 21611
2020-02-14 19:08:49 +00:00

30 lines
1 KiB
HTML

<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
var t = async_test('Imported inline CSS with no quote is not blocked on pending CSS');
</script>
<link rel=stylesheet href="resources/dummy.css?first&pipe=trickle(d1)">
<script>
var this_script_is_necessary_to_block_the_inline_style_processing = true;
</script>
<style>
@import url(resources/dummy.css?second);
</style>
<script>
window.addEventListener("load", t.step_func_done(() => {
let entries = performance.getEntriesByType('resource');
let first;
let second;
for (entry of entries) {
if (entry.name.includes("first")) {
first = entry;
}
if (entry.name.includes("second")) {
second = entry;
}
}
assert_true(first.responseEnd > second.startTime, "The second resource start time should not be blocked on the first resource response");
}));
</script>