Files
ladybird/Tests/LibWeb/Ref/input/css/background-clip-text-float.html
mikiubo e761d80e9f LibWeb: Skip non-in-flow, non-floated in background-clip:text
Per the CSS Backgrounds spec, background-clip:text clips the
background to the geometry of text in the element and its in-flow
and floated descendants only.

Skip subtrees rooted at paintables that are neither in-flow
nor floated when computing the text clip path, so that
absolutely/fixed positioned descendants (including pseudo-elements)
do not contribute to the clip.

Fixes #7498
2026-03-21 00:06:00 +00:00

18 lines
365 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="match" href="../../expected/css/background-clip-text-float.html" />
<style>
div {
background: linear-gradient(red, blue);
background-clip: text;
color: transparent;
font: bold 40px sans-serif;
}
</style>
</head>
<body>
<div>World<span style="float: left">Hello</span></div>
</body>
</html>