Truly independent web browser
<!DOCTYPE html>
<script src="../../include.js"></script>
<style>
#target::before { content: attr(data-label); }
</style>
<div id="target" class="item" data-label="one" style="--width: 10cqw; width: var(--width)"></div>
<script>
test(() => {
// The element's class, id and style attributes are no attr()'s to read. Its pseudo-element
// settles beside the element's record, which substitutes a container unit and so stays out
// of every record cache.
const target = document.getElementById("target");
internals.updateStyle();
target.setAttribute("data-label", "two");
internals.updateStyle();
println(`before: ${getComputedStyle(target, "::before").content}`);
});
</script>