Pass | document.adoptedStyleSheets should initially have length 0. | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:46:3) |
|
Pass | new CSSStyleSheet produces empty CSSStyleSheet | Asserts runPass | assert_equals(null, null, "The title attribute must return the title or null if title is the empty string")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:51:3) | Pass | assert_equals(null, null)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:52:3) | Pass | assert_equals(null, null)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:53:3) | Pass | assert_equals(2, 2)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:54:3) | Pass | assert_equals("screen", "screen")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:55:3) | Pass | assert_equals("print", "print")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:56:3) | Pass | assert_true(true)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:57:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:58:3) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:61:3) | Pass | assert_equals(".red { color: red; }", ".red { color: red; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:62:3) | Pass | assert_equals(2, 2)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:65:3) | Pass | assert_equals(".red + span + span { color: red; }", ".red + span + span { color: red; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:66:3) | Pass | assert_equals(null, null, "The title attribute must return the title or null if title is the empty string")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:69:3) | Pass | assert_equals(null, null)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:70:3) | Pass | assert_equals(null, null)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:71:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:72:3) | Pass | assert_false(false)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:73:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:74:3) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:77:3) | Pass | assert_equals(".red + span + span { color: red; }", ".red + span + span { color: red; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:78:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:81:3) | Pass | assert_equals(null, null, "The title attribute must return the title or null if title is the empty string")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:84:3) | Pass | assert_equals(null, null)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:85:3) | Pass | assert_equals(null, null)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:86:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:87:3) | Pass | assert_false(false)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:88:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:89:3) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:92:3) | Pass | assert_equals(".red + span + span { color: red; }", ".red + span + span { color: red; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:93:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:96:3) |
|
Pass | title can be set in the CSSStyleSheet constructor | Asserts runPass | assert_equals(null, null, "title and alternate are not supported by the constructor. https://github.com/WICG/construct-stylesheets/issues/105")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:101:3) |
|
Pass | CSSStyleSheet.replace produces Promise<CSSStyleSheet> | Asserts runPass | assert_equals(null, null, "The title attribute must return the title or null if title is the empty string")
at /css/cssom/CSSStyleSheet-constructable.html:108:5 | Pass | assert_equals(null, null)
at /css/cssom/CSSStyleSheet-constructable.html:109:5 | Pass | assert_equals(null, null)
at /css/cssom/CSSStyleSheet-constructable.html:110:5 | Pass | assert_equals(2, 2)
at /css/cssom/CSSStyleSheet-constructable.html:111:5 | Pass | assert_equals("screen", "screen")
at /css/cssom/CSSStyleSheet-constructable.html:112:5 | Pass | assert_equals("print", "print")
at /css/cssom/CSSStyleSheet-constructable.html:113:5 | Pass | assert_true(true)
at /css/cssom/CSSStyleSheet-constructable.html:114:5 | Pass | assert_equals(1, 1)
at /css/cssom/CSSStyleSheet-constructable.html:115:5 | Pass | assert_equals(".red { color: red; }", ".red { color: red; }")
at /css/cssom/CSSStyleSheet-constructable.html:116:5 | Pass | assert_equals(2, 2)
at /css/cssom/CSSStyleSheet-constructable.html:119:5 | Pass | assert_equals(".red + span + span { color: red; }", ".red + span + span { color: red; }")
at /css/cssom/CSSStyleSheet-constructable.html:120:5 |
|
Pass | Constructed style sheets can be applied on document | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:151:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:152:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:153:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:154:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:155:5 | Pass | assert_equals("rgb(0, 128, 0)", "rgb(0, 128, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:159:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:160:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:161:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:162:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:163:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:167:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:168:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:169:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:170:5 | Pass | assert_equals("rgb(255, 255, 0)", "rgb(255, 255, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:171:5 | Pass | assert_equals("rgb(0, 128, 0)", "rgb(0, 128, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:174:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:175:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:176:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:177:5 | Pass | assert_equals("rgb(255, 255, 0)", "rgb(255, 255, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:178:5 |
|
Pass | Constructed style sheets can be applied on shadow root | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:191:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:192:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:193:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:194:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:195:5 | Pass | assert_equals("rgb(0, 128, 0)", "rgb(0, 128, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:198:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:199:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:200:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:201:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:202:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:205:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:206:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:207:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:208:5 | Pass | assert_equals("rgb(255, 255, 0)", "rgb(255, 255, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:209:5 | Pass | assert_equals("rgb(0, 128, 0)", "rgb(0, 128, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:212:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:213:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:214:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:215:5 | Pass | assert_equals("rgb(255, 255, 0)", "rgb(255, 255, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:216:5 |
|
Pass | Re-attaching shadow host with adopted stylesheets work | Asserts runPass | assert_equals("rgb(0, 128, 0)", "rgb(0, 128, 0)", "Style applies connected")
at /css/cssom/CSSStyleSheet-constructable.html:225:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)", "Style applies when connected")
at /css/cssom/CSSStyleSheet-constructable.html:226:5 | Pass | assert_equals("", "", "Style doesn't apply when detached")
at /css/cssom/CSSStyleSheet-constructable.html:229:5 | Pass | assert_equals("", "", "Style doesn't apply when detached")
at /css/cssom/CSSStyleSheet-constructable.html:230:5 | Pass | assert_equals("rgb(0, 128, 0)", "rgb(0, 128, 0)", "Style applies after reattach")
at /css/cssom/CSSStyleSheet-constructable.html:233:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)", "Style applies after reattach")
at /css/cssom/CSSStyleSheet-constructable.html:234:5 |
|
Pass | Attaching a shadow root that already has adopted stylesheets work | Asserts runPass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)", "Style applies when connected")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:245:3) | Pass | assert_equals("rgb(0, 0, 255)", "rgb(0, 0, 255)", "Style update applies when connected")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:247:3) |
|
Pass | Re-attaching shadow host and updating attributes work | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)", "No style applies yet")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:256:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)", "Style applies after adding style")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:261:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)", "Style applies after reattachment")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:264:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)", "Attribute updates to the element after reattachment apply")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:266:3) | Pass | assert_equals("rgb(0, 0, 255)", "rgb(0, 0, 255)", "Class updates to the element after reattachment apply")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:268:3) |
|
Pass | Changes to constructed stylesheets through CSSOM is reflected | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:277:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:278:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:279:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:280:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:281:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:284:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:285:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:286:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:287:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:288:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:291:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:292:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:293:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:294:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:295:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:298:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:299:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:300:5 | Pass | assert_equals("rgb(255, 255, 255)", "rgb(255, 255, 255)")
at /css/cssom/CSSStyleSheet-constructable.html:301:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:302:5 |
|
Pass | Constructed stylesheet can be used and modified in multiple TreeScopes | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:312:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:313:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:314:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:315:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:316:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:318:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:319:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:320:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:321:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:322:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:325:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:326:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:327:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:328:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:329:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:331:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:332:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:333:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:334:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:335:5 |
|
Pass | Stylesheets constructed on the main Document cannot be used in iframes | Asserts runPass | assert_throws_dom("NotAllowedError", function "function DOMException() { [native code] }", function "() => { iframe.contentDocument.adoptedStyleSheets = [redStyleSheet]; }")
at /css/cssom/CSSStyleSheet-constructable.html:354:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:359:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:360:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:361:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:362:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:363:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:366:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:367:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:368:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:369:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:370:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:373:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:374:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:375:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:376:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:377:5 |
|
Pass | Stylesheet constructed on iframe cannot be used in the main Document | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:397:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:398:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:399:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:400:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:401:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:403:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:404:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:405:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:406:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:407:3) | Pass | assert_throws_dom("NotAllowedError", function "() => { document.adoptedStyleSheets = [iframeRedStyleSheet]; }")
at /css/cssom/CSSStyleSheet-constructable.html:412:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:413:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:414:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:415:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:416:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:417:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:420:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:421:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:422:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:423:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:424:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:427:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:428:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:429:5 | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:430:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:431:5 |
|
Pass | Adding non-constructed stylesheet to AdoptedStyleSheets is not allowed when the owner document of the stylesheet is in the same document tree as the AdoptedStyleSheets | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:448:3) | Pass | assert_throws_dom("NotAllowedError", function "() => { document.adoptedStyleSheets = [nonConstructedStyleSheet]; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:449:3) |
|
Pass | Adding non-constructed stylesheet to AdoptedStyleSheets is not allowed when the owner document of the stylesheet and the AdoptedStyleSheets are in different document trees | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:459:3) | Pass | assert_throws_dom("NotAllowedError", function "function DOMException() { [native code] }", function "() => { iframe.contentDocument.adoptedStyleSheets = [nonConstructedStyleSheet]; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:460:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:463:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:473:3) | Pass | assert_throws_dom("NotAllowedError", function "() => { document.adoptedStyleSheets = [iframeStyleSheet]; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:474:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:475:3) |
|
Pass | CSSStyleSheet.replaceSync replaces stylesheet text synchronously | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:487:3) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:490:3) | Pass | assert_equals(".red { color: red; }", ".red { color: red; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:491:3) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:494:3) | Pass | assert_equals(".red + span + span { color: red; }", ".red + span + span { color: red; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:495:3) |
|
Pass | CSSStyleSheet.replaceSync correctly updates the style of its adopters synchronously | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:507:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:510:3) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:511:3) | Pass | assert_equals(".red { color: red; }", ".red { color: red; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:512:3) | Pass | assert_equals(2, 2)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:514:3) | Pass | assert_equals(".red + span + span { color: red; }", ".red + span + span { color: red; }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:515:3) |
|
Pass | Adopted sheets are ordered after non-adopted sheets in the shadow root | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:528:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:532:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)", "non-adopted styles should be ordered before adopted styles")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:538:3) | Pass | assert_equals("rgb(255, 255, 255)", "rgb(255, 255, 255)", "with no adopted styles in conflict, the non-adopted style should take effect")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:541:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)", "the adopted style should be ordered after the non-adopted style")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:544:3) | Pass | assert_equals("rgb(255, 255, 255)", "rgb(255, 255, 255)", "with the adopted sheet disabled, the non-adopted style should take effect")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:547:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)", "the adopted sheet re-enabled, it should take effect again")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:550:3) |
|
Pass | Adopted sheets are ordered after non-adopted sheets in the document | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:562:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:566:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)", "non-adopted styles should be ordered before adopted styles")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:572:3) | Pass | assert_equals("rgb(255, 255, 255)", "rgb(255, 255, 255)", "with no adopted styles in conflict, the non-adopted style should take effect")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:575:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)", "the adopted style should be ordered after the non-adopted style")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:578:3) | Pass | assert_equals("rgb(255, 255, 255)", "rgb(255, 255, 255)", "with the adopted sheet disabled, the non-adopted style should take effect")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:581:3) | Pass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)", "the adopted sheet re-enabled, it should take effect again")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:584:3) |
|
Pass | Inserting an @import rule through insertRule on a constructed stylesheet throws an exception | Asserts runPass | assert_throws_dom("SyntaxError", function "() => { (new CSSStyleSheet).insertRule(import_text) }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:590:3) |
|
Fail | CSSStyleSheet.replaceSync should not trigger any loads from @import rules | assert_unreached: Load shouldn't fail Reached unreachable codeError
at get_stack (https://www1.wpt.live/resources/testharness.js:4575:21)
at new AssertionError (https://www1.wpt.live/resources/testharness.js:4568:22)
at assert (https://www1.wpt.live/resources/testharness.js:4552:19)
at assert_unreached (https://www1.wpt.live/resources/testharness.js:2396:10)
at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:2735:13)
at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
at HTMLLinkElement.<anonymous> (https://www1.wpt.live/resources/testharness.js:2689:35) Asserts runNo asserts ran |
Pass | CSSStyleSheet.replace allows, but ignores, import rule inside | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:623:3) | Pass | assert_equals(0, 0)
at /css/cssom/CSSStyleSheet-constructable.html:628:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:629:5 |
|
Pass | CSSStyleSheet.replace ignores @import rule but still loads other rules | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:644:3) | Pass | assert_equals(1, 1)
at /css/cssom/CSSStyleSheet-constructable.html:648:5 | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at /css/cssom/CSSStyleSheet-constructable.html:650:5 | Pass | assert_equals("rgb(0, 0, 255)", "rgb(0, 0, 255)")
at /css/cssom/CSSStyleSheet-constructable.html:652:5 |
|
Pass | CSSStyleSheet.replaceSync allows, but ignores, import rule inside | Asserts runPass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:664:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:669:5) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:670:5) |
|
Pass | CSSStyleSheet.replace does not reject on failed imports | Asserts runNo asserts ran |
Pass | Cloning a shadow host will not clone shadow root, and also adoptedStyleSheets | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:695:3) |
|
Pass | Importing a shadow host will not copy shadow root, and also adoptedStyleSheets | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:709:3) |
|
Pass | Adopting a shadow host will empty adoptedStyleSheets if adopting to a different document | Asserts runPass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:719:3) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:722:3) | Pass | assert_equals(object "[object CSSStyleSheet]", object "[object CSSStyleSheet]")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:723:3) | Pass | assert_not_equals(DocumentFragment node with 1 child, null)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:729:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:730:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:731:3) |
|
Pass | Adopting a shadow host's ancestor will empty adoptedStyleSheets if adopting to a different document | Asserts runPass | assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:743:3) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:746:3) | Pass | assert_equals(object "[object CSSStyleSheet]", object "[object CSSStyleSheet]")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:747:3) | Pass | assert_not_equals(DocumentFragment node with 1 child, null)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:753:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:754:3) | Pass | assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:755:3) |
|
Pass | Forcing a style update after adding an adopted stylesheet on a disconnected shadow root should not crash. | Asserts runNo asserts ran |
Pass | Modifying an adopted stylesheet on a disconnected shadow root should not crash. | Asserts runNo asserts ran |
Pass | Constructing a sheet with the default base URL uses the constructor document's base URL for CSS rules | Asserts runPass | assert_equals("url(\"https://www1.wpt.live/css/cssom/example.png\")", "url(\"https://www1.wpt.live/css/cssom/example.png\")")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable.html:798:3) |
|