Note that there are some explanatory texts on larger screens.

plurals
  1. POChrome -webkit-clip-path and outline bug
    primarykey
    data
    text
    <p>I've found rather strange behaviour in Chrome's (30.0.1599.69) <code>-webkit-clip-path</code> and want to know if it's a bug or not.</p> <p>When element has clip-path set to rectangle, and then something on the page gets ouline (for example, due to focus), clip-path shifts vertically. After outline is removed, clip-path doesn't take previous position.</p> <p><a href="http://jsbin.com/UPIQatO/3" rel="nofollow noreferrer">A page to reproduce it</a>.</p> <p>Intial state:</p> <p><img src="https://i.stack.imgur.com/7jytl.png" alt="everything&#39;s okay"></p> <p>Something gets an outline:</p> <p><img src="https://i.stack.imgur.com/h7WGx.png" alt="bug is clearly visible"></p> <p>And then without outline:</p> <p><img src="https://i.stack.imgur.com/bO1Eb.png" alt="enter image description here"></p> <p>Note: since further outline changes don't affect the clipping, it can be used for our advantage to "fix" the issue by applying an outline of known height and then offseting clip-path for this value.</p> <h3>Update:</h3> <p><a href="https://code.google.com/p/chromium/issues/detail?id=363097" rel="nofollow noreferrer">An issue in Chromium bugtracker</a>.</p> <p>I've found out that <code>rectangle()</code> support <a href="https://bugs.webkit.org/show_bug.cgi?id=125235" rel="nofollow noreferrer">was removed</a>, but not sure from what versions (does iOS still have it?). <code>polygon()</code> version <a href="http://jsbin.com/xujitaje/7/edit" rel="nofollow noreferrer">works fine here in Canary (at April 17, 2014)</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload