According to the CSS2.1 spec, when a string CSS value is serialized, it should be quoted by single quotation mark (') or double quotation mark ("). http://www.w3.org/TR/2009/CR-CSS2-20090423/syndata.html#value-def-string Currently WebKit just returns a bare word, which is an invalid CSS value that the WebKit's CSS parser does not parse. See attached test case for clarification.
Created attachment 38855 [details] Test case
We could preferably use double quotation mark instead of single quotation mark, as the CSSOM draft suggests. http://dev.w3.org/csswg/cssom/#parsing
The provided test case passes on firefox, and the request seems reasonable, so marking bug as new (confirmed).
See also: bug 79448.
Created attachment 144236 [details] Updated test case This obsoletes the previous test case. As per http://dev.w3.org/csswg/cssom/#serialize-a-string, only " may be used to wrap string values, not '.
I am unable to reproduce this bug in Safari 15.6 on macOS using "Updated Test Case" and it shows as "PASS" and Safari do pass "serialization" tests on WPT (but not all), I was not able to find this on WPT: https://wpt.fyi/results/css?label=master&label=experimental&aligned&q=serialization Please ignore my comment, if it is not fixed. Thanks!
*** This bug has been marked as a duplicate of bug 73152 ***