Open Bug 1194276 Opened 11 years ago Updated 3 years ago

Right border on double box shadow inside an odd width and margin auto container

Categories

(Firefox :: General, defect)

40 Branch
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: contact, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 Build ID: 20150807094952 Steps to reproduce: Wanted to use box-shadow to create a double border inside a centered parent. Codepen: http://codepen.io/Simounet/pen/gpyXQO <div class="container"> <a href="#" class="double-border">Item 1</a> </div> .container { margin: 0 auto; width: 101px; } .double-border { padding: 5px 10px; background-color: red; box-shadow: 0 10px white, 0 20px red; } Actual results: Get a strange 1px right border on the first box shadow with the color of the second one. If the width of .container is an even number: everything is fine. If it's an odd number: issue happened. Expected results: The color of the second box shadow on the right should be completely hidden by the color of the first box shadow.
Component: Layout → General
Product: Core → Firefox
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
I reproduce this bug, but I have to change the container size to an even number: noted at 100px, 102px, 104px, 106px, etc.
I am seeing this bug as well. In case it is helpful, I have been able to work around this bug by adding the following CSS to the example provided by Simounet above: .double-border { display: block; -moz-transform: translateZ(0); } User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:62.0) Gecko/20100101 Firefox/62.0 Build ID: 20181001155545
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: