Skip to content

Commit

Permalink
fix: root box-sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
qq15725 committed May 8, 2023
1 parent e9b2ebe commit f2c66ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/copy-css-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export function copyCssStyles<T extends HTMLElement | SVGElement>(
clonedStyle.setProperty(name, value, priority)
}

if (isRoot) {
clonedStyle.setProperty('box-sizing', 'border-box')
}

clonedStyle.setProperty('transition-property', 'none')

// fix chromium
Expand Down

1 comment on commit f2c66ce

@vercel
Copy link

@vercel vercel bot commented on f2c66ce May 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

modern-screenshot – ./

modern-screenshot-qq15725.vercel.app
modern-screenshot.vercel.app
modern-screenshot-git-main-qq15725.vercel.app

Please sign in to comment.