mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-05-27 22:48:32 +00:00
40 lines
1.1 KiB
HTML
40 lines
1.1 KiB
HTML
<!-- Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
<html>
|
|
<head>
|
|
<title>authored sheet test</title>
|
|
|
|
<style>
|
|
pre a {
|
|
color: orange;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
"use strict";
|
|
var gIOService = SpecialPowers.Cc["@mozilla.org/network/io-service;1"]
|
|
.getService(SpecialPowers.Ci.nsIIOService);
|
|
|
|
var style = "data:text/css,a { background-color: seagreen; }";
|
|
var uri = gIOService.newURI(style, null, null);
|
|
var windowUtils = SpecialPowers.wrap(window)
|
|
.QueryInterface(SpecialPowers.Ci.nsIInterfaceRequestor)
|
|
.getInterface(SpecialPowers.Ci.nsIDOMWindowUtils);
|
|
windowUtils.loadSheet(uri, windowUtils.AUTHOR_SHEET);
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<input type=text placeholder=test></input>
|
|
<input type=color></input>
|
|
<input type=range></input>
|
|
<input type=number></input>
|
|
<progress></progress>
|
|
<blockquote type=cite>
|
|
<pre _moz_quote=true>
|
|
inspect <a href="foo">user agent</a> styles
|
|
</pre>
|
|
</blockquote>
|
|
</body>
|
|
</html>
|