WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
294363
canonical serialization returns 0.5 instead of calc(0.5)
https://bugs.webkit.org/show_bug.cgi?id=294363
Summary
canonical serialization returns 0.5 instead of calc(0.5)
Karl Dubost
Reported
2025-06-11 18:03:13 PDT
There are 8 tests failing the canonical serializarisation for opacity
http://wpt.fyi/css/css-color/parsing/opacity-valid.html
http://wpt.live/css/css-color/parsing/opacity-valid.html
Copy Paste this in the URL bar of different browsers: data:text/html,<div class="test" style="opacity:clamp(50%,0%,70%)"></div><div class="log"></div><script>document.querySelector(".log").textContent=document.querySelector(".test").style.getPropertyValue("opacity");</script> which is <div class="test" style="opacity: clamp(50%,0%,70%)"></div> document.querySelector(".test").style.getPropertyValue("opacity"); It returns: 0.5 Safari Technology Preview 18.4 (220) 20622.1.14.5 cal(0.5) Firefox Nightly 141.0a1 14125.6.5 clamp(50%, 0%, 70%) Google Chrome Canary 139.0.7233.0 7233.0
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-06-18 18:04:16 PDT
<
rdar://problem/153784390
>
ccarley2
Comment 2
2025-07-24 17:12:24 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/48505
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug