We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1802d71 commit f28f062Copy full SHA for f28f062
src/browser/client-scripts/index.js
@@ -321,13 +321,14 @@ function getElementCaptureRect(element, opts) {
321
322
function getExtRect(css, clientRect, allowViewportOverflow) {
323
var shadows = parseBoxShadow(css.boxShadow),
324
- outline = parseInt(css.outlineWidth, 10);
+ outlineWidth = parseInt(css.outlineWidth, 10),
325
+ outlineStyle = css.outlineStyle;
326
- if (isNaN(outline)) {
327
- outline = 0;
+ if (isNaN(outlineWidth) || outlineStyle === "none") {
328
+ outlineWidth = 0;
329
}
330
- return adjustRect(clientRect, shadows, outline, allowViewportOverflow);
331
+ return adjustRect(clientRect, shadows, outlineWidth, allowViewportOverflow);
332
333
334
function parseBoxShadow(value) {
0 commit comments