Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-images/object-fit-embedded-svg-root-will-change.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>CSS Test: 'object-fit' and 'object-position' on an SVG document with 'will-change: transform' on its root, in <object> and <embed></title>
<link rel="author" title="Sam Weinig" href="mailto:sam@webkit.org">
<link rel="match" href="object-fit-embedded-svg-root-will-change-ref.html">
<meta name="assert" content="An SVG document whose root element has will-change: transform is sized, placed and clipped by object-fit and object-position on its object or embed element like any other SVG document.">
<style>
object, embed {
width: 48px;
height: 32px;
border: 1px solid gray;
padding: 1px;
float: left;
}
</style>
<object data="support/colors-16x8-will-change.svg" style="object-fit: cover; object-position: top left"></object>
<embed src="support/colors-16x8-will-change.svg" style="object-fit: none; object-position: bottom right">
<object data="support/colors-16x8-will-change.svg" style="object-fit: contain"></object>