Files
sousa-gecko/testing/web-platform/tests/css/css-variables/variable-generated-content-dynamic-001.html
T
Munira Tursunova c5326ac01c Bug 1935348 [wpt PR 49539] - Move CSSAdvancedAttrFunction runtime flag to test, a=testonly
Automatic update from web-platform-tests
Move CSSAdvancedAttrFunction runtime flag to test

Some of the serialization failures left, to be done in the separate
CL.
Test wpt/css/css-variables/variable-generated-content-dynamic-001.html
is not valid according to the new attr() spec, see [0]. So changed it
to make it compatible with the new and old attr() spec.

[0] https://github.com/w3c/csswg-drafts/issues/4482#issuecomment-630566374

Bug: 40320391
Change-Id: Icda380f30ad995c024d72b3dcb259f2f0729aef3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6049617
Commit-Queue: Munira Tursunova <moonira@google.com>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1392170}

--

wpt-commits: 6885ffcf83aea2e2f83042cae74ceb39320db5f4
wpt-pr: 49539
2024-12-10 10:22:27 +00:00

18 lines
580 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: Dynamic attribute change handling in generated content</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://drafts.csswg.org/css-variables/#using-variables">
<link rel="match" href="variable-generated-content-dynamic-001-ref.html">
<style>
div::before {
--my-attr: attr(data-foo);
content: var(--my-attr);
}
</style>
<div data-foo="FAIL"></div>
<script>
document.body.offsetTop;
document.querySelector('div').setAttribute('data-foo', "PASS");
</script>