mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 01:22:43 +02:00
Both Chromium and Gecko delay the document's load event for CSS image resource requests (background-image, mask-image, etc). We now start fetching CSS image resources as soon as their stylesheet is associated with a document, rather than deferring until layout. This is done by collecting ImageStyleValues during stylesheet parsing and initiating their fetches when the stylesheet is added to the document. Fixes #3448
16 lines
396 B
HTML
16 lines
396 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="match" href="../expected/background-size-calc-ref.html" />
|
|
<style>
|
|
span {
|
|
display: inline-block;
|
|
min-width: 12px;
|
|
min-height: 12px;
|
|
background-image: url("../data/2x2checkerboard.png");
|
|
background-size: calc(max(0.75em, 12px));
|
|
}
|
|
</style>
|
|
</head>
|
|
<body><span></span>
|