WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
299162
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
Details
Formatted Diff
Diff
[fast-cq]Patch
(7.15 KB, patch)
2025-10-24 05:06 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2025-09-24 02:30:41 PDT
Another -
https://chromium.googlesource.com/chromium/src.git/+/99edec126e2f1b3186cacd9f724b03537cf78896
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
<
rdar://problem/161390162
>
Karl Dubost
Comment 4
2025-09-30 00:18:26 PDT
https://wpt.fyi/results/css/css-position/position-absolute-percentage-height.html
Probably not the only thing in need of love.
https://wpt.fyi/results/css/css-position?label=master&label=experimental&aligned&q=safari%3Afail
alan
Comment 5
2025-10-23 19:10:54 PDT
Created
attachment 477185
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug