Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-inline/initial-letter/initial-letter-popover.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Inline Layout: Opening a popover should not affect rendering in the presence of initial-letter</title>
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<style>
#block {
background-color: green;
color: green;
width: 100px;
height: 100px;
text-indent: 1em; /* Avoid 'X' sticking out of the square */
}
#block::first-letter {
initial-letter: 1;
}
#pop, #but { visibility: hidden; }
</style>
<p>Test passes if there is a filled green square.</p>
<div id="block">X<br>
<button id="but" popoverTarget="pop"></button>
<div popover id="pop"></div>
</div>
<script>
but.click();
</script>