Files
Munira Tursunova 0ac1e55b19 Bug 1931368 [wpt PR 49173] - Change attr type syntax with recent spec changes, a=testonly
Automatic update from web-platform-tests
Change attr type syntax with recent spec changes

Recent spec resolution [0] introduced the following changes to attr
type syntax:
1. Add type() wrapper around <syntax>
2. Introduce string keyword for explicitly indicating string parsing
3. Add dimension units to attach to a <number>

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

Bug: 369858674, 40320391
Change-Id: I04356918cceaf8445fcdfd896bf3567b2cce792f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6020597
Reviewed-by: Anders Hartvoll Ruud <[email protected]>
Commit-Queue: Munira Tursunova <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1383003}

--

wpt-commits: 51ac948eb3f2859dab874d2103c9e14cf4cfd5b5
wpt-pr: 49173
2024-11-16 05:40:11 +00:00

44 lines
810 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
CSS Values and Units Test:
Attribute references (length)
</title>
<meta name="assert" content="
The value of referenced attribute is used correctly as a length.
" />
<link
rel="author"
title="François REMY"
href="mailto:[email protected]"
/ >
<link rel="help" href="http://www.w3.org/TR/css3-values/#attr-notation"/>
<link
rel="match"
href="reference/200-200-green.html"
/>
<style type="text/css">
html, body { margin: 0px; padding: 0px; }
html { background: white; overflow: hidden; }
#outer { position: relative; background: green; }
#outer { width: attr(data-test type(<length>)); height: 200px; }
</style>
</head>
<body>
<div id="outer" data-test="200px"></div>
</body>
</html>