Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upA document created through parseFromString inherits creator document's CSS #15389
Comments
|
Interestingly enough, there's a note about this specific case in https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle:
|
|
Doubly interestingly, there's code that deals with a similar case which has an interesting TODO comment that suggests that the spec may not be aligned with the real world: https://dxr.mozilla.org/servo/rev/da89099e26955cf5ba44031a0a536e3af4e6a0d5/components/script/dom/cssstyledeclaration.rs#201-205 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
DOMParser.parseFromStringwindow.getComputedStyleon the created documentExpected: created document does not inherit CSS rules of the main document
Observed: created document inherits CSS rules of the main document
The issue can be reproduced using the following test: