summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/paint-timing/replaced-content-image.html
blob: b3199aa0f6d54cc102ed5262c71021e232816ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/utils.js"></script>
<style>
  img {
    content: url(resources/circle.svg);
  }
</style>
<img></img>
<script>
setup({"hide_test_state": true});
promise_test(async t => {
  const onload = new Promise(r => window.addEventListener('load', r));
  await onload;
  return assertFirstContentfulPaint(t);
}, 'Replaced content image triggers First Contentful Paint.');
</script>
</body>