sass4 4.0.4 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/sass/scss/parser.rb +20 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a95a8abb4e8cac8e011430db6f4b0420734229f1c3d34679021a36b7f2319522
|
|
4
|
+
data.tar.gz: 8d2d7d357322744008fb0626f67593e2fdfcdf6582df2dc717da8dfbaf586613
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6303afe9ca9060a8de4e6fd4e9e8cc0e0ac024916abf9e494a323e636f77e6b8907d6f3c31755db23d89e0b1115f799c3f89b64e2468683b74571209cb491f3
|
|
7
|
+
data.tar.gz: 581d6dbb0a5ead1cb9f6f3dd40dec02992e77d691bcd22360166ded3538b4bfd4ebca7b7a9d04509237da2a6e0b989feb2a7312f6c466bd674f8c5cdcbdc839f
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.0.
|
|
1
|
+
4.0.5
|
data/lib/sass/scss/parser.rb
CHANGED
|
@@ -905,6 +905,7 @@ module Sass
|
|
|
905
905
|
#
|
|
906
906
|
# [token consumption algorithm]: https://drafts.csswg.org/css-syntax-3/#consume-token.
|
|
907
907
|
result = sass_variable_in_custom_property ||
|
|
908
|
+
declaration_value_quoted_url ||
|
|
908
909
|
tok(%r{
|
|
909
910
|
(
|
|
910
911
|
(?!
|
|
@@ -943,6 +944,25 @@ module Sass
|
|
|
943
944
|
end
|
|
944
945
|
end
|
|
945
946
|
|
|
947
|
+
# url("...") and url('...') inside custom property values (Dart Sass
|
|
948
|
+
# handles these via bracket/string scanning; our url lexer only matched
|
|
949
|
+
# unquoted URLCHAR, so quoted data URIs failed before any '(' token).
|
|
950
|
+
def declaration_value_quoted_url
|
|
951
|
+
start = @scanner.pos
|
|
952
|
+
return unless tok(/url\(#{W}/i)
|
|
953
|
+
inner = interp_string
|
|
954
|
+
unless inner
|
|
955
|
+
@scanner.pos = start
|
|
956
|
+
return
|
|
957
|
+
end
|
|
958
|
+
ss
|
|
959
|
+
unless tok(/\)/)
|
|
960
|
+
@scanner.pos = start
|
|
961
|
+
return
|
|
962
|
+
end
|
|
963
|
+
['url(', *inner, ')']
|
|
964
|
+
end
|
|
965
|
+
|
|
946
966
|
def declaration
|
|
947
967
|
# This allows the "*prop: val", ":prop: val", "#prop: val", and ".prop:
|
|
948
968
|
# val" hacks.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sass4
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Natalie Weizenbaum
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2026-04-
|
|
14
|
+
date: 2026-04-09 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: sass-listen
|