mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 19:28:48 +00:00
LibWeb: Preserve opening quotation in string token original source text
Used by chess.com, where it stores URLs to assets in CSS URL variables. It then receives the value of them with getComputedStyle() and then getPropertyValue(). With this, it trims off the url('') wrapper with a simple slice(5, -2). Since we didn't preserve the opening quotation, it would slice off the `h` in `https` instead of the quotation.
This commit is contained in:
parent
a5e4a51b52
commit
d3057a9c79
Notes:
github-actions[bot]
2025-02-05 16:03:08 +00:00
Author: https://github.com/Lubrsi
Commit: d3057a9c79
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3466
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 17 additions and 3 deletions
|
@ -0,0 +1 @@
|
|||
style.getPropertyValue("--test-url") = url('https://ladybird.org/')
|
Loading…
Add table
Add a link
Reference in a new issue