concept
Web platform tests — CSS reference
Web Platform Tests is a shared suite of specification-oriented tests that can run across browser implementations. Read its harness, assertions and expected outcomes before interpreting results. The example is an original local equivalent of a computed-style assertion, not an imported or executed WPT test.
Formal Syntax & Structure
css syntaxcss
assert_equals(getComputedStyle(el).display, "flex");Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>web-platform-tests</title><style>body{margin:8px;font:16px/1.5 sans-serif;color:black;background:white}#a{box-sizing:border-box}#a{display:flex}</style><body><div id="a">Example</div></body></html>