mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 23:52:57 +00:00
This is not a complete parse, as it doesn't validate or take into account the parsed syntax. Enough to get us a few more WPT tests though :)
44 lines
936 B
HTML
44 lines
936 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
@property badname {
|
|
syntax: "*";
|
|
inherits: false;
|
|
initial-value: blue;
|
|
}
|
|
|
|
@property --extra-syntax-tokens {
|
|
syntax: "*" "bad";
|
|
inherits: false;
|
|
initial-value: blue;
|
|
}
|
|
|
|
@property --extra-inherits-tokens {
|
|
syntax: "*";
|
|
inherits: false "bad";
|
|
initial-value: blue;
|
|
}
|
|
|
|
@property --missing-syntax {
|
|
inherits: false;
|
|
initial-value: blue;
|
|
}
|
|
|
|
@property --missing-inherits {
|
|
syntax: "*";
|
|
initial-value: blue;
|
|
}
|
|
|
|
@property --valid {
|
|
syntax: "*";
|
|
inherits: false;
|
|
}
|
|
</style>
|
|
<div>This text shouldn't be visible</div>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const cssRuleCount = document.styleSheets[0].cssRules.length;
|
|
|
|
println(`Number of parsed css rules: ${cssRuleCount} (expected: 1)`);
|
|
});
|
|
</script>
|