webkit-appearance-auto-non-html-namespace-001.html (813B)
1 <!-- DO NOT EDIT THIS FILE. 2 Edit the appearance-* file instead and then run: 3 ./tools/appearance-build-webkit-reftests.py 4 --> 5 <!DOCTYPE html> 6 <title>CSS Basic User Interface Test: -webkit-appearance: auto on elements in non-HTML namespace</title> 7 <link rel="match" href="nothing-below-ref.html"> 8 <link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching"> 9 <meta name="assert" content="-webkit-appearance: auto should have no effect on non-HTML elements."> 10 <style> 11 div * { -webkit-appearance: auto; display: inline-block; width: 1em; height: 1em; } 12 </style> 13 <p>There should be nothing below:</p> 14 <div id=div></div> 15 <script> 16 for (var tagName of ['button', 'input', 'meter', 'progress', 'select', 'textarea']) { 17 div.appendChild(document.createElementNS('not-html', tagName)); 18 } 19 </script>