Skip to content

Commit

Permalink
Bug 1730136 [wpt PR 30539] - [css-ui] Test 'appearance: auto' on elem…
Browse files Browse the repository at this point in the history
…ents in non-HTML namespace, a=testonly

Automatic update from web-platform-tests
[css-ui] Test 'appearance: auto' on elements in non-HTML namespace

See w3c/csswg-drafts#6537 and whatwg/html#7004

--

wpt-commits: ec305acf8ade06f8e9c05c75133aed4426c52b62
wpt-pr: 30539
  • Loading branch information
zcorpan authored and moz-wptsync-bot committed Oct 2, 2021
1 parent cadb493 commit 999981a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Test: appearance: auto on elements in non-HTML namespace</title>
<link rel="match" href="nothing-below-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<meta name="assert" content="appearance: auto should have no effect on non-HTML elements.">
<style>
div * { appearance: auto; display: inline-block; width: 1em; height: 1em; }
</style>
<p>There should be nothing below:</p>
<div id=div></div>
<script>
for (var tagName of ['button', 'input', 'meter', 'progress', 'select', 'textarea']) {
div.appendChild(document.createElementNS('not-html', tagName));
}
</script>
3 changes: 3 additions & 0 deletions testing/web-platform/tests/css/css-ui/nothing-below-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!DOCTYPE html>
<title>CSS Basic User Interface Reference: nothing below</title>
<p>There should be nothing below:</p>

0 comments on commit 999981a

Please sign in to comment.