mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -10,7 +10,6 @@
|
|||
color: green;
|
||||
font: 20px/1 ahem;
|
||||
width: max-content;
|
||||
--foo: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
@ -113,58 +112,6 @@ const testCases = [
|
|||
},
|
||||
property: 'width',
|
||||
},
|
||||
{
|
||||
title: 'Insert layer invalidates @property',
|
||||
sheets: [
|
||||
'',
|
||||
`
|
||||
@layer first {
|
||||
@property --foo {
|
||||
syntax: '<color>';
|
||||
inherits: false;
|
||||
initial-value: green;
|
||||
}
|
||||
}
|
||||
@layer second {
|
||||
@property --foo {
|
||||
syntax: '<color>';
|
||||
inherits: false;
|
||||
initial-value: red;
|
||||
}
|
||||
}
|
||||
`,
|
||||
],
|
||||
update: function(sheets) {
|
||||
sheets[0].insertRule('@layer second {}', 0);
|
||||
},
|
||||
property: '--foo',
|
||||
},
|
||||
{
|
||||
title: 'Delete layer invalidates @property',
|
||||
sheets: [
|
||||
'@layer second {}',
|
||||
`
|
||||
@layer first {
|
||||
@property --foo {
|
||||
syntax: '<color>';
|
||||
inherits: false;
|
||||
initial-value: red;
|
||||
}
|
||||
}
|
||||
@layer second {
|
||||
@property --foo {
|
||||
syntax: '<color>';
|
||||
inherits: false;
|
||||
initial-value: green;
|
||||
}
|
||||
}
|
||||
`,
|
||||
],
|
||||
update: function(sheets) {
|
||||
sheets[0].deleteRule(0);
|
||||
},
|
||||
property: '--foo',
|
||||
},
|
||||
];
|
||||
|
||||
for (let testCase of testCases) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue