New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 763402 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug-Regression


Show other hotlists

Hotlists containing this issue:
layout-priority

Previous locations:
monorail:3046


Sign in to add a comment

subpixel borders with inner 100% content broken in versions > 61

Reported by joe.mar...@gmail.com, Sep 8 2017

Issue description

What steps will reproduce the problem?
(1) load a file with outer divs with half pixel borders and inner divs with 100% dimensions

What is the expected output?
half pixel border around the 100% inner div

What do you see instead?
missing border from 2 sides

Please provide any additional information below.
fiddle:
https://jsfiddle.net/arrowplum/qmvx8obn/

discussion:
https://stackoverflow.com/questions/46102739/is-there-a-workaround-for-subpixel-borders-with-full-sized-inner-divs-in-chrome/46104763?noredirect=1#comment79198983_46104763

 
halfpixelbug.html
1.5 KB View Download
Project: chromium
Moved issue monorail:3046 to now be issue chromium:763402.
Labels: -Priority-Medium
Status: Unconfirmed (was: New)
Labels: Needs-Triage-M62 Needs-Bisect
Cc: divya.pa...@techmahindra.com
Components: UI
Labels: -Needs-Bisect hasbisect-per-revision Triaged-ET M-63 OS-Linux OS-Mac OS-Windows
Owner: ka...@opera.com
Status: Assigned (was: Unconfirmed)

Able to reproduce on 61.0.3142.0 with the mentioned steps on Ubuntu 14.04 and windows 7 and same thing is working fine on 61.0.3141.0

Issue is not reproducible on ODC Environment

Below is the Bisect Information:
=====================
Good build: 61.0.3141.0
Bad Build : 61.0.3142.0

You are probably looking for a change made after 473716 (known good), but no later than 473717 (first known bad).

changelog: https://chromium.googlesource.com/chromium/src/+log/1ade9dfba70113fb2e9898bb187248ed18d07a05..eb499bd02c68f68b5f74d534a673e920f8e7a5e6
From the above change log Suspecting: https://chromium-review.googlesource.com/525536

@ karlo - Could you please check whether this is caused with respect to your change, if not please help us in assigning it to the right owner.

Issue is repro on Mac OS 10.12.6,Windows-10, Linux Ubuntu 14.04 on the latest canary(63.0.3209.0) and stable(61.0.3163.79)

Comment 5 by ajha@chromium.org, Sep 11 2017

Components: -UI Blink>Layout
Labels: -Type-Defect -M-63 -Needs-Triage-M62 Needs-Milestone M-61 Pri-1 Type-Bug-Regression
Labels: -M-61 ReleaseBlock-Stable M-62
Please get this fixed before M62 hits stable.
Able to reproduce this issue on chrome latest canary #63.0.3218.0.

karlo@ Since this issue is marked as RB-Stable for M-62, could you please let us know is there any latest update available on this issue?

Thanks!

Comment 8 by ka...@opera.com, Sep 22 2017

Confirm that I see the bug.  Will investigate.

Comment 9 by ka...@opera.com, Sep 22 2017

This is not a bug.  The code previous to https://chromium-review.googlesource.com/c/chromium/src/+/525536 would always clamp values < 1.0px up to 1.0px, ie. the 0.5px border value in the test case above would essentially be ignored, and a value of 1px used instead.

The reason that the borders disappear is that the inner box paints over the border.  Eg. when the outer box is 0.5px border + 100px + 0.5px border = 101px, and the inner box is 100px, one side border of the outer box will be painted over.  

A solution in this case would be to not set a background on the inner element or not use .5px borders.

Comment 10 by ka...@opera.com, Sep 22 2017

Additionally, the blink paint layer currently ignores the sub pixel precision, so even if you are on a hidpi device, you will not get half pixels.
Labels: -ReleaseBlock-Stable
As per the above comment removing blocker label for this issue, please feel free to add it back if it's a valid one.

Thanks!

Comment 12 by e...@chromium.org, Sep 28 2017

Karl, should we close this as working as intended or is there more work you want to do here?
I don't get this. The issue breaks use of subpixel borders (for the browsers which support them) unless special workarounds for chromium are added. 

Not setting an inner background or not using .5px borders for this browser don't sound like solutions.

Comment 14 by e...@chromium.org, Jan 31 2018

Labels: -Pri-1 Pri-2
Owner: ----
Status: Available (was: Assigned)

Sign in to add a comment