mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 13:18:45 +02:00
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
30 lines
1 KiB
HTML
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>
|
|
|