-
Notifications
You must be signed in to change notification settings - Fork 319
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
Native cssstylesheet #853
Merged
Merged
Native cssstylesheet #853
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
fbf95c0
support native CSSStyleSheet
samthor ee83057
fix test
samthor 6e5cc41
comment tweaks
samthor b716590
use getStyles(), check with test
samthor 024abcb
fix test
samthor e535bc9
review feedback
samthor f7009ad
fix bad merge
samthor 9c988d9
Merge branch 'master' into native-cssstylesheet
samthor a24cb63
Use only one styles array
justinfagnani 0c2821a
fix comments after justin's change
samthor d90c070
review feedback
samthor 94286e4
flatten sheets where possible
samthor 8742ab5
remove unused import
samthor 5dc558e
fix missing whitespace
samthor f64ed51
use the same test as every other element
samthor 33f3b71
change to throw for <style>.sheet, add tests
samthor 626ef41
semicolon
samthor b8f878f
missed test name
samthor 3c42e5b
Update src/lit-element.ts
samthor 0e4df4a
fix bad suggestion merge
samthor 2db7cd9
fix test running cases
samthor b0daa04
Update src/lib/css-tag.ts
samthor 3c25762
fix test and change flattening behavior
samthor edd8668
eslint
samthor 9b01c1c
move throws check earlier
samthor 2aa7ec7
fix tests
samthor c172c04
restructure tests a bit
samthor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think we need to change this to
('adoptedStyleSheets' in window.ShadowRoot.prototype)
, instead of('adoptedStyleSheets' in Document.prototype)
. This makes sure it'll be false when ShadyDOM is enabled.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this change should be needed to get the test running under the polyfill to run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@justinfagnani had an issue with this. To quote him: