]> git.eshelyaron.com Git - emacs.git/commitdiff
Update SCSS test file syntax.
authorPhilipp Stephani <phst@google.com>
Fri, 18 Jun 2021 06:24:03 +0000 (08:24 +0200)
committerPhilipp Stephani <phst@google.com>
Fri, 18 Jun 2021 06:32:55 +0000 (08:32 +0200)
According to
https://sass-lang.com/documentation/breaking-changes/slash-div, the
slash operator should be replaced by 'math.div'.

Fixed using the migration tool mentioned at
https://sass-lang.com/documentation/breaking-changes/slash-div#automatic-migration.

* test/manual/indent/scss-mode.scss: Remove slash operator.

test/manual/indent/scss-mode.scss

index 189ec4e22ac36fdb480c0320ea64a362d0503685..2cd4adb8d550509d833c15a8e946c55d1669fc81 100644 (file)
@@ -1,5 +1,7 @@
 // Comment!
 
+@use "sass:math";
+
 nav {
     ul {
         margin: 0;              /* More comment */
@@ -44,8 +46,8 @@ article[role="main"] {
     $var_with_underscores: #fff;
     $_var-starting-with-underscore: none;
     float: left !important;
-    width: 600px / 888px * 100%;
-    height: 100px / 888px * 100%;
+    width: math.div(600px, 888px) * 100%;
+    height: math.div(100px, 888px) * 100%;
     color: $var_with_underscores;
     display: $_var-starting-with-underscore;
 }