mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 08:30:50 +00:00
20 lines
507 B
HTML
20 lines
507 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<style id="style">
|
|
@media all {
|
|
}
|
|
</style>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const mediaRule = document.styleSheets[0].cssRules[0];
|
|
mediaRule.insertRule("foobar {}", 0);
|
|
|
|
if (mediaRule.cssRules[0].parentStyleSheet === document.styleSheets[0]) {
|
|
println("Pass!");
|
|
} else {
|
|
println("Fail!");
|
|
}
|
|
});
|
|
</script>
|
|
</html>
|