Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/permission-element/pseudo-elements-in-div.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset=utf-8>
<link rel="match" href="pseudo-elements-in-div-ref.html">
<body>
<div>
The permission element should not create any pseudo elements.
</div>
<style>
/* The space (descendent combinator) is necessary to apply this CSS to children of .outer */
.outer ::before {
content: 'BEFORE';
}
.outer ::after {
content: 'AFTER';
}
</style>
<p>Should only see BEFOREAFTER once below</p>
<!-- Apply the ::before/::after to descendants of the .outer div. The empty inner div
simulates a quirk scenario discovered in chromium, but the expectation should match
all implementation. -->
<div class="outer">
<div></div>
<permission type="camera">
</div>
</body>
</html>