Skip to content

Instantly share code, notes, and snippets.

View SwagColoredKitteh's full-sized avatar

SwagColoredKitteh SwagColoredKitteh

  • Belgia
View GitHub Profile
<!doctype html>
<meta charset="utf-8">
<title>Out-of-order stylesheet loads for the same element happen correctly, even with imports (issue #15101)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(function(t) {
var link = document.createElement("link");
link.rel = "stylesheet";
link.href = "resources/imports-background-red.css?pipe=trickle(d3)";
<!doctype html>
<meta charset="utf-8">
<title>Out-of-order stylesheet loads for the same element happen correctly, even with imports (issue #15101)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(function(t) {
var link = document.createElement("link");
link.rel = "stylesheet";
link.href = "resources/imports-background-red.css?pipe=trickle(d3)";
<!doctype html>
<meta charset="utf-8">
<title>Out-of-order stylesheet loads for the same element happen correctly (issue #15101)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body></body>
<script>
async_test(function(t) {
var link = document.createElement("link");
link.rel = "stylesheet";
@SwagColoredKitteh
SwagColoredKitteh / issue.html
Last active January 22, 2017 09:59
Reproduce the issue that two out-of-order responses for the same <link> element in servo will apply the wrong stylesheet
<!DOCTYPE html>
<html>
<head>
<title>The fabulous always-green webpage</title>
</head>
<body>
<script>
var link = document.createElement("link");
link.rel = "stylesheet";
<!doctype html>
<meta charset="utf-8">
<title>Multiple in-flight stylesheet loads should not panic. (issue #15101)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(function(t) {
var link = document.createElement("link");
link.rel = "stylesheet";
link.onload = t.step_func(function() {
import random
import math
import sys
CHECKPOINT_RADIUS = 600
POD_RADIUS = 400
MAX_ANGLE_DIFF = 0.31415
FRICTION = 0.85
MAX_THRUST = 100