From 92067e88defa58506b74146b6bcf8c16db766e48 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 17 Apr 2020 05:10:25 -0400 Subject: Bug 1355351 - Make pseudo-elements return the correct style via getComputedStyle * Add a node property to access the ::before and ::after pseudo-elements * Look for the frame for ::before and ::after pseudos * Clean up pseudo-element props * Simplify nsLayoutUtils callers, and make child iterators notice display: contents pseudos Tag mcp-graveyard/UXP#1375 --- .../inspector/computed/test/browser_computed_pseudo-element_01.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'devtools') diff --git a/devtools/client/inspector/computed/test/browser_computed_pseudo-element_01.js b/devtools/client/inspector/computed/test/browser_computed_pseudo-element_01.js index 9ca5451a56..7c18bfe7bf 100644 --- a/devtools/client/inspector/computed/test/browser_computed_pseudo-element_01.js +++ b/devtools/client/inspector/computed/test/browser_computed_pseudo-element_01.js @@ -33,7 +33,7 @@ function* testTopLeft(inspector, view) { let afterElement = children.nodes[children.nodes.length - 1]; yield selectNode(afterElement, inspector); top = getComputedViewPropertyValue(view, "top"); - is(top, "50%", "The computed view shows the correct top"); + is(top, "96px", "The computed view shows the correct top"); left = getComputedViewPropertyValue(view, "left"); - is(left, "50%", "The computed view shows the correct left"); + is(left, "96px", "The computed view shows the correct left"); } -- cgit v1.2.3