Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement support for removing stylesheets from their document #14930

Merged
merged 4 commits into from Jan 24, 2017
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Test changing style tag elements

  • Loading branch information
Roman Zaynetdinov
Roman Zaynetdinov committed Jan 21, 2017
commit 9760ea29537ce7753e6e0d516865e70142db5824
@@ -6462,6 +6462,18 @@
"url": "/_mozilla/mozilla/iframe/resize_after_load.html"
}
],
"mozilla/reparse_style_elements.html": [
{
"path": "mozilla/reparse_style_elements.html",
"references": [
[
"/_mozilla/mozilla/reparse_style_elements_ref.html",
"=="
]
],
"url": "/_mozilla/mozilla/reparse_style_elements.html"
}
],
"mozilla/restyle-out-of-document.html": [
{
"path": "mozilla/restyle-out-of-document.html",
"url": "/_mozilla/mozilla/iframe/resize_after_load.html"
}
],
"mozilla/reparse_style_elements.html": [
{
"path": "mozilla/reparse_style_elements.html",
"references": [
[
"/_mozilla/mozilla/reparse_style_elements_ref.html",
"=="
]
],
"url": "/_mozilla/mozilla/reparse_style_elements.html"
}
],
"mozilla/restyle-out-of-document.html": [
{
"path": "mozilla/restyle-out-of-document.html",
@@ -0,0 +1,18 @@
<!doctype html>
<meta charset="utf-8">
<title>Style elements should be reparsed on change</title>
<link rel="match" href="reparse_style_elements_ref.html">
<body>
<style>
body {
background-color: red;
}
</style>

This text should be green and the background should not be red.

<script>
var s = document.querySelector('body > style');
s.textContent = 'body { color: green; }';
</script>
</body>
@@ -0,0 +1,11 @@
<!doctype html>
<meta charset="utf-8">
<body>
<style>
body {
color: green;
}
</style>

This text should be green and the background should not be red.
</body>
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.