mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
url() has some limitations because of allowing unquoted URLs as its contents. For example, it can't use `var()`. To get around this, there's an alternative `src()` function which behaves the same as `url()` except that it is parsed as a regular function, which makes `var()` and friends work properly. There's no WPT test for this as far as I can tell, so I added our own.
6 lines
171 B
Plaintext
6 lines
171 B
Plaintext
Before: none
|
|
Using url('cool.png'): url("cool.png")
|
|
Using url(var(--some-url)): none
|
|
Using src('cool.png'): src("cool.png")
|
|
Using src(var(--some-url)): src("awesome.png")
|