RESOLVED FIXED299162
getComputedStyle("top") percentage on abspos inside inline
https://bugs.webkit.org/show_bug.cgi?id=299162
Summary getComputedStyle("top") percentage on abspos inside inline
Ahmad Saleem
Reported 2025-09-19 00:24:37 PDT
Hi Team, While going through Blink's commit, I came across another failing test case in WebKit / Safari (tested on STP 228): Test Case: https://jsfiddle.net/p0whgs5q/1/ ^ Passes on Firefox Nightly 144 and Chrome Canary 142. Blink Commit: https://chromium.googlesource.com/chromium/src.git/+/80b32be864d5150c90a0ba85cf4ebf76cbd3e63e WebKit Source: https://searchfox.org/wubkat/rev/8cf7c05ce072132dae6505122ec9a448526aa29a/Source/WebCore/rendering/RenderBox.cpp#4341 (Might be here to add something) Just raising, so we can track it and fix it eventually. Thanks!
Attachments
Patch (5.91 KB, patch)
2025-10-23 19:10 PDT, alan
no flags
[fast-cq]Patch (7.15 KB, patch)
2025-10-24 05:06 PDT, alan
no flags
Ahmad Saleem
Comment 2 2025-09-24 02:31:17 PDT
> LayoutTests/fast/css/getComputedStyle/computed-style-percentage-top-with-position.html PASS computedStyle.getPropertyValue('top') is "50%" FAIL computedStyle.getPropertyValue('top') should be 10px. Was 232px. PASS computedStyle.getPropertyValue('top') is "300px" PASS computedStyle.getPropertyValue('top') is "300px" PASS computedStyle.getPropertyValue('top') is "50%" FAIL computedStyle.getPropertyValue('top') should be 10px. Was 232px. PASS computedStyle.getPropertyValue('top') is "30px" PASS computedStyle.getPropertyValue('top') is "300px" PASS computedStyle.getPropertyValue('top') is "50%" FAIL computedStyle.getPropertyValue('top') should be 10px. Was 240px. PASS computedStyle.getPropertyValue('top') is "30px" PASS computedStyle.getPropertyValue('top') is "300px" PASS computedStyle.getPropertyValue('top') is "50%" FAIL computedStyle.getPropertyValue('top') should be 10px. Was 240px. PASS computedStyle.getPropertyValue('top') is "30px" PASS computedStyle.getPropertyValue('top') is "300px" PASS computedStyle.getPropertyValue('top') is "50%" FAIL computedStyle.getPropertyValue('top') should be 10px. Was 232px. PASS computedStyle.getPropertyValue('top') is "300px" PASS computedStyle.getPropertyValue('top') is "300px" PASS computedStyle.getPropertyValue('top') is "50%" FAIL computedStyle.getPropertyValue('top') should be 10px. Was 232px. PASS computedStyle.getPropertyValue('top') is "30px" PASS computedStyle.getPropertyValue('top') is "300px" PASS computedStyle.getPropertyValue('top') is "50%" PASS computedStyle.getPropertyValue('top') is "150px" PASS computedStyle.getPropertyValue('top') is "180px" PASS computedStyle.getPropertyValue('top') is "300px" PASS computedStyle.getPropertyValue('top') is "50%" PASS computedStyle.getPropertyValue('top') is "150px" PASS computedStyle.getPropertyValue('top') is "180px" PASS computedStyle.getPropertyValue('top') is "300px"
Radar WebKit Bug Importer
Comment 3 2025-09-26 00:25:11 PDT
alan
Comment 5 2025-10-23 19:10:54 PDT
alan
Comment 6 2025-10-24 05:06:58 PDT
Created attachment 477189 [details] [fast-cq]Patch
EWS
Comment 7 2025-10-24 07:14:56 PDT
Committed 302090@main (f53a3d867b21): <https://commits.webkit.org/302090@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 477189 [details].
Note You need to log in before you can comment on or make changes to this bug.