Skip to content

Instantly share code, notes, and snippets.

@valdrinkoshi
valdrinkoshi / stacking-context-scroll.html
Created August 10, 2016 21:13
Stacking context causes scroll
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<title>Stacking context causes scroll</title>
<style>
@valdrinkoshi
valdrinkoshi / unconditional-paint.html
Last active August 10, 2016 21:22
unconditional paint for user-select and pointer-events
<!DOCTYPE html>
<!-- Open the dev tools and from the console run `runTests(10)` and observe the paiting that is triggered. -->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<title>unconditional paint for user-select and pointer-events</title>
@valdrinkoshi
valdrinkoshi / heavy.html
Created July 13, 2016 00:35
Heavy scrolling for iron-dropdown performance tests
<!doctype html>
<html>
<!-- add this file in iron-dropdown/demo/ folder -->
<head>
<title>heavy scrolling</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="x-select.html">
</head>
<body>