-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1870200 - Break the cyclic dependency if any of the desendants us…
…es non-scaling-stroke. r=emilio While we are computing the transform-box:stroke-box, for CSS Transforms or Motion path Transforms, we have to avoid the cyclic dependency not only for the SVG geometry frame itself, but also for the desendants of the SVG container frame. Therefore, we just compute its fill-box (i.e. make |getStroke| be false). w3c/csswg-drafts#9640 Differential Revision: https://phabricator.services.mozilla.com/D203184
- Loading branch information
1 parent
fc2c64f
commit c24d294
Showing
7 changed files
with
78 additions
and
17 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
24 changes: 24 additions & 0 deletions
24
testing/web-platform/tests/css/css-transforms/transform-box/svgbox-stroke-box-005.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,24 @@ | ||
<!DOCTYPE html> | ||
<title>transform-box: border-box, stroke with vector-effect: non-scaling-stroke</title> | ||
<link rel="match" href="reference/svgbox-rect-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/css-transforms-1/#transform-box"> | ||
<link rel="help" href="https://svgwg.org/svg2-draft/coords.html#VectorEffects"> | ||
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/9640"> | ||
<meta name="assert" content="The used value of transform-box is fill-box on SVG with non-scaling-stroke"/> | ||
<style> | ||
#container { | ||
fill: green; | ||
stroke: black; | ||
stroke-width: 20; | ||
transform-box: border-box; | ||
transform: scale(0.5) translateY(-100%); | ||
} | ||
#inner { | ||
vector-effect: non-scaling-stroke; | ||
} | ||
</style> | ||
<svg width="400" height="300"> | ||
<a id="container"> | ||
<rect id="inner" width="100" height="200" x="50" y="180"/> | ||
</a> | ||
</svg> |