mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision b'797e75946c24d0625f04247b16d33c26d4ada273'
This commit is contained in:
parent
4339b3bab4
commit
44e249bebb
414 changed files with 12588 additions and 11565 deletions
|
@ -84,53 +84,4 @@
|
|||
test_query('((height) or (not ((height) and (width))))', true);
|
||||
test_query('((height) or ((height) and (width)))', false);
|
||||
|
||||
// Note that the following assumes that elements are style containers by
|
||||
// default [1], and that:
|
||||
//
|
||||
// - style(width: 1px) is a query that returns 'true', and
|
||||
// - style(height: 2px) is a query that returns 'false'.
|
||||
//
|
||||
// [1] https://github.com/w3c/csswg-drafts/issues/7066
|
||||
|
||||
// Nesting in <style-query>:
|
||||
test_query('style((width: 1px))', true);
|
||||
test_query('style((height: 2px))', false);
|
||||
test_query('style((unknown))', false);
|
||||
test_query('unknown((width: 1px))', false);
|
||||
|
||||
// "not" in <style-query>:
|
||||
test_query('style(not (width: 1px))', false);
|
||||
test_query('style(not (height: 2px))', true);
|
||||
test_query('style(not (unknown))', false);
|
||||
|
||||
// "and" in <style-query>:
|
||||
test_query('style((width: 1px) and (width: 1px))', true);
|
||||
test_query('style((width: 1px) and (width: 1px) and (width: 1px))', true);
|
||||
test_query('style((height: 2px) and (height: 2px))', false);
|
||||
test_query('style((height: 2px) and (width: 1px) and (width: 1px))', false);
|
||||
test_query('style((width: 1px) and (height: 2px) and (width: 1px))', false);
|
||||
test_query('style((width: 1px) and (width: 1px) and (height: 2px))', false);
|
||||
test_query('style((unknown) and (width: 1px) and (width: 1px))', false);
|
||||
test_query('style((width: 1px) and (unknown) and (width: 1px))', false);
|
||||
test_query('style((width: 1px) and (width: 1px) and (unknown))', false);
|
||||
|
||||
// "or" in <style-query>:
|
||||
test_query('style((width: 1px) or (width: 1px))', true);
|
||||
test_query('style((width: 1px) or (width: 1px) or (width: 1px))', true);
|
||||
test_query('style((height: 2px) or (height: 2px))', false);
|
||||
test_query('style((height: 2px) or (width: 1px) or (width: 1px))', true);
|
||||
test_query('style((width: 1px) or (height: 2px) or (width: 1px))', true);
|
||||
test_query('style((width: 1px) or (width: 1px) or (height: 2px))', true);
|
||||
test_query('style((unknown) or (width: 1px) or (width: 1px))', true);
|
||||
test_query('style((width: 1px) or (unknown) or (width: 1px))', true);
|
||||
test_query('style((width: 1px) or (width: 1px) or (unknown))', true);
|
||||
test_query('style((unknown) or (height: 2px) or (width: 1px))', true);
|
||||
|
||||
// Combinations, <style-query>:
|
||||
test_query('style(not ((width: 1px) and (width: 1px)))', false);
|
||||
test_query('style(not ((width: 1px) and (height: 2px)))', true);
|
||||
test_query('style((width: 1px) and (not ((height: 2px) or (width: 1px))))', false);
|
||||
test_query('style((height: 2px) or (not ((height: 2px) and (width: 1px))))', true);
|
||||
test_query('style((height: 2px) or ((height: 2px) and (width: 1px)))', false);
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue