mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Update web-platform-tests to revision b'b6f6bf16fe6069aed53d28af86a79b8ff4963844'
This commit is contained in:
parent
0720f4f736
commit
8bfdc02dd8
590 changed files with 11442 additions and 3709 deletions
|
@ -9,20 +9,41 @@
|
|||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
<script src="/css/support/shorthand-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
// Background serialization varies across browsers. https://github.com/w3c/csswg-drafts/issues/418
|
||||
|
||||
// Background serialization varies across browsers. https://github.com/w3c/csswg-drafts/issues/418
|
||||
test_valid_value("background",
|
||||
'url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box', [
|
||||
'url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box', // spec
|
||||
'url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box', // spec, WebKit
|
||||
'url("https://example.com/") local space round 1px 2px / 3px 4px padding-box content-box, url("https://example.com/") local space round 1px 2px / 3px 4px padding-box content-box rgb(5, 6, 7)', // Edge
|
||||
'url("https://example.com/") space round local 1px 2px / 3px 4px padding-box content-box, rgb(5, 6, 7) url("https://example.com/") space round local 1px 2px / 3px 4px padding-box content-box', // Firefox
|
||||
'url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box, url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box rgb(5, 6, 7)', // Blink
|
||||
'url(https://example.com/) 1px 2px / 3px 4px space round local padding-box content-box, url(https://example.com/) 1px 2px / 3px 4px space round local padding-box content-box rgb(5, 6, 7)' // WebKit omits quotes - https://bugs.webkit.org/show_bug.cgi?id=28869
|
||||
'url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box, url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box rgb(5, 6, 7)' // Blink
|
||||
]);
|
||||
|
||||
test_shorthand_value('background', 'none', {
|
||||
'background-image': 'none',
|
||||
'background-position': '0%',
|
||||
'background-size': 'auto',
|
||||
'background-repeat': 'repeat',
|
||||
'background-attachment': 'scroll',
|
||||
'background-origin': 'padding-box',
|
||||
'background-clip': 'border-box',
|
||||
'background-color': 'transparent',
|
||||
})
|
||||
test_shorthand_value('background', 'url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box', {
|
||||
'background-image': 'url("https://example.com/"), url("https://example.com/")',
|
||||
'background-position': '1px 2px, 1px 2px',
|
||||
'background-size': '3px 4px, 3px 4px',
|
||||
'background-repeat': 'space round, space round',
|
||||
'background-attachment': 'local, local',
|
||||
'background-origin': 'padding-box, padding-box',
|
||||
'background-clip': 'content-box, content-box',
|
||||
'background-color': 'rgb(5, 6, 7)',
|
||||
})
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue