doc: Update comments

This commit is contained in:
Hannes 2021-03-20 09:24:29 +01:00
parent fdabcb7384
commit f5b122aaed
No known key found for this signature in database
GPG key ID: 371029119C5F0D51
2 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ class MatcherFactoryExtender extends MatcherFactory {
private static $extendedCssMediaQuery = false;
/**
* This is in reality a complete copy of the parent hook with line 49 and 91 extended
* This is in reality a complete copy of the parent hook with line 68 and 110 extended
* This can very easily break if there is an update upstream
*
* @inheritDoc
@ -160,5 +160,4 @@ class MatcherFactoryExtender extends MatcherFactory {
return $this->cache[$key];
}
}

View file

@ -71,10 +71,11 @@ class TemplateStylesExtender {
] )
);
// This is kind of ugly?
// Match anything*\s?[var anything|anything var]+\s?anything*(!important)?
// The problem is, that var can be used more or less anywhere
// Setting ONLY var as a CssWideKeywordMatcher does not work as we are then limited to one css value
// The problem is, that var() can be used more or less anywhere
// Setting ONLY var as a CssWideKeywordMatcher would limit the matching to one property
// E.g.: color: var( --color-base ); would work
// border: 1px var( --border-type ) black; would not
// So we need to construct a matcher that matches anything + var somewhere
$propertySanitizer->setCssWideKeywordsMatcher(
new Juxtaposition( [