mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 11:48:59 +00:00
LibWeb: Ensure the shortest serialization is used for border-radius
This implementation also fixes an issue where the individual components of the `border-radius` shorthand were always assumed to be of type `BorderRadiusStyleValue`, which could lead to a crash when CSS-wide keywords were used.
This commit is contained in:
parent
040dca0223
commit
85728b297f
Notes:
github-actions[bot]
2025-03-18 20:56:13 +00:00
Author: https://github.com/tcl3
Commit: 85728b297f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3982
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta ✅
4 changed files with 119 additions and 18 deletions
|
@ -57,9 +57,9 @@ All supported properties and their default values exposed from CSSStyleDeclarati
|
|||
'WebkitBorderBottomRightRadius': '0px'
|
||||
'webkitBorderBottomRightRadius': '0px'
|
||||
'-webkit-border-bottom-right-radius': '0px'
|
||||
'WebkitBorderRadius': '0px 0px 0px 0px / 0px 0px 0px 0px'
|
||||
'webkitBorderRadius': '0px 0px 0px 0px / 0px 0px 0px 0px'
|
||||
'-webkit-border-radius': '0px 0px 0px 0px / 0px 0px 0px 0px'
|
||||
'WebkitBorderRadius': '0px'
|
||||
'webkitBorderRadius': '0px'
|
||||
'-webkit-border-radius': '0px'
|
||||
'WebkitBorderTopLeftRadius': '0px'
|
||||
'webkitBorderTopLeftRadius': '0px'
|
||||
'-webkit-border-top-left-radius': '0px'
|
||||
|
@ -242,8 +242,8 @@ All supported properties and their default values exposed from CSSStyleDeclarati
|
|||
'border-left-style': 'none'
|
||||
'borderLeftWidth': 'medium'
|
||||
'border-left-width': 'medium'
|
||||
'borderRadius': '0px 0px 0px 0px / 0px 0px 0px 0px'
|
||||
'border-radius': '0px 0px 0px 0px / 0px 0px 0px 0px'
|
||||
'borderRadius': '0px'
|
||||
'border-radius': '0px'
|
||||
'borderRight': 'medium none rgb(0, 0, 0)'
|
||||
'border-right': 'medium none rgb(0, 0, 0)'
|
||||
'borderRightColor': 'rgb(0, 0, 0)'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue