1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

LibWeb: Serialize custom properties in CSSStyleDeclaration::serialized()

Prior to this commit, PropertyOwningCSSStyleDeclaration::serialized()
did not include custom properties, which lead to an incomplete
`cssRule.cssText` result.
This commit makes that class also serialize the custom properties and
place them before the regular properties in the rule text.
This commit is contained in:
Ali Mohammad Pur 2023-06-09 02:08:11 +03:30 committed by Sam Atkins
parent f95ed9f373
commit 141143a1c6
3 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1 @@
test { --color: red; color: rgb(255, 0, 0); }