Created attachment 304391 [details]
1. load the attached testcase and look at the output in the console
Safari does not support display:contents (the rendered red border proves that)
so 'contents' should be rejected as a valid value for the 'display' property.
This looks fixed in Safari 14 & STP.