Automatic update from web-platform-tests script: Properly render CDATA sections This change makes it so that CDATA sections are rendered properly during layout and also that damage is applied to them like it is applied to text nodes. Signed-off-by: Martin Robinson <mrobinson@abandonedwig.info> -- wpt-commits: b2706760129adcd2b753d51d9f8a42bfa985c58b wpt-pr: 59736
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
|
<head>
|
|
<title>Rendering of dynamically added CDATA section</title>
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<link rel="stylesheet" href="/fonts/ahem.css" />
|
|
<link rel="author" title="Martin Robinson" href="mailto:martin@abandonedwig.info" />
|
|
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht" />
|
|
<meta name="assert" content="CDATA content should be renderable when dynamically added to the DOM" />
|
|
<style>
|
|
#container {
|
|
font: 100px/1 Ahem;
|
|
width: 100px;
|
|
height: 100px;
|
|
color: green;
|
|
background: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
<div id="container"></div>
|
|
<script>
|
|
const container = document.getElementById("container");
|
|
document.fonts.ready.then(() => {
|
|
container.appendChild(document.createCDATASection("X"));
|
|
takeScreenshot();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|