Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
nolanlawson / index.html
Created Apr 15, 2021
Adopted stylesheets benchmark
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Adopted stylesheets benchmark</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
pre {
position: fixed;
right: 0;
@nolanlawson
nolanlawson / index.html
Created Apr 14, 2021
Selector perf test, more realistic scenario for attribute values
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Selector perf test (more realistic scenario for attribute values)</title>
<style>
pre {
position: fixed;
right: 0;
@nolanlawson
nolanlawson / index.html
Created Apr 13, 2021
Test constructable stylesheet perf
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test constructable stylesheet perf</title>
<style>
pre {
position: fixed;
right: 0;
@nolanlawson
nolanlawson / index.html
Created Apr 10, 2021
<video controls> in modal dialog demo
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dialog element and shadow DOM example</title>
</head>
<body>
<button>Focusable button</button>
<button class="modal-button">Click to open modal dialog</button>
@nolanlawson
nolanlawson / index.html
Created Apr 6, 2021
Selector perf test
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Selector perf test</title>
<style>
pre {
position: fixed;
right: 0;
@nolanlawson
nolanlawson / index.html
Created Mar 18, 2021
Repro Chrome emoji bug
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Repro Chrome emoji bug</title>
<style>
:root {
--button-primary-bg: royalblue;
--button-primary-text: white;
--button-primary-border: #214cce;
@nolanlawson
nolanlawson / index.html
Created Mar 17, 2021
Repro Firefox :focus-visible issue
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Repro Firefox :focus-visible issue</title>
<style>
a, a:visited {
color: blue
}
html {
@nolanlawson
nolanlawson / index.html
Last active Feb 21, 2021
Modal with inert demo
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Modal dialog with inert demo</title>
</head>
<body>
<button>Focusable button</button>
<button class="modal-button">Click to open modal dialog</button>
@nolanlawson
nolanlawson / index.html
Created Feb 13, 2021
Shadow dialog example
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dialog element and shadow DOM example</title>
</head>
<body>
<button>Focusable button</button>
<button class="modal-button">Click to open modal dialog</button>
@nolanlawson
nolanlawson / index.html
Created Dec 18, 2020
repro emoji-picker-element issue
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Repro emoji picker element issue</title>
</head>
<body>
<script type="module" src="https://cdn.jsdelivr.net/npm/emoji-picker-element@^1/index.js"></script>
<emoji-picker>
</emoji-picker>