"CALayer position contains NaN" Crash in WKWebView on iOS 26 Beta

I’m experiencing a crash in WKWebView on iOS 26 Developer Beta 5 and Beta 6 with the following exception:

CALayer position contains NaN: [nan 65]

The crash occurs when the following CSS properties are applied to content displayed in WKWebView: -webkit-user-select: none; -webkit-touch-callout: none;

This issue happens consistently whenever these styles are set, leading to the crash inside WKWebView.

Is this a known bug in the current iOS 26 betas, or is there a recommended workaround?

Answered by qwwp in 854706022

This has been resolved in iOS 26 beta 7.

same problem.

so am i, "How did you pinpoint that it was caused by CSS properties?" @qwwp

Did you add breakpoints in these functions?

-[CALayer setPosition:]
-[CALayer setFrame:]
-[UIView setFrame:]
-[UIView setBounds:]

I found this solution by setting WKWebview's configuration or using xcode26 to build project

self.webview.configuration.preferences.textInteractionEnabled = NO;

maybe u can try it

Accepted Answer

This has been resolved in iOS 26 beta 7.

"CALayer position contains NaN" Crash in WKWebView on iOS 26 Beta
 
 
Q