ref: 762eed4298a43fa920a29e75e08710cbc754ac6f
parent: 11850642bf7527bbaf86a0394875b4f6984f80ed
author: Philip Silva <[email protected]>
date: Tue Sep 14 11:37:37 EDT 2021
parse box-sizing
--- a/browser/browser.go
+++ b/browser/browser.go
@@ -400,12 +400,13 @@
return nil, false
}
+ contentBox := n == nil || n.Css("box-sizing") != "border-box"
box = &duitx.Box{
Kids: duit.NewKids(uis...),
Width: w,
Height: h,
MaxWidth: mw,
- ContentBox: true,
+ ContentBox: contentBox,
Background: i,
Margin: m,
Padding: p,