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 (#31833)
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
Showing
11 changed files
with
114 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
2 changes: 0 additions & 2 deletions
2
tests/wpt/meta/css/css-transforms/transform3d-image-scale-001.html.ini
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
tests/wpt/tests/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> |
20 changes: 20 additions & 0 deletions
20
tests/wpt/tests/css/css-transforms/transform-iframe-002.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> |