Pass | uppercase property | Asserts runPass | assert_equals("", "")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:24:13) |
|
Pass | uppercase value | Asserts runPass | assert_equals("color: red;", "color: red;")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:33:13) | Fail | assert_equals("color: red;", "color: RED;")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:33:13) |
|
Pass | overwriting with invalid value | Asserts runPass | assert_equals("color: red;", "color: red;")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:44:13) |
|
Pass | use rgb | Asserts runPass | assert_equals("color: rgb(255, 0, 0);", "color: rgb(255, 0, 0);")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:52:13) |
|
Pass | cssText order | Asserts runPass | assert_equals("color: red; font-size: 10pt; font-weight: bold;", "color: red; font-size: 10pt; font-weight: bold;")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:64:13) |
|
Pass | another cssText order (non-alphabetical order) | Asserts runPass | assert_equals("font-weight: bold; color: red; font-size: 10pt;", "font-weight: bold; color: red; font-size: 10pt;")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:76:13) |
|
Pass | whitespaces in value | Asserts runPass | assert_equals("color: red; font-size: 10pt;", "color: red; font-size: 10pt;")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:86:13) |
|
Pass | invalid property does not appear | Asserts runPass | assert_equals("color: red; font-size: 10pt;", "color: red; font-size: 10pt;")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:96:13) |
|
Fail | Shorthands aren't serialized if there are other properties with different logical groups in between | assert_equals: expected "margin-top: 10px; margin-right: 10px; margin-left: 10px; margin-inline-start: 10px; margin-block: 10px; margin-inline-end: 10px; margin-bottom: 10px;" but got "margin: 10px; margin-inline: 10px; margin-block: 10px;" at Test.<anonymous> (https://www1.wpt.live/css/cssom/cssstyledeclaration-csstext.html:103:13)
at Test.step (https://www1.wpt.live/resources/testharness.js:2684:25)
at test (https://www1.wpt.live/resources/testharness.js:633:30)
at https://www1.wpt.live/css/cssom/cssstyledeclaration-csstext.html:100:9 Asserts runFail | assert_equals("margin: 10px; margin-inline: 10px; margin-block: 10px;", "margin-top: 10px; margin-right: 10px; margin-left: 10px; margin-inline-start: 10px; margin-block: 10px; margin-inline-end: 10px; margin-bottom: 10px;")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:103:13) |
|
Pass | Shorthands _are_ serialized if there are no other properties with different logical groups in between | Asserts runPass | assert_equals("margin: 10px; margin-inline: 10px; margin-block: 10px;", "margin: 10px; margin-inline: 10px; margin-block: 10px;")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:109:13) |
|
Pass | cssText on computed style declaration returns the empty string | Asserts runPass | assert_not_equals(383, 0, "Should have a style")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:121:13) | Pass | assert_equals("", "", "cssText is empty")
at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:122:13) |
|