mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Implement basic CSS random() function
At the moment this is limited to only fixed value sharing and does not support step values
This commit is contained in:
parent
8944130fde
commit
2a5e389f63
Notes:
github-actions[bot]
2025-12-01 11:02:05 +00:00
Author: https://github.com/Calme1709
Commit: 2a5e389f63
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6707
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/gmta
17 changed files with 380 additions and 31 deletions
|
|
@ -168,6 +168,28 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"random": {
|
||||
"parameter-validation": "consistent",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "random-value-sharing",
|
||||
"type": "<random-value-sharing>",
|
||||
"required": false,
|
||||
"default": "auto",
|
||||
"__comment": "NOTE: The actual default is hardcoded and we don't respect the value above, we have it there so we know that this argument has a default"
|
||||
},
|
||||
{
|
||||
"name": "minimum",
|
||||
"type": "<number>|<dimension>|<percentage>",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name": "maximum",
|
||||
"type": "<number>|<dimension>|<percentage>",
|
||||
"required": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"rem": {
|
||||
"parameter-validation": "same",
|
||||
"parameters": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue