Skip to content

Instantly share code, notes, and snippets.

View birtles's full-sized avatar

Brian Birtles birtles

View GitHub Profile
@birtles
birtles / dabblet.css
Created September 29, 2012 12:52 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
@birtles
birtles / dabblet.css
Created September 29, 2012 15:15
Very Vegemite restaurant reservation
/**
* Very Vegemite restaurant reservation
*/
body {
font-size: 20px;
font-family: sans-serif;
}
input {
font-size: 1.1em;
@birtles
birtles / dabblet.css
Created September 30, 2012 23:41
HTML5 Workshop Survey
/**
* HTML5 Workshop Survey
*/
/* Here is some CSS to get your started */
input {
margin: 0 1em;
}
label {
display: inline-block;
@birtles
birtles / dabblet.css
Created October 11, 2012 23:05
HTML5 Workshop Survey
/**
* HTML5 Workshop Survey
*/
/* Here is some CSS to get your started */
input {
margin: 0 1em;
}
label {
display: inline-block;
@birtles
birtles / dabblet.css
Created October 26, 2012 05:44
Tokyo by bike
/*
* Tokyo by bike
*/
html {
background: url(http://people.mozilla.org/~bbirtles/soi/yakei.jpg);
background-size: cover;
}
body {
border: 1px solid black;
border-radius: 35px;
@birtles
birtles / dabblet.css
Created November 16, 2012 12:13
Untitled
table {
border-collapse: collapse;
}
td {
border: 2px solid black;
padding: 0.5em;
color: black;
min-width: 50px;
height: 30px;
cursor: pointer;
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test</title>
<style>
body, html {
padding: 0;
margin: 0;
height: 100%;
overflow: hidden;
@birtles
birtles / timing-interface-changes.diff
Created January 12, 2018 07:53
WIP Patch to change Web Animation timing interfaces in Gecko
# HG changeset patch
# Parent 95a3304b348929f76b694b27a64b1528f6dd3d35
diff --git a/dom/animation/Animation.h b/dom/animation/Animation.h
--- a/dom/animation/Animation.h
+++ b/dom/animation/Animation.h
@@ -15,6 +15,7 @@
#include "mozilla/EffectCompositor.h" // For EffectCompositor::CascadeLevel
#include "mozilla/LinkedList.h"
#include "mozilla/TimeStamp.h" // for TimeStamp, TimeDuration
This file has been truncated, but you can view the full file.
/* automatically generated by rust-bindgen */
pub use self::root::*;
pub use self::root::mozilla::*;
pub use self::root::mozilla::css::*;
pub use self::root::mozilla::dom::*;
use atomic_refcell::AtomicRefCell;
use data::ElementData;
pub type ServoUnsafeCell<T> = ::std::cell::UnsafeCell<T>;
pub type ServoCell<T> = ::std::cell::Cell<T>;
@birtles
birtles / updatePlaybackRate.diff
Created February 8, 2018 06:15
Folded diff of playback rate changes
diff --git a/web-animations-1/Overview.bs b/web-animations-1/Overview.bs
index 6cd09d76d..6f866485a 100644
--- a/web-animations-1/Overview.bs
+++ b/web-animations-1/Overview.bs
@@ -305,7 +305,7 @@ elem.getAnimations().filter(
)
).forEach(animation =&gt; {
animation.currentTime = 0;
- animation.playbackRate = 0.5;
+ animation.updatePlaybackRate(0.5);