Files
moz-wptsync-bot 4eaea95934 Bug 2067769 [wpt PR 62253] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=321425, a=testonly
Automatic update from web-platform-tests
WebKit export: [css-values-5] Fix substitution of numbers and CSS units for custom properties using attr() (#62253)

https://bugs.webkit.org/show_bug.cgi?id=321425

Co-authored-by: Tim Nguyen <nt1m@users.noreply.github.com>
--

wpt-commits: 1c886cd632991398f2418883d6d45a34a8951b8e
wpt-pr: 62253
2026-09-02 15:58:09 +00:00

30 lines
904 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title> CSS Values and Units Test: Attribute references (number type) invalidation </title>
<link rel="help" href="http://www.w3.org/TR/css3-values/#attr-notation">
<link rel="author" title="Suraj Thanugundla" href="mailto:contact@surajt.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
#container {
height: 100px;
width: 100px;
background: red;
columns: attr(data-foo number);
column-gap: 0;
}
#inner {
height: 200px;
width: 50px;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="container" data-foo="3">
<div id="inner"></div>
</div>
<script>
const element = document.getElementById("container");
element.getBoundingClientRect();
element.setAttribute("data-foo", "2");
</script>