forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SVG: Fix viewport-relative size invalidation
We should call InvalidateSVGRootsWithRelativeLengthDescendents() on relayout due to scrollbars in NGBlockNode::Layout() Bug: 1500476 Change-Id: I34ba41e65104dadddbb6a791fc5a912e837ec84c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5020338 Reviewed-by: Morten Stenshorne <[email protected]> Commit-Queue: Kent Tamura <[email protected]> Auto-Submit: Kent Tamura <[email protected]> Cr-Commit-Position: refs/heads/main@{#1224043}
- Loading branch information
1 parent
a50d8f6
commit bb35e61
Showing
5 changed files
with
47 additions
and
9 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
10 changes: 10 additions & 0 deletions
10
third_party/blink/web_tests/external/wpt/svg/painting/reftests/mask-percentage-ref.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,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<svg | ||
width="100%" height="100%" | ||
xmlns="http://www.w3.org/2000/svg"> | ||
<rect x="0" y="0" width="100%" height="100%" fill='lime'></rect> | ||
</svg> | ||
</body> | ||
</html> |
23 changes: 23 additions & 0 deletions
23
third_party/blink/web_tests/external/wpt/svg/painting/reftests/mask-percentage.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,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<title>Percentages in a mask</title> | ||
<link rel="help" href="https://crbug.com/1500476" /> | ||
<link rel="match" href="mask-percentage-ref.html" /> | ||
<body> | ||
<svg | ||
width="100%" height="100%" | ||
xmlns="http://www.w3.org/2000/svg"> | ||
|
||
<defs> | ||
<mask id='corner'> | ||
<g><rect x="0" y="0" height="100%" width="100%" fill="white" /></g> | ||
</mask> | ||
</defs> | ||
|
||
<rect x="0" y="0" width="100%" height="100%" fill="red"></rect> | ||
<g mask='url(#corner)'> | ||
<rect x="0" y="0" width="100%" height="100%" fill='lime'></rect> | ||
</g> | ||
</svg> | ||
</body> | ||
</html> |