text-emphasis-computed.html (1124B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Text Decoration Test: getComputedStyle().textEmphasis</title> 6 <link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-property"> 7 <meta name="assert" content="text-emphasis computed value is as specified."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/computed-testcommon.js"></script> 11 <style> 12 #target { 13 color: blue; 14 } 15 </style> 16 </head> 17 <body> 18 <div id="target"></div> 19 <script> 20 'use strict'; 21 const currentColor = "rgb(0, 0, 255)"; 22 test_computed_value("text-emphasis", "none", `none ${currentColor}`); 23 test_computed_value("text-emphasis", "dot", `dot ${currentColor}`); 24 test_computed_value("text-emphasis", "open sesame", `open sesame ${currentColor}`); 25 test_computed_value("text-emphasis", "'*'", `"*" ${currentColor}`); 26 27 test_computed_value("text-emphasis", "currentColor", `none ${currentColor}`); 28 test_computed_value("text-emphasis", "black", `none rgb(0, 0, 0)`); 29 30 test_computed_value("text-emphasis", "dot red", `dot rgb(255, 0, 0)`); 31 </script>