mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-11 18:51:05 +00:00
18 lines
570 B
HTML
18 lines
570 B
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<style>
|
||
|
|
@import url("https://something.invalid") supports(foo: bar);
|
||
|
|
@import url("https://something.invalid") supports((display: block) and (foo: bar));
|
||
|
|
</style>
|
||
|
|
<script src="../include.js"></script>
|
||
|
|
<script>
|
||
|
|
test(() => {
|
||
|
|
function printImportRule(importRule) {
|
||
|
|
println(`cssText: ${importRule.cssText}`);
|
||
|
|
println(`supportsText: ${importRule.supportsText}`);
|
||
|
|
}
|
||
|
|
|
||
|
|
printImportRule(document.styleSheets[0].cssRules[0]);
|
||
|
|
printImportRule(document.styleSheets[0].cssRules[1]);
|
||
|
|
});
|
||
|
|
</script>
|