What is said in the console -- especially in chrome-likes -- has almost nothing to do with what the actual proper code is. It's one of the more annoying parts is that rather than using the terminology and syntax of HTML and CSS, they report the syntax / naming conventions of the C code used to build the browser. :/
It's like the mistake of thinking that the inspector view of the DOM is the same as the written source. Whilst the markup is turned into the DOM, things can be added to the DOM after-the-fact. DOM methods and properties are not HTML attributes even if attributes are turned into or aliased by properties.
Same as the difference between Element.value, Element.initialValue, and Element.getAttribute("value") -- which can return entirely different values.
See the mistake I'm seeing a lot lately where people are declaring attributes in their HTML that are not valid HTML attributes, but exist as Element or Node properties in JavaScript. Just because it exists in JS on the DOM does not mean it exists in HTML!
https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/fetchPriorityFor example. It exists on the HTMLLinkElement in JavaScript. That does not mean:
<link fetchpriority="low">
Is valid HTML. That's gibberish.
</rant>
Anyhow, do NOT trust that what the document inspector or browser console is telling you is the correct CSS syntax. It's usually just whatever the browser engine maker feels like saying and NOT all that helpful.
Yeah, it sucks.