mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibWeb: Implement composition for FitContentStyleValue
This commit is contained in:
Notes:
github-actions[bot]
2026-04-09 20:43:37 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/f4e7e193daa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8737 Reviewed-by: https://github.com/AtkinsSJ ✅
17
Tests/LibWeb/Text/input/css/fit-content-composition.html
Normal file
17
Tests/LibWeb/Text/input/css/fit-content-composition.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!doctype html>
|
||||
<div id="target"></div>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
target.style.width = "fit-content(5px)";
|
||||
let animation = target.animate([
|
||||
{ offset: 0, composite: "add", width: "fit-content(5px)" },
|
||||
{ offset: 1, composite: "add", width: "fit-content(15px)" },
|
||||
], { duration: 1000, fill: "forwards" });
|
||||
animation.pause();
|
||||
for (let time of [0, 500, 1000]) {
|
||||
animation.currentTime = time;
|
||||
println(target.computedStyleMap().get("width").toString());
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user