diff --git a/Tests/LibWeb/Text/expected/css/revert-all.txt b/Tests/LibWeb/Text/expected/css/revert-all.txt
new file mode 100644
index 00000000000..aaecaf93c4a
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/css/revert-all.txt
@@ -0,0 +1 @@
+PASS (didn't crash)
diff --git a/Tests/LibWeb/Text/input/css/revert-all.html b/Tests/LibWeb/Text/input/css/revert-all.html
new file mode 100644
index 00000000000..7bb8767af20
--- /dev/null
+++ b/Tests/LibWeb/Text/input/css/revert-all.html
@@ -0,0 +1,9 @@
+
+
+
diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp
index 326de53565c..8dfb0bc8cc5 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp
@@ -859,13 +859,7 @@ void StyleComputer::set_all_properties(DOM::Element& element, Optional value)
{
m_animated_property_values.set(id, move(value));
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.h b/Userland/Libraries/LibWeb/CSS/StyleProperties.h
index ef383b63837..d6dad7a51f7 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleProperties.h
+++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.h
@@ -54,6 +54,7 @@ public:
void set_animated_property(CSS::PropertyID, NonnullRefPtr value);
NonnullRefPtr property(CSS::PropertyID) const;
RefPtr maybe_null_property(CSS::PropertyID) const;
+ void revert_property(CSS::PropertyID, StyleProperties const& style_for_revert);
JS::GCPtr animation_name_source() const { return m_animation_name_source; }
void set_animation_name_source(JS::GCPtr declaration) { m_animation_name_source = declaration; }