This is a sub-task of Project Ribbon.
The code for Custom Property style code is spread throughout the style engine. It follows the same pipeline as normal CSS properties, but is a special case at every stop. The code is ugly, has some bugs in it, and apparently is slow.
We should elevate individual custom properties to the status of a CSS property so that they can be handled by the same or similar code as CSS properties. This means that instead of looking for an ID, finding CSSPropertyVariable (the CSSPropertyID for custom properties), and then looking up the property by name, we can treat the custom property’s name as its ID & handle the custom property like a CSS property.
Comment 1 by mikelawther@chromium.org
, Oct 31 2017