commit | 861066b09b34f5644e622d195ff2f4609502c364 | [log] [tgz] |
---|---|---|
author | rune <rune@opera.com> | Tue Mar 08 06:03:24 2016 |
committer | Commit bot <commit-bot@chromium.org> | Tue Mar 08 06:04:38 2016 |
tree | e168b456c6fd2a87014d097ca09ca5ba62aa22cf | |
parent | 55e3e4d3c52bf99bd8a710e55b1dcccea5e3acc6 [diff] |
Added tests for preferred sheet insertion order. Which stylesheet wins setting the preferred stylesheet set based on the title attribute depends on the insertion order, and not the tree order, since it's done as part of adding a stylesheet[1], as part of creating a stylesheet[2], which is done on closing a style element, on inserting or removing the style element [3]. Added two tests to make sure this is still true after active stylesheet update has been made async. [1] https://drafts.csswg.org/cssom/#add-a-css-style-sheet [2] https://drafts.csswg.org/cssom/#create-a-css-style-sheet [3] https://html.spec.whatwg.org/#update-a-style-block BUG=567021 Review URL: https://codereview.chromium.org/1769843002 Cr-Commit-Position: refs/heads/master@{#379760}