Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 2 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-values/various-values-important.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>CSS Values: !important flag parsing</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#target {
font-variant: no-common-ligatures proportional-nums !important;
initial-letter: 123 !important;
text-box-edge: text !important;
view-transition-class: cls !important;
}
</style>
</head>
<body>
<div id="target">Some text.</div>
</body>
<script>
test(() => {
assert_equals(getComputedStyle(target).fontVariant, 'no-common-ligatures proportional-nums');
});
test(() => {
assert_equals(getComputedStyle(target).initialLetter, '123');
});
test(() => {
assert_equals(getComputedStyle(target).textBoxEdge, 'text');
});
test(() => {
assert_equals(getComputedStyle(target).viewTransitionClass, 'cls');
});
</script>
</html>