For elements like optgroup, the computedStyle is NULL, which results in a crash.
rdar://102809096
Pull request: https://github.com/WebKit/WebKit/pull/7008
Committed 257295@main (324460324818): <https://commits.webkit.org/257295@main> Reviewed commits have been landed. Closing PR #7008 and removing active labels.