We have found an issue where margin-bottom is not being correctly applied since EO v20.
After digging further into the issue we found that this issue reproduces in Chromium 77.0.3865.120, we downloaded the chrome-win.zip build from
https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win/681087/ in order to verify that.
The reproducible example is as follows:
Quote:
using System;
using System.Windows.Forms;
using EO.WebBrowser;
using EO.WinForm;
namespace EOMarginBug
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(CreateForm());
}
private static Form CreateForm()
{
var form = new Form
{
Size = new System.Drawing.Size(1280, 1024)
};
var webView = new WebView();
webView.LoadHtml(
@"<!DOCTYPE html>
<html>
<body>
<div>
<span style='display: block; height: 100%'>
<div style='margin-bottom: 15px'>test</div>
</span>
test
</div>
</body>
</html>"
);
var webControl = new WebControl
{
Dock = DockStyle.Fill,
WebView = webView
};
form.Controls.Add(webControl);
return form;
}
}
}
When running this code one should see a 15px margin between the two lines with 'test', but instead no additional margin is applied. It works as intended in all other browsers, for example Firefox, Edge (Chromium) and Chrome.