mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
We parse when assigning using the namespaces of the stylesheet. It isn't clear if the spec says to do that (Firefox doesn't support the setter at all, Chrome does, Safari doesn't); the spec issue is here: https://github.com/w3c/csswg-drafts/issues/1511 Also fix ToCss implementation of AttrSelectorOperator to not pad with spaces, to conform with CSSOM. This means we have to update some unit tests that expect operators with spaces around them in attribute selectors to roundtrip. See the "attribute selector" section of "Serializing Selectors" here: https://drafts.csswg.org/cssom/#serializing-selectors CSSStyleRule.selectorText is specified here: https://drafts.csswg.org/cssom/#dom-cssstylerule-selectortext
13 lines
221 B
HTML
13 lines
221 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<title>(Ref #1) CSSOM - CSSStyleRule.selectorText Modification Restyle - Reference #1</title>
|
|
|
|
<style>
|
|
div {
|
|
color: green;
|
|
}
|
|
</style>
|
|
|
|
<body>
|
|
<div>I should be green.</div>
|
|
</body>
|