summaryrefslogtreecommitdiff
path: root/node_modules/doiuse/data/features/css-overflow-anchor.js
blob: 6424835a788c4572b67877bdb9d4bb38e085d9fd (plain)
1
2
3
4
5
6
7
8
9
10
11
/**
 * Changes in DOM elements above the visible region of a scrolling box can result in the page moving while the user is in the middle of consuming the content.  By default, the value of  `overflow-anchor` is `auto`, it can mitigate this jarring user experience by keeping track of the position of an anchor node and adjusting the scroll offset accordingly
 * @see https://caniuse.com/css-overflow-anchor
 */

/**
 * @type {import('../features').Feature}
 */
export default {
  'overflow-anchor': true,
};