gecko-dev/testing/web-platform/tests/css/cssom/selectorText-modification-restyle-001.html
Chris Nardi 79747500a5 Bug 1445393 [wpt PR 10005] - Add and correct CSSOM spec references, a=testonly
Automatic update from web-platform-testsAdd and correct CSSOM spec references

Many CSSOM tests were missing spec references or had incorrect ones; add/update these references.

--
Move GetBoundingRect.html

getBoundingClientRec is defined in CSSOM View, not CSSOM.

wpt-commits: 825f054d0d8f1f60ef13e36b46d6ea97ea87cc15, b52a19067b803b35f9cdd588f8302a289e20446a
wpt-pr: 10005
wpt-commits: 825f054d0d8f1f60ef13e36b46d6ea97ea87cc15, b52a19067b803b35f9cdd588f8302a289e20446a
wpt-pr: 10005
2018-04-15 08:31:19 +01:00

22 lines
630 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>(Test #1) CSSOM - CSSStyleRule.selectorText Modification Restyle - Test #1</title>
<link rel="help" href="https://drafts.csswg.org/cssom/#dom-cssstylerule-selectortext">
<link rel="match" href="selectorText-modification-restyle-001-ref.html">
<style>
@namespace bogus url(http://example.com/bogus);
bogus|div {
color: green;
}
</style>
<body>
<div>I should be green.</div>
<script>
// Remove the "bogus" namespace--now it should apply to the div above.
// We also expect to see a restyle.
document.querySelector("style").sheet.cssRules[1].selectorText = "div";
</script>
</body>