testing/web-platform/tests/css/css-backgrounds/parsing/border-width-shorthand.html
author Duncan McIntosh <dmcintosh@mozilla.com>
Wed, 09 Jul 2025 19:42:02 +0000 (7 hours ago)
changeset 795924 9ccc6a2267cbf69c621fec973bd28573c2a45a1f
parent 495276 0a4be81650e99036389949d2eefbb452195f1b5d
permissions -rw-r--r--
Bug 1966586 - Reuse other browser windows when opening _blank links in Taskbar Tabs windows. r=nrishel This doesn't affect other tab additions, nor does it stop the tab bar from appearing altogether. The idea is that _if_ another tab is somehow made, the user should see it; but we should not create new tabs if we can avoid it. This also adds tests for opening URIs in popups and taskbar tabs to make it less likely that this breaks in future. Differential Revision: https://phabricator.services.mozilla.com/D253726
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Backgrounds and Borders Module Level 3: border-width sets longhands</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-width">
<meta name="assert" content="border-width supports the full grammar '<line-width>{1,4}'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
</head>
<body>
<script>
test_shorthand_value('border-width', '5px', {
  'border-top-width': '5px',
  'border-right-width': '5px',
  'border-bottom-width': '5px',
  'border-left-width': '5px'
});

test_shorthand_value('border-width', 'thick thin', {
  'border-top-width': 'thick',
  'border-right-width': 'thin',
  'border-bottom-width': 'thick',
  'border-left-width': 'thin'
});

test_shorthand_value('border-width', 'thin medium thick', {
  'border-top-width': 'thin',
  'border-right-width': 'medium',
  'border-bottom-width': 'thick',
  'border-left-width': 'medium'
});

test_shorthand_value('border-width', '1px 2px 3px 4px', {
  'border-top-width': '1px',
  'border-right-width': '2px',
  'border-bottom-width': '3px',
  'border-left-width': '4px'
});
</script>
</body>
</html>