mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 00:19:18 +00:00
15 lines
465 B
HTML
15 lines
465 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
@page {
|
|
@top-left foo {}
|
|
}
|
|
</style>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
println(`\`@page {}\` should be valid: ${document.styleSheets[0].cssRules.length === 1 ? "PASS" : "FAIL"}`);
|
|
const page_rule = document.styleSheets[0].cssRules[0];
|
|
println(`\`@top-left foo {}\` in \`@page\` should be invalid: ${page_rule.cssRules.length === 0 ? "PASS" : "FAIL"}`);
|
|
});
|
|
</script>
|
|
|