haikuwebkit/LayoutTests/css3/masking/clip-path-circle-border-box...

29 lines
439 B
HTML
Raw Permalink Normal View History

Make clipping path from basic-shapes relative to <box> value https://bugs.webkit.org/show_bug.cgi?id=126206 Reviewed by Simon Fraser. Source/WebCore: Tests: css3/masking/clip-path-circle-border-box.html css3/masking/clip-path-circle-bounding-box.html css3/masking/clip-path-circle-content-box.html css3/masking/clip-path-circle-margin-box.html css3/masking/clip-path-circle-padding-box.html * rendering/RenderLayer.cpp: (WebCore::RenderLayer::setupClipPath): Add switch to differ between boxes and use different reference boxes to size the clipping path. LayoutTests: Add new tests to check that different reference boxes are chosen for sizing and positioning the clipping path. * css3/masking/clip-path-circle-border-box.html: Added. * css3/masking/clip-path-circle-bounding-box.html: Added. * css3/masking/clip-path-circle-content-box.html: Added. * css3/masking/clip-path-circle-margin-box.html: Added. * css3/masking/clip-path-circle-padding-box.html: Added. * platform/mac/css3/masking/clip-path-circle-border-box-expected.png: Added. * platform/mac/css3/masking/clip-path-circle-border-box-expected.txt: Added. * platform/mac/css3/masking/clip-path-circle-bounding-box-expected.png: Added. * platform/mac/css3/masking/clip-path-circle-bounding-box-expected.txt: Added. * platform/mac/css3/masking/clip-path-circle-content-box-expected.png: Added. * platform/mac/css3/masking/clip-path-circle-content-box-expected.txt: Added. * platform/mac/css3/masking/clip-path-circle-margin-box-expected.png: Added. * platform/mac/css3/masking/clip-path-circle-margin-box-expected.txt: Added. * platform/mac/css3/masking/clip-path-circle-padding-box-expected.png: Added. * platform/mac/css3/masking/clip-path-circle-padding-box-expected.txt: Added. * platform/mac/css3/masking/mask-luminance-png-expected.png: Added. Canonical link: https://commits.webkit.org/144679@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-01-10 21:29:59 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<style>
#content {
width: 200px;
height: 200px;
margin: 0;
padding: 0;
background-color: green;
}
#clip {
width: 200px;
height: 200px;
margin: 10px;
padding: 10px;
border: 10px solid blue;
-webkit-clip-path: circle(50% at 50% 50%) border-box;
background-color: yellow;
}
</style>
</head>
<body>
<div id="clip">
<div id="content"></div>
</div>
</body>
</html>