diff --git a/src/DiDom/StyleAttribute.php b/src/DiDom/StyleAttribute.php
index <HASH>..<HASH> 100644
--- a/src/DiDom/StyleAttribute.php
+++ b/src/DiDom/StyleAttribute.php
@@ -73,7 +73,7 @@ class StyleAttribute
         $properties = explode(';', $styleString);
 
         foreach ($properties as $property) {
-            list($name, $value) = explode(':', $property);
+            list($name, $value) = explode(':', $property, 2);
 
             $name = trim($name);
             $value = trim($value);
diff --git a/tests/StyleAttributeTest.php b/tests/StyleAttributeTest.php
index <HASH>..<HASH> 100644
--- a/tests/StyleAttributeTest.php
+++ b/tests/StyleAttributeTest.php
@@ -171,9 +171,9 @@ class StyleAttributeTest extends TestCase
                 '16px',
             ],
             [
-                'color: blue; font-size: 16px; border: 1px solid black;',
-                'font-size',
-                '16px',
+                'background-image: url(https://example.com/image.jpg); background-repeat: no-repeat',
+                'background-image',
+                'url(https://example.com/image.jpg)',
             ],
             [
                 'color: blue; font-size: 16px; border: 1px solid black;',
Fix parsing of a style property in "style" attribute when the value contains a colon