inset-shorthand.html (972B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Logical Properties and Values: inset sets longhands</title> 6 <link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-inset"> 7 <meta name="assert" content="inset supports the full grammar '<'top'>{1,4}'."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/shorthand-testcommon.js"></script> 11 </head> 12 <body> 13 <script> 14 test_shorthand_value('inset', '1px 2px 3px 4px', { 15 'top': '1px', 16 'right': '2px', 17 'bottom': '3px', 18 'left': '4px' 19 }); 20 21 test_shorthand_value('inset', '1px 2px 3px', { 22 'top': '1px', 23 'right': '2px', 24 'bottom': '3px', 25 'left': '2px' 26 }); 27 28 test_shorthand_value('inset', '1px 2px', { 29 'top': '1px', 30 'right': '2px', 31 'bottom': '1px', 32 'left': '2px' 33 }); 34 35 test_shorthand_value('inset', '1px', { 36 'top': '1px', 37 'right': '1px', 38 'bottom': '1px', 39 'left': '1px' 40 }); 41 </script> 42 </body> 43 </html>