Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 26 additions & 13 deletions tests/RuleSet/DeclarationBlockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,28 @@ public function expandFontShorthandProvider()
],
[
'body {font: 12px serif;}',
'body {font-style: normal;font-variant: normal;font-weight: normal;font-size: 12px;line-height: normal;font-family: serif;}',
'body {font-style: normal;font-variant: normal;font-weight: normal;font-size: 12px;'
. 'line-height: normal;font-family: serif;}',
],
[
'body {font: italic 12px serif;}',
'body {font-style: italic;font-variant: normal;font-weight: normal;font-size: 12px;line-height: normal;font-family: serif;}',
'body {font-style: italic;font-variant: normal;font-weight: normal;font-size: 12px;'
. 'line-height: normal;font-family: serif;}',
],
[
'body {font: italic bold 12px serif;}',
'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;line-height: normal;font-family: serif;}',
'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;'
. 'line-height: normal;font-family: serif;}',
],
[
'body {font: italic bold 12px/1.6 serif;}',
'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;line-height: 1.6;font-family: serif;}',
'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;'
. 'line-height: 1.6;font-family: serif;}',
],
[
'body {font: italic small-caps bold 12px/1.6 serif;}',
'body {font-style: italic;font-variant: small-caps;font-weight: bold;font-size: 12px;line-height: 1.6;font-family: serif;}',
'body {font-style: italic;font-variant: small-caps;font-weight: bold;font-size: 12px;'
. 'line-height: 1.6;font-family: serif;}',
],
];
}
Expand All @@ -96,23 +101,28 @@ public function expandBackgroundShorthandProvider()
['body {border: 1px;}', 'body {border: 1px;}'],
[
'body {background: #f00;}',
'body {background-color: #f00;background-image: none;background-repeat: repeat;background-attachment: scroll;background-position: 0% 0%;}',
'body {background-color: #f00;background-image: none;background-repeat: repeat;'
. 'background-attachment: scroll;background-position: 0% 0%;}',
],
[
'body {background: #f00 url("foobar.png");}',
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: repeat;background-attachment: scroll;background-position: 0% 0%;}',
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: repeat;'
. 'background-attachment: scroll;background-position: 0% 0%;}',
],
[
'body {background: #f00 url("foobar.png") no-repeat;}',
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;background-attachment: scroll;background-position: 0% 0%;}',
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;'
. 'background-attachment: scroll;background-position: 0% 0%;}',
],
[
'body {background: #f00 url("foobar.png") no-repeat center;}',
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;background-attachment: scroll;background-position: center center;}',
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;'
. 'background-attachment: scroll;background-position: center center;}',
],
[
'body {background: #f00 url("foobar.png") no-repeat top left;}',
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;background-attachment: scroll;background-position: top left;}',
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;'
. 'background-attachment: scroll;background-position: top left;}',
],
];
}
Expand Down Expand Up @@ -197,7 +207,8 @@ public function createFontShorthandProvider()
'body {font: italic bold 12px/1.6 serif;}',
],
[
'body {font-size: 12px; font-family: serif; font-style: italic; font-weight: bold; line-height: 1.6; font-variant: small-caps;}',
'body {font-size: 12px; font-family: serif; font-style: italic; font-weight: bold; '
. 'line-height: 1.6; font-variant: small-caps;}',
'body {font: italic small-caps bold 12px/1.6 serif;}',
],
['body {margin: 1em;}', 'body {margin: 1em;}'],
Expand Down Expand Up @@ -265,11 +276,13 @@ public function createBackgroundShorthandProvider()
'body {background: #f00 url("foobar.png") no-repeat;}',
],
[
'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;background-position: center;}',
'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;'
. 'background-position: center;}',
'body {background: #f00 url("foobar.png") no-repeat center;}',
],
[
'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;background-position: top left;}',
'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;'
. 'background-position: top left;}',
'body {background: #f00 url("foobar.png") no-repeat top left;}',
],
];
Expand Down