Bug 1298008 Part 6: Update a devtools test that checks the computed values of auto margins in the box model. draft
authorBrad Werth <bwerth@mozilla.com>
Mon, 02 Apr 2018 09:01:34 -0700
changeset 776042 2a780254e1a9424575deb7a7c91b2901bee7cc70
parent 776041 0593653f96934f32a6876fa1b8a21daa48f4e91a
push id104798
push userbwerth@mozilla.com
push dateMon, 02 Apr 2018 16:04:40 +0000
bugs1298008
milestone61.0a1
Bug 1298008 Part 6: Update a devtools test that checks the computed values of auto margins in the box model. MozReview-Commit-ID: KBR8GkynhzV
devtools/client/inspector/boxmodel/test/browser_boxmodel_pseudo-element.js
--- a/devtools/client/inspector/boxmodel/test/browser_boxmodel_pseudo-element.js
+++ b/devtools/client/inspector/boxmodel/test/browser_boxmodel_pseudo-element.js
@@ -48,25 +48,25 @@ const res1 = [
     value: "32"
   },
   {
     selector: ".boxmodel-margin.boxmodel-top > span",
     value: 0
   },
   {
     selector: ".boxmodel-margin.boxmodel-left > span",
-    value: 0
+    value: 4 // (100 - (10 * 2) - (20 * 2) - 32) / 2
   },
   {
     selector: ".boxmodel-margin.boxmodel-bottom > span",
     value: 6
   },
   {
     selector: ".boxmodel-margin.boxmodel-right > span",
-    value: 0
+    value: 4 // (100 - (10 * 2) - (20 * 2) - 32) / 2
   },
   {
     selector: ".boxmodel-padding.boxmodel-top > span",
     value: 0
   },
   {
     selector: ".boxmodel-padding.boxmodel-left > span",
     value: 0