haikuwebkit/LayoutTests/css3/masking/clip-path-polygon-viewport-...

13 lines
204 B
HTML
Raw Permalink Normal View History

[CSS Shapes] Shapes do not resolve dimensions specified in viewport units https://bugs.webkit.org/show_bug.cgi?id=124052 Reviewed by Dirk Schulze. Source/WebCore: Viewport unit resolution doesn't work unless the RenderView is passed down into the floatValueForLength methods. All this does is plumb down a RenderView in all of these cases. Tests: css3/masking/clip-path-polygon-viewport-units.html fast/shapes/shape-outside-floats/shape-outside-floats-viewport-units.html * css/BasicShapeFunctions.cpp: (WebCore::floatValueForCenterCoordinate): * css/BasicShapeFunctions.h: * css/LengthFunctions.cpp: (WebCore::floatSizeForLengthSize): * css/LengthFunctions.h: * rendering/ClipPathOperation.h: (WebCore::ShapeClipPathOperation::pathForReferenceRect): (WebCore::BoxClipPathOperation::pathForReferenceRect): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::setupClipPath): * rendering/shapes/Shape.cpp: (WebCore::Shape::createShape): * rendering/shapes/Shape.h: * rendering/shapes/ShapeOutsideInfo.cpp: (WebCore::ShapeOutsideInfo::computedShape): * rendering/style/BasicShapes.cpp: (WebCore::BasicShapeCircle::floatValueForRadiusInBox): (WebCore::BasicShapeCircle::path): (WebCore::BasicShapeEllipse::floatValueForRadiusInBox): (WebCore::BasicShapeEllipse::path): (WebCore::BasicShapePolygon::path): (WebCore::floatSizeForLengthSize): (WebCore::BasicShapeInset::path): * rendering/style/BasicShapes.h: * rendering/svg/SVGRenderingContext.cpp: (WebCore::SVGRenderingContext::prepareToRenderSVGContent): LayoutTests: * css3/masking/clip-path-polygon-viewport-units-expected.html: Added. * css3/masking/clip-path-polygon-viewport-units.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-viewport-units-expected.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-viewport-units.html: Added. Canonical link: https://commits.webkit.org/150743@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-05-08 19:14:33 +00:00
<!DOCTYPE html>
<style>
.clip {
width: 20vw;
height: 20vw;
border: 10vw solid white;
background-color: blue;
}
</style>
<body>
<div class="clip"></div>
</body>