Skip to content
Skip the list of specifications

css/css-text-decor/parsing/

text-decoration-valid.html

Passes: all 17 assertions match

A parsing check: each value the parser must accept or reject.

Run it in the playgroundThe fileOn GitHubBrowsers’ results on wpt.fyi

Each assertion

Every row shows what the file expected and what the engine returned, whether they match or not.

AssertionExpectedGotVerdict
e.style['text-decoration'] = "none" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "line-through" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "solid" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "currentcolor" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "auto" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "from-font" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "10px" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "double overline underline" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "underline overline line-through red" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "underline overline line-through blink" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "underline overline line-through blink red" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "rgba(10, 20, 30, 0.4) dotted" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "overline green from-font" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "underline dashed green" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "underline auto" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "line-through 20px" should set the property valueacceptedacceptedPasses
e.style['text-decoration'] = "overline 3em" should set the property valueacceptedacceptedPasses

Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.