mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
LibWeb/CSS: Allow whitespace inside fit-content() function
This commit is contained in:
parent
591c6b0f68
commit
718e874cc7
Notes:
github-actions[bot]
2025-02-27 13:31:36 +00:00
Author: https://github.com/AtkinsSJ
Commit: 718e874cc7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3715
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 23 additions and 2 deletions
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test(() => {
|
||||
let inputs = [
|
||||
"fit-content(10%)",
|
||||
"fit-content( 10%)",
|
||||
"fit-content(10% )",
|
||||
"fit-content( 10% )",
|
||||
];
|
||||
let target = document.getElementById('target');
|
||||
for (let input of inputs) {
|
||||
target.style.width = '';
|
||||
target.style.width = input;
|
||||
println(`"${input}" became "${target.style.width}"`);
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue