mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
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
22 lines
630 B
HTML
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>
|