Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layout: Allow transforming inline replaced elements
This requires passing through information about whether or not the element in question is replaced when checking to see if it's transformable and transitively all functions that make decisions about containing blocks. A new FragmentFlag is added to help track this -- it will be set on both the replaced items BoxFragment container as well as the Fragment for the replaced item itself. Fixes #31806.
- Loading branch information
1 parent
f0277f5
commit c9e74b1
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
css/css-transforms/support/transform-iframe-002-contents.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CSS Test (Transforms): Iframe (contents)</title> | ||
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> | ||
<style> | ||
body { | ||
background: green; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CSS Test (Transforms): Iframe</title> | ||
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> | ||
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering"> | ||
<meta name="assert" content="This test ensures that an iframe element can be transformed."> | ||
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html"> | ||
<style> | ||
iframe { | ||
height: 50px; | ||
width: 50px; | ||
transform: translate(25px, 25px) scale(2, 2); | ||
border: none; | ||
} | ||
</style> | ||
<p>Test passes if there is a filled green square.</p> | ||
<iframe src="support/transform-iframe-002-contents.html"></iframe> | ||
</body> | ||
</html> |