mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 09:27:00 +02:00
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
17 lines
251 B
HTML
17 lines
251 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
div {
|
|
background: linear-gradient(red, blue);
|
|
background-clip: text;
|
|
color: transparent;
|
|
font: bold 40px sans-serif;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div>HelloWorld</div>
|
|
</body>
|
|
</html>
|