Skip to content

Instantly share code, notes, and snippets.

View tobie's full-sized avatar

Tobie Langel tobie

View GitHub Profile
// Moved to https://github.com/tobie/htmldiff-nav/blob/master/index.js
<h4 id="legacy-callback-interface-object">Legacy callback interface object</h4>
The [=legacy callback interface object=] for a given [=callback interface=]
is a [=function object=].
It has properties that correspond to the [=constants=] defined on that interface,
as described in sections [[#es-constants]].
Note: Since an interface object is a [=function object=]
the <code>typeof</code> operator will return "function"
when applied to a [=legacy callback interface object=].
<div algorithm>
To compute the <dfn lt="IntegerPart">integer part</dfn> of an ECMAScript number |n|,
the following steps must be taken:
1. Let |r| be [=floor=]([=abs=](|n|))
1. If |n| &lt; 0,
then return -1 * |r|.
1. Otherwise return |r|.
</div>
1. If |F| corresponds to an attribute, operation or stringifier, then return
the global environment associated with the
[=interface=] that definition appears on.
1. Otherwise, if |F| corresponds to an indexed or named property, then return
the global environment associated with the interface that
the indexed or named property getter, setter or deleter was defined on.
<h1>Foo</h1>
<pre class=metadata>
Group: test
Shortname: foo
Level: 1
Status: ED
Group: dap
ED: http://example.com/foo
Abstract: Abstract content.
@tobie
tobie / index.bs
Last active July 31, 2016 12:06
Why is oldids taking precedence here?
<h4 oldids="dom-sequence" id="idl-sequence" interface="" dfn="" lt="sequence|sequence&lt;T&gt;">Sequences — sequence&lt;|T|&gt;</h4>
<p>
The {{sequence&lt;T&gt;}}
type is a parameterized type whose values are (possibly zero-length) sequences of
values of type |T|.
</p>
@tobie
tobie / dabblet.css
Created July 14, 2013 09:54
CSS Test: Empty Fixed-size Block Rotation 90deg
/**
* CSS Test: Empty Fixed-size Block Rotation 90deg
*/
#box {
width: 100px;
height: 50px;
background-color: fuchsia;
border-top: orange solid 50px;
transform: rotate(90deg);
<!DOCTYPE html>
<head>
<title>CSS Test: Empty Fixed-size Block Rotation 90deg</title>
<link rel="help" href="http://dev.w3.org/csswg/css-transforms/#transform-property"/>
<link rel="author" title="John Doe" href="http://www.example.com/"/>
<link rel="match" href="reftest/rotate-90deg-001-ref.xht"/>
<meta name="flags" content="" />
<meta name="assert" content="CSS rotation transform of 90deg rotates an
element 90 degrees clockwise."/>
<style>
@tobie
tobie / gist:5822788
Last active December 18, 2015 17:59
{
"2dcontext": { // shortname
"authors": [ // editors
"Rik Cabanier",
"Eliot Graff",
"Jay Munro",
"Tom Wiltzius",
"Ian Hickson"
],
"href": "http://www.w3.org/TR/2dcontext/", // tr/ url
<style>
span { color: green; background-color: green; }
</style>
<div><span>にほんご</span><br>日本語</div>