CSS variable names are case-sensitive. CSSAgent.getMatchedStylesForNode() and CSSAgent.getInlineStylesForNode() returns variables always in lowercase. Steps: 1. Open data:text/html;,<body style="--lineWidth:5;border-top:calc(var(--lineWidth)*1px) solid magenta"> 2. Inspect body 3. Change --lineWidth value to 10 Expected: The border is 10px wide now. Actual: The border is no longer visible. <rdar://61711536>
I'd appreciate any tips here. I'm not seeing any lowercase conversions in WebCore/inspector/agents/InspectorCSSAgent.cpp. I'm looking at WebCore/css now.
Created attachment 466611 [details] Screenshot of confirmed fix This was fixed some time ago. The backend returns variable names in correct case.