We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a6b3f2 commit a18064fCopy full SHA for a18064f
src/MoodleHQ/RTLCSS/RTLCSS.php
@@ -354,7 +354,7 @@ protected function processTransformOrigin(Rule $rule) {
354
355
$value = $parts[0];
356
// The first value may be referencing top or bottom (y instead of x).
357
- if (!is_object($value) && preg_match('/top|bottom/i', $value)) {
+ if (!is_object($value) && preg_match('/top|bottom/i', $value) && count($parts)>1) {
358
$value = $parts[1];
359
}
360
0 commit comments