diff --git a/src/lib/style-properties.html b/src/lib/style-properties.html
index 0721f026d1..4544ede18a 100644
--- a/src/lib/style-properties.html
+++ b/src/lib/style-properties.html
@@ -164,6 +164,11 @@
// fallback may be --a or var(--a) or literal
propertyValue = self.valueForProperty(props[fallback] || fallback, props) ||
fallback;
+ } else if (propertyValue === 'apply-shim-inherit') {
+ // CSS build will replace `inherit` with `apply-shim-inherit`
+ // for use with native css variables.
+ // Since we have full control, we can use `inherit` directly.
+ propertyValue = 'inherit';
}
return prefix + (propertyValue || '') + suffix;
};
diff --git a/test/unit/styling-cross-scope-apply.html b/test/unit/styling-cross-scope-apply.html
index 68979059db..9468d69fca 100644
--- a/test/unit/styling-cross-scope-apply.html
+++ b/test/unit/styling-cross-scope-apply.html
@@ -656,6 +656,37 @@
+
+
+
+
+
+
+
+
+