Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch up to master's clone-cleanups #107

Merged
merged 7 commits into from
Jan 15, 2023
Merged

Catch up to master's clone-cleanups #107

merged 7 commits into from
Jan 15, 2023

Conversation

IDisposable
Copy link
Member

No description provided.

Changed `getDefaultStyle` to create the element in the sandbox so it is pure (not tainted by CSS / ShadowDOM in the main document).
Never clone SCRIPT elements (that's just asking for trouble).
Removed `imagediff` package as it's not useful anymore.
The allows inspecting the properties of the clone.
Removed the setting of the `top` and `left`
Set the `width` and `height` on the `foreignObject` element to the target size.
Removed setting of `width` and `height` on the `svg` element.
Falls back to the old `scrollWidth`/`scrollHeight` logic if the `width` and `height` aren't set in `px`.
* Work on table padding issue #95

Changed `getDefaultStyle` to create the element in the sandbox so it is pure (not tainted by CSS / ShadowDOM in the main document).
Never clone SCRIPT elements (that's just asking for trouble).
Removed `imagediff` package as it's not useful anymore.

* Add ability to insert the cloned node into the test

The allows inspecting the properties of the clone.

* Simplified the SVG

Removed the setting of the `top` and `left`
Set the `width` and `height` on the `foreignObject` element to the target size.
Removed setting of `width` and `height` on the `svg` element.

* Copy the size from the original object when possible

Falls back to the old `scrollWidth`/`scrollHeight` logic if the `width` and `height` aren't set in `px`.

* Revert to have `width` and `height` dimensions on SVG object.
@IDisposable IDisposable merged commit ada8f8c into cleanup-clone Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant