mirror of
https://github.com/octfx/mediawiki-extensions-TemplateStylesExtender.git
synced 2024-11-15 03:35:54 +00:00
doc: Update comments
This commit is contained in:
parent
fdabcb7384
commit
f5b122aaed
|
@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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( [
|
||||
|
|
Loading…
Reference in a new issue