Replies: 1 comment
-
Converting to discussion as this is unlikely a bug that can be fixed in
Please make sure you've read the first few paragraphs of https://github.com/cefsharp/CefSharp/wiki/General-Usage
Does it work for normal urls loaded? Does it make any difference if you use
This is when |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an existing issue for this?
CefSharp Version
135.0.220
Operating System
Windows 11
Architecture
x64
.Net Version
.Net 8.0
Implementation
WPF
Reproduction Steps
Set the DefaultFontSize and then load text via the LoadHtml() method. See modifed code snippet from minimal example below.
Expected behavior
The DefaultFontSize should be applied to text loaded with the LoadHtml() method.
Actual behavior
DefaultFontSize is ignored - the font size remains the same no matter what value is supplied.
Regression?
Worked in version 125.0.210 – does not work from version 126.2.70 onwards.
Known Workarounds
Manually set the document.body.style.fontSize using EvaluateScriptAsync() method.
Does this problem also occur in the CEF Sample Application
Not Tested
Other information
No response
Beta Was this translation helpful? Give feedback.
All reactions