diff --git a/src/Value/Size.php b/src/Value/Size.php index b3801dc1..6456ba79 100644 --- a/src/Value/Size.php +++ b/src/Value/Size.php @@ -24,7 +24,7 @@ class Size extends PrimitiveValue /** * @var array */ - const NON_SIZE_UNITS = ['deg', 'grad', 'rad', 's', 'ms', 'turns', 'Hz', 'kHz']; + const NON_SIZE_UNITS = ['deg', 'grad', 'rad', 's', 'ms', 'turn', 'Hz', 'kHz']; /** * @var array>|null diff --git a/tests/ParserTest.php b/tests/ParserTest.php index ab247c3d..40c34583 100644 --- a/tests/ParserTest.php +++ b/tests/ParserTest.php @@ -360,7 +360,7 @@ public function manipulation() self::assertSame( '#header {margin: 10px 2em 1cm 2%;font-family: Verdana,Helvetica,"Gill Sans",sans-serif;' . 'font-size: 10px;color: red !important;background-color: green;' - . 'background-color: rgba(0,128,0,.7);frequency: 30Hz;} + . 'background-color: rgba(0,128,0,.7);frequency: 30Hz;transform: rotate(1turn);} body {color: green;font: 75% "Lucida Grande","Trebuchet MS",Verdana,sans-serif;}', $oDoc->render() ); @@ -369,7 +369,7 @@ public function manipulation() } self::assertSame( '#header {margin: 10px 2em 1cm 2%;color: red !important;background-color: green;' - . 'background-color: rgba(0,128,0,.7);frequency: 30Hz;} + . 'background-color: rgba(0,128,0,.7);frequency: 30Hz;transform: rotate(1turn);} body {color: green;}', $oDoc->render() ); @@ -377,7 +377,7 @@ public function manipulation() $oRuleSet->removeRule('background-'); } self::assertSame( - '#header {margin: 10px 2em 1cm 2%;color: red !important;frequency: 30Hz;} + '#header {margin: 10px 2em 1cm 2%;color: red !important;frequency: 30Hz;transform: rotate(1turn);} body {color: green;}', $oDoc->render() ); diff --git a/tests/fixtures/values.css b/tests/fixtures/values.css index 47be69b0..35dbd729 100644 --- a/tests/fixtures/values.css +++ b/tests/fixtures/values.css @@ -6,6 +6,7 @@ background-color: green; background-color: rgba(0,128,0,0.7); frequency: 30Hz; + transform: rotate(1turn); } body {