Commit Graph
4092 Commits
Author SHA1 Message Date
Steven Orvell c8008b9736 lint fix 2018-01-29 18:25:07 -08:00
Steven Orvell a0d6af66a0 Merge branch '1.x' into 5017-kschaaf-custom-style-1.x 2018-01-29 16:02:58 -08:00
Daniel Freedman 9721433399 Port keyframe name fix from ShadyCSS (#5038)
* Port keyframe name fix from ShadyCSS

Fixes #3475

* animate border instead

* Port Edge 16 test fixes from 2.x
2018-01-24 14:16:10 -08:00
Kevin Schaaf 8ae39557c0 Allow adding type="custom" to avoid deprecation warning. Fixes #5017 2018-01-04 17:48:55 -08:00
Cyrille Colin 7b6ff53978 test if path exist with ghost clicks events (#4703) 2017-12-20 16:10:39 -08:00
Daniel Freedman bd1792acb7 [ci skip] update changelog 2017-12-14 17:22:28 -08:00
Daniel Freedman 0a1b8049f6 [ci skip] prepare v1.11.2 v1.11.2-dev 2017-12-14 17:20:08 -08:00
Daniel Freedman 9e0218af79 Merge pull request #4990 from Polymer/1.x-dir-webkit-any
Handle :-webkit-any selectors correctly
2017-12-12 14:42:00 -08:00
Daniel Freedman f6f0750b85 Fix styling tests with Firefox
Disable checking the style in IE and Edge due to a missing `:any`
selector
2017-12-12 12:17:32 -08:00
Daniel Freedman 9f3ff4e24b Handle :-webkit-any selectors correctly
Fixes #4984
2017-12-12 10:57:13 -08:00
Daniel Freedman 000e15e6c7 [ci skip] update changelog 2017-12-05 14:19:50 -08:00
Daniel Freedman 6188101a15 [ci skip] prepare v1.11.1 v1.11.1-dev 2017-12-05 14:10:46 -08:00
Daniel Freedman f2a543267c Merge pull request #4963 from Polymer/1.x-passive-touch-no-touchend
[1.x] Do not set touchend listeners to passive
2017-11-30 14:46:50 -08:00
Daniel Freedman 34c7a2dc12 Merge pull request #4964 from Polymer/1.x-dir-issue
[1.x] Make `:dir` more robust
2017-11-30 14:46:41 -08:00
Daniel Freedman f038522f10 make PASSIVE_TOUCH take an argument 2017-11-30 14:10:18 -08:00
Daniel Freedman 1cc06fc2db Handle more dir cases
Handle cases where direction is set on an intermediate ancestor between
the host element and another element.

Test distributed elements and nested custom elements
2017-11-30 12:41:49 -08:00
Daniel Freedman f0ff70db32 Make :dir more robust
Fixes #4952
2017-11-29 15:19:54 -08:00
Daniel Freedman f62f9f715a Do not set touchend listeners to passive
`touchend` listeners do not need to be passive to enable more performant
scrolling.

With this change, most of the tradeoffs with enabling
`passiveTouchGestures` disappear, leaving only the inability to control
scrolling from `track`, `down`, and `move` gestures.

1.x port of #4962
2017-11-29 12:19:42 -08:00
Daniel Freedman c6a29dcd2e Merge pull request #4926 from Polymer/1.x-dir-with-css-vars
Fix :dir selector when element uses CSS Custom Property Shim
2017-11-14 15:27:12 -08:00
Daniel Freedman 771cde0902 Add comments on modified transforms
Also fix up native shadow `:dir` transform to accept ancestor selector
prefixes
2017-11-14 14:59:35 -08:00
Daniel Freedman 788aad5f6f Fix :dir() bare selector in native shadowdom
More correct fix for :dir() with CSS Custom Property Shim enabled
2017-11-08 09:45:50 -08:00
Daniel Freedman 8fd3e93c7e Fix :dir selector when element uses CSS Custom Property Shim
Fixes #4925
2017-11-07 15:29:08 -08:00
Daniel Freedman 81383a76e8 Add a load-bearing escape into the comment regex
Some other tooling may not understand javascript specific semantics for
regexes and really mess with someone's day!

![simpsons load bearing poster](https://media.giphy.com/media/l2JdUolkmRLmZM9Fu/giphy.gif)
2017-11-06 15:15:45 -08:00
Daniel Freedman d27175a1a2 Merge pull request #4902 from freshp86/fix_style_whitespace
Polymer 1: Allow arbitrary whitespace in CSS imports
2017-10-30 11:15:22 -07:00
dpapad 9356bd02ab Polymer 1: Allow arbitrary whitespace in CSS imports 2017-10-24 16:25:02 -07:00
Daniel Freedman f530289255 Merge pull request #4891 from Polymer/1.x-shady-unscoped-style
[1.x] Adds support for `shady-unscoped` attribute to style elements.
2017-10-19 17:18:48 -07:00
Daniel Freedman 471dc9aaae fix license issues 2017-10-19 17:02:32 -07:00
Steven Orvell bba3f5ab0e Fix tests on Firefox. 2017-10-19 15:13:10 -07:00
Daniel Freedman 0e15b179de [ci skip] update changelog 2017-10-18 12:49:15 -07:00
Daniel Freedman ca2d8a57f5 [ci skip] prepare v1.11.0 v1.11.0-dev 2017-10-18 12:46:45 -07:00
Steven Orvell 90697bf2da Add support for styles with a shady-unscoped attribute
Since `/deep/` has been removed from Shady DOM v0, users must share styles between elements via style modules (e.g. `<style include="shared-style">`).

Under ShadyDOM, these styles are scoped and duplicated between elements. If these styles are intended to replace global styling done with `html /deep/ ...` this is inefficient since the styles are needlessly copied to each element style.

Therefore, this adds support for a `shady-unscoped` attribute. If this attribute is placed on a style and native Shadow DOM is not in use, then the style is copied once to the document and are left unscoped.

Please note, css custom properties are not supported in `shady-unscoped` styles.
2017-10-18 12:12:48 -07:00
Steven Orvell 40058aeb78 Skip tests of ::shadow and /deep/ under native Shadow DOM
These features have been removed from the only native implementation of Shadow DOM v0 (Chrome).
2017-10-18 11:58:12 -07:00
Daniel Freedman 00a64050b4 Factor :dir replacement into a separate function for css building
Fix test running erroneously in Safari 11 w customElements but not HTML
Imports
2017-10-17 15:39:00 -07:00
Daniel Freedman 63376cb685 Merge pull request #4886 from Polymer/document-selector-fix
Check that document selectors are actually simple selectors
2017-10-17 11:29:11 -07:00
Daniel Freedman feaf5c6106 Always use complexSelector transformer
Added tests for a list of complex selectors.
2017-10-17 10:38:49 -07:00
Daniel Freedman ad7805e5d1 Check that document selectors are actually simple selectors
Checking for `/deep/` and `::shadow` is not enough

Fixes #4885
2017-10-16 17:49:57 -07:00
Daniel Freedman 5c0df2d9e6 Merge pull request #4881 from Polymer/1.x-dir-selector
Add :dir support to Polymer 1
2017-10-13 10:44:32 -07:00
Daniel Freedman fad613ee43 explain skipped test 2017-10-11 16:02:41 -07:00
Daniel Freedman ae37f83db2 Add :dir support to Polymer 1
Polymer 1.x fix for #4860

`:dir` becomes `:host-context([dir])`
2017-10-11 14:43:37 -07:00
Daniel Freedman db0a93261d [ci skip] Update Changelog 2017-09-28 15:26:00 -07:00
Daniel Freedman 432049852e [ci skip] v1.10.1 v1.10.1-dev 2017-09-28 15:22:53 -07:00
Daniel Freedman 1c69bd9944 Merge pull request #4850 from Polymer/1.x-html-imports-styling-workaround
Copy <style is="custom-style"> to the main document
2017-09-21 14:28:58 -07:00
Daniel Freedman 36e9310f67 Just move the style, don't clone
Similar to 61b2c8a544
2017-09-21 10:22:24 -07:00
Daniel Freedman c69583a430 Merge branch '1.x' into 1.x-html-imports-styling-workaround 2017-09-20 16:27:47 -07:00
Daniel Freedman 88c54f5f41 Merge pull request #4851 from Polymer/fix-tests
Fix broken tests related to Edge 15 bugs with CSS Custom properties
2017-09-20 16:22:47 -07:00
Daniel Freedman 4666f0be0e Fix broken tests related to Edge 15 bugs with CSS Custom properties
Port webcomponents/shadycss#120 to 1.x
2017-09-20 15:45:13 -07:00
Daniel Freedman 549de4accd Copy <style is="custom-style"> to the main document
Work around deprecation of styles in HTML Imports
https://crbug.com/523952

Backport from 155ab8a20d for 2.x

Related to #4679
2017-09-20 14:16:28 -07:00
Daniel Freedman 89bbec53ec [ci skip] update changelog 2017-09-19 10:41:07 -07:00
Daniel Freedman a7ee3f3f4f [ci skip] v1.10.0 v1.10.0-dev 2017-09-19 10:39:57 -07:00
Daniel Freedman c4a3c8c508 Merge branch 'bartolom-webcomponentsDependency' into 1.x 2017-09-14 17:02:28 -07:00