mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Fix insertRule crash by exposing getter on stylesheet's owner
This commit is contained in:
parent
e58226814f
commit
13eebbfe56
7 changed files with 79 additions and 4 deletions
|
@ -0,0 +1,6 @@
|
|||
<!doctype html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>insertrule @import test reference</title>
|
||||
<link rel="stylesheet" href="support/black.css">
|
||||
</head>
|
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>insertrule @import test</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom/">
|
||||
<link rel="help" href="http://www.w3.org/TR/cssom-1/#the-cssrule-interface">
|
||||
<link rel="match" href="insertRule-from-script-ref.html">
|
||||
<style></style>
|
||||
</head>
|
||||
<body>
|
||||
<script>document.styleSheets[0].insertRule("@import url(\"support/black.css\");");</script>
|
||||
</body>
|
4
tests/wpt/web-platform-tests/css/cssom/support/black.css
Normal file
4
tests/wpt/web-platform-tests/css/cssom/support/black.css
Normal file
|
@ -0,0 +1,4 @@
|
|||
html {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue