Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
CSS - overflow: clip is not working on SVG elements
https://bugs.webkit.org/show_bug.cgi?id=244706 Reviewed by Simon Fraser. Implement overflow: clip for SVG containers. * LayoutTests/imported/w3c/web-platform-tests/svg/render/reftests/nested-svg-overflow-clip-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/svg/render/reftests/nested-svg-overflow-clip.html: Added. * LayoutTests/imported/w3c/web-platform-tests/svg/render/reftests/overflow-clip-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/svg/render/reftests/overflow-clip.html: Added. * LayoutTests/imported/w3c/web-platform-tests/svg/render/reftests/w3c-import.log: * Source/WebCore/rendering/style/RenderStyle.h: (WebCore::isNonVisibleOverflow): * Source/WebCore/rendering/svg/LegacyRenderSVGRoot.cpp: (WebCore::LegacyRenderSVGRoot::shouldApplyViewportClip const): * Source/WebCore/rendering/svg/RenderSVGRoot.cpp: (WebCore::RenderSVGRoot::shouldApplyViewportClip const): * Source/WebCore/rendering/svg/SVGRenderSupport.cpp: (WebCore::SVGRenderSupport::isOverflowHidden): Canonical link: https://commits.webkit.org/254295@main
- Loading branch information
Showing
9 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...mported/w3c/web-platform-tests/svg/render/reftests/nested-svg-overflow-clip-expected.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,4 @@ | ||
<!DOCTYPE html> | ||
<svg xmlns="http://www.w3.org/2000/svg"> | ||
<rect width="100" height="100" fill="green" /> | ||
</svg> |
12 changes: 12 additions & 0 deletions
12
...utTests/imported/w3c/web-platform-tests/svg/render/reftests/nested-svg-overflow-clip.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,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="rect-ref.html"> | ||
<style> | ||
svg { | ||
overflow: visible; | ||
} | ||
</style> | ||
<svg style="width: 100px; height: 100px"> | ||
<svg style="overflow: clip;"> | ||
<rect height="250" width="250" fill="green"> | ||
</svg> | ||
</svg> |
4 changes: 4 additions & 0 deletions
4
LayoutTests/imported/w3c/web-platform-tests/svg/render/reftests/overflow-clip-expected.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,4 @@ | ||
<!DOCTYPE html> | ||
<svg xmlns="http://www.w3.org/2000/svg"> | ||
<rect width="100" height="100" fill="green" /> | ||
</svg> |
10 changes: 10 additions & 0 deletions
10
LayoutTests/imported/w3c/web-platform-tests/svg/render/reftests/overflow-clip.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> | ||
<link rel="match" href="rect-ref.html"> | ||
<style> | ||
svg { | ||
overflow: visible; | ||
} | ||
</style> | ||
<svg style="overflow: clip; width: 100px; height: 100px"> | ||
<rect width="200" height="200" fill="green"> | ||
</svg> |
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