Skip to content

Commit

Permalink
[BUGFIX] Correct invalid CSS in test data (#1141)
Browse files Browse the repository at this point in the history
This is for tests where the CSS is not meant to be deliberately invalid.

(Found while working on #1139.)
  • Loading branch information
JakeQZ authored Dec 20, 2021
1 parent f83591a commit 483dbb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Unit/CssInlinerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,8 @@ public function nonMatchedCssDataProvider(): array
'child universal => not self' => ['body > * { %1$s }', '<body>'],
'child universal => not grandchild' => ['body > * { %1$s }', '<span>'],
'child of universal => not root element' => ['* > html { %1$s }', '<html>'],
'descendent universal => not parent' => ['p *', '<body>'],
'descendent universal => not self' => ['p *', '<p class="p-1">'],
'descendent universal => not parent' => ['p * { %1$s }', '<body>'],
'descendent universal => not self' => ['p * { %1$s }', '<p class="p-1">'],
'descendant of universal => not root element' => ['* html { %1$s }', '<html>'],
'descendent type & attribute value with ^ => not element with only substring match in attribute value' => [
'p span[title^=njo] { %1$s }',
Expand Down Expand Up @@ -3252,7 +3252,7 @@ public function inlineCssIgnoresPseudoClassCombinedWithPseudoElement(): void
public function inlineCssKeepsInlineStylePriorityVersusStyleBlockRules(): void
{
$subject = $this->buildDebugSubject(
'<html><head><style>p {padding:10px};</style></head><body><p style="padding-left:20px;"></p></body></html>'
'<html><head><style>p {padding:10px;}</style></head><body><p style="padding-left:20px;"></p></body></html>'
);

$subject->inlineCss();
Expand Down

0 comments on commit 483dbb3

Please sign in to comment.