New issue
Advanced search Search tips

Issue 781801 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 761298
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

CSS border radius may not work when a positioned layer is squashed

Reported by oliverj...@gmail.com, Nov 6 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
Example: http://jsbin.com/firabin/4/edit?html,css,output

What is the expected behavior?

What went wrong?
The element with class `circle` should form a circle, by clipping its child content via `border-radius` and `overflow: hidden`. However, `border-radius` does not seem to be applied at all.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 61.0.3163.100  Channel: n/a
OS Version: OS X 10.13.0
Flash Version:
 
Labels: Needs-Triage-M61
Components: Blink>Paint
Owner: schenney@chromium.org
Status: Assigned (was: Unconfirmed)
Labels: PaintTeamTriaged-11082017
Summary: CSS border radius doesn't work in combination with SVG and positioning (was: CSS border radius doesn't work in combination with other properties)
The SVG content seems to be the biggest issue. My guess is that we are mis-positioning the border radius clip, rather than not including it at all.

Comment 5 by f...@opera.com, Nov 8 2017

Is the SVG relevant though? Replacing it with a similarly sized <div> seems to still reproduce the issue.
Thanks. It is still a very interesting combination of positioning and size.
Labels: OS-Android OS-Chrome OS-Linux OS-Windows
Components: -Blink>Paint Blink>Compositing
Slightly simpler example.
cr781801.html
739 bytes View Download
For whatever reason we are simply not applying any border radius clip. It's not a compositing issue per-se because the clipper and the child are painted in the same layer. It does depend on squashing the clipped and content into a layer with the first non-drawn element.
Cc: chrishtr@chromium.org wangxianzhu@chromium.org
I'm going to use this bug next week to learn about clipping and layers because I have no idea what I'm looking at in the layer dump. Putting on hold until then.
Summary: CSS border radius may not work when a positioned layer is squashed (was: CSS border radius doesn't work in combination with SVG and positioning)
Mergedinto: 761298
Status: Duplicate (was: Assigned)

Sign in to add a comment