StyleProperties::asTextInternal() tries to serialize declarations using shorthands when possible. The list of shorthand candidates for each longhand is written manually. This is a big and fragile bunch of code that's missing various shorthands. Other shorthands are only mapped to some of their longhands but not others, causing bugs. It would be better to use matchingShorthandsForLonghand() to find the list of shorthand candidates automatically.
Pull request: https://github.com/WebKit/WebKit/pull/6307
Committed 256511@main (07aea4888889): <https://commits.webkit.org/256511@main> Reviewed commits have been landed. Closing PR #6307 and removing active labels.
<rdar://problem/102169019>