mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb/CSS: Don't serialize longhands which match their initial values
Shorthand subproperties that match their initial values are now excluded from serialization, by default. Properties where this behavior is not desired, like `gap`, are special-cased.
This commit is contained in:
parent
b4b8d85251
commit
3186adeaa1
Notes:
github-actions[bot]
2025-04-07 10:40:16 +00:00
Author: https://github.com/tcl3
Commit: 3186adeaa1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4259
Reviewed-by: https://github.com/AtkinsSJ ✅
6 changed files with 144 additions and 27 deletions
|
@ -0,0 +1,25 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 20 tests
|
||||
|
||||
20 Pass
|
||||
Pass e.style['outline'] = "rgba(10, 20, 30, 0.4)" should set the property value
|
||||
Pass e.style['outline'] = "auto" should set the property value
|
||||
Pass e.style['outline'] = "none" should set the property value
|
||||
Pass e.style['outline'] = "dotted" should set the property value
|
||||
Pass e.style['outline'] = "dashed" should set the property value
|
||||
Pass e.style['outline'] = "solid" should set the property value
|
||||
Pass e.style['outline'] = "double" should set the property value
|
||||
Pass e.style['outline'] = "groove" should set the property value
|
||||
Pass e.style['outline'] = "ridge" should set the property value
|
||||
Pass e.style['outline'] = "inset" should set the property value
|
||||
Pass e.style['outline'] = "outset" should set the property value
|
||||
Pass e.style['outline'] = "0" should set the property value
|
||||
Pass e.style['outline'] = "1px" should set the property value
|
||||
Pass e.style['outline'] = "calc(2em + 3ex)" should set the property value
|
||||
Pass e.style['outline'] = "thin" should set the property value
|
||||
Pass e.style['outline'] = "medium" should set the property value
|
||||
Pass e.style['outline'] = "thick" should set the property value
|
||||
Pass e.style['outline'] = "dashed thin" should set the property value
|
||||
Pass e.style['outline'] = "medium rgba(10, 20, 30, 0.4)" should set the property value
|
||||
Pass e.style['outline'] = "3px ridge rgba(10, 20, 30, 0.4)" should set the property value
|
Loading…
Add table
Add a link
Reference in a new issue