Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/parsing/grid-template-important.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Grid Layout Test: grid-template followed by !important</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#div {
grid-template: "test" max-content / max-content !important;
}
</style>
<div id=div></div>
<script>
test(() => {
assert_equals(getComputedStyle(div).gridTemplate, '"test" max-content / max-content');
}, 'grid-template followed by !important');
</script>