Add support for LinkStyle's sheet getter on <style> and <link>

This commit is contained in:
Manish Goregaokar 2016-11-15 17:12:04 -08:00
parent 1d20d75cb2
commit 972e9ac0fb
5 changed files with 23 additions and 2 deletions

View file

@ -15,7 +15,7 @@ interface HTMLLinkElement : HTMLElement {
// also has obsolete members
};
//HTMLLinkElement implements LinkStyle;
HTMLLinkElement implements LinkStyle;
// https://html.spec.whatwg.org/multipage/#HTMLLinkElement-partial
partial interface HTMLLinkElement {

View file

@ -8,4 +8,4 @@ interface HTMLStyleElement : HTMLElement {
// attribute DOMString type;
// attribute boolean scoped;
};
//HTMLStyleElement implements LinkStyle;
HTMLStyleElement implements LinkStyle;

View file

@ -15,3 +15,9 @@ interface StyleSheet {
// [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
// attribute boolean disabled;
};
// https://drafts.csswg.org/cssom/#the-linkstyle-interface
[NoInterfaceObject]
interface LinkStyle {
readonly attribute StyleSheet? sheet;
};