Bug 149116

Summary: [css-grid] Percentage columns should remove scrollbar's width
Product: WebKit Reporter: Manuel Rego Casasnovas <rego>
Component: Layout and RenderingAssignee: Manuel Rego Casasnovas <rego>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, jfernandez, kondapallykalyan, svillar
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 60731    
Attachments:
Description Flags
Patch none

Description Manuel Rego Casasnovas 2015-09-14 01:14:33 PDT
If you've a column with 100% but the grid has a vertical scrollbar, scrollbar's width should be reduced from the track breadth.

Example to reproduce the issue:
<div style="display: -webkit-grid; overflow: scroll; -webkit-grid: 100% / 100%; width: 200px; height: 200px;">
  <div style="background: lime;">item</div>
</div>

The width of the item is "200px", when it should be "200px - scrollbar's width".

Note that the height is working as expected.

This was already reported and fixed in Blink:
https://code.google.com/p/chromium/issues/detail?id=530504
Comment 1 Manuel Rego Casasnovas 2015-09-14 01:22:53 PDT
Created attachment 261110 [details]
Patch
Comment 2 WebKit Commit Bot 2015-09-14 02:46:51 PDT
Comment on attachment 261110 [details]
Patch

Clearing flags on attachment: 261110

Committed r189702: <http://trac.webkit.org/changeset/189702>
Comment 3 WebKit Commit Bot 2015-09-14 02:46:55 PDT
All reviewed patches have been landed.  Closing bug.