Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions paint-timing/fcp-only/fcp-border-image-with-svg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/utils.js"></script>
<style>
#bordered {
width: 100px;
height: 100px;
border: 30px solid transparent;
border-image-source: url(../resources/circle.svg);
border-image-width: 30px;
}
</style>
<div id='bordered'></div>
<script>
setup({"hide_test_state": true});
promise_test(async t => {
const onload = new Promise(r => window.addEventListener('load', r));
await onload;
return assertNoFirstContentfulPaint(t).then(() => {
document.getElementById('bordered').style.borderImageWidth = '30px';
}).then(() => {
return assertFirstContentfulPaint(t);
});
}, 'Border image with SVG triggers First Contentful Paint.');
</script>
</body>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
width: 100px;
height: 100px;
border: 30px solid transparent;
border-image-source: url(../resources/circle.svg);
border-image-source: url(../resources/circles.png);
border-image-width: 0px;
}
</style>
Expand Down
Loading