From 2a85a9093d6b8da892d5118413ea94922c9dfd72 Mon Sep 17 00:00:00 2001 From: Jake Hotson Date: Wed, 5 Mar 2025 12:24:22 +0000 Subject: [PATCH] Deprecate support for `-webkit-calc` and `-moz-calc` --- CHANGELOG.md | 1 + src/Value/CalcFunction.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e69f6243..119d0023 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Deprecated +- Deprecate support for `-webkit-calc` and `-moz-calc` (#1086) - Deprecate `__toString()` (#1006) - Deprecate greedy calculation of selector specificity (#1018) - Deprecate the IE hack in `Rule` (#993, #1003) diff --git a/src/Value/CalcFunction.php b/src/Value/CalcFunction.php index 70f2f458..c3ed0a08 100644 --- a/src/Value/CalcFunction.php +++ b/src/Value/CalcFunction.php @@ -6,6 +6,9 @@ use Sabberworm\CSS\Parsing\UnexpectedEOFException; use Sabberworm\CSS\Parsing\UnexpectedTokenException; +/** + * Support for `-webkit-calc` and `-moz-calc` is deprecated in version 8.8.0, and will be removed in version 9.0.0. + */ class CalcFunction extends CSSFunction { /**