mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 07:32:52 +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 :)
26 lines
940 B
HTML
26 lines
940 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
@property --tester {
|
|
syntax: "*";
|
|
inherits: false;
|
|
initial-value: blue;
|
|
}
|
|
</style>
|
|
<div>This text shouldn't be visible</div>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const propertyRule = document.styleSheets[0].cssRules[0];
|
|
println(`@property rule syntax value: ${propertyRule.syntax}`);
|
|
propertyRule.syntax = "<color> | none";
|
|
println(`@property rule syntax value: ${propertyRule.syntax}`);
|
|
|
|
println(`@property rule inherits value: ${propertyRule.inherits}`);
|
|
propertyRule.inherits = true;
|
|
println(`@property rule inherits value: ${propertyRule.inherits}`);
|
|
|
|
println(`@property rule initialValue value: ${propertyRule.initialValue}`);
|
|
propertyRule.initialValue = "red";
|
|
println(`@property rule initialValue value: ${propertyRule.initialValue}`);
|
|
});
|
|
</script>
|