HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/node_modules/@material/theme/test/replace.test.scss
@use '../custom-properties';
@use '../theme';

.simple {
  @include theme.property(width, 'calc(x - y)', $replace: (x: 100%, y: 20px));
}

.var {
  $first: custom-properties.create(--m-foo, 16px);
  $second: custom-properties.create(--m-bar, 8px);
  @include theme.property(
    width,
    'calc(first + second)',
    $replace: (first: $first, second: $second)
  );

  @include theme.property(
    height,
    'calc(first + second + first + second)',
    $replace: (first: $first, second: $second)
  );
}

.multiple {
  @include theme.property(width, 'calc(x + x + x)', $replace: (x: 8px));
}

.list {
  @include theme.property(padding, 0 value, $replace: (value: 16px));
}

.replace-nulls {
  // Entire block should be dropped. This should not be emitted.
  @include theme.property(padding, a b, $replace: (a: 16px, b: null));
}