Bug 125834 - Don't depend on layout to do getComputedStyle() on border-radius
Summary: Don't depend on layout to do getComputedStyle() on border-radius
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-12-16 22:15 PST by Ryosuke Niwa
Modified: 2022-08-04 21:08 PDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-12-16 22:15:25 PST
Consider merging https://chromium.googlesource.com/chromium/blink/+/2e92d5379e3b3389af543a39e3c476ea20b83933

border-radius and its longhands are defined to return resolved values
instead of used values, this means a layout is not required to compute
the result of getComputedStyle() on these properties.
This patch fixes getComputedStyle() of border radius properties to
return calc objects instead of resolving them to absolute pixel values.

Relevant spec:
http://dev.w3.org/csswg/cssom/#resolved-values
Comment 1 Ahmad Saleem 2022-08-04 17:29:37 PDT
Safari passes all border-radius-interpolation tests:

https://wpt.fyi/results/css/css-backgrounds/animations/border-radius-interpolation.html?label=master&label=experimental&aligned&view=subtest&q=border-radius-interpolation

Plus I took other test case and changed it into following JSFiddle:

Link - https://jsfiddle.net/k2w6d3eo/show

^ all browsers (Chrome Canary 106, Firefox Nightly 105 and Safari 15.6 do fail on same test cases) [So they are in consensus]

Another test case - https://jsfiddle.net/tf76v4k5/show

^ all browsers (Chrome Canary 106, Firefox Nightly 105 and Safari 15.6 do fail on same test cases) [So they are in consensus]

____

Is something else required or I am converting these test cases wrong and as a result getting incorrect outputs? Thanks!
Comment 2 Ryosuke Niwa 2022-08-04 21:08:34 PDT
Sounds like config changed.