aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/properties/data.py
Commit message (Collapse)AuthorAgeFilesLines
...
* style: Handle logical shorthand animations with variable references correctly.Emilio Cobos Álvarez2019-11-301-5/+7
| | | | | | | | | | | When we physicalize the declarations for @keyframes, we end up having a physical declaration with an unparsed value with `from_shorthand` being the logical shorthand. Account for this case properly when substituting custom properties, to avoid panicking. Differential Revision: https://phabricator.services.mozilla.com/D53663
* style: Fix Servo build, and rustfmt recent changes.Emilio Cobos Álvarez2019-09-121-0/+1
|
* style: Support css use counters for unimplemented properties.Boris Chiou2019-09-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | For developing properties, we will handle them in an other bug. Besides, I use an iframe for the test because we create a use counter in the constructor of Document, which use the prefs to decide what kind of properties we want to record. So, in the test, we have to reload iframe to make sure we re-create the document, so does the use counter, to make sure the prefs work properly. The two prefs affect the css use counters: 1. layout.css.use-counters.enabled: Allocate use counters, and record non-custom properties. 2. layout.css.use-counters-unimplemented.enabled: Record all unimplmented properties into the use counters. If we disable layout.css.use-counters.enblaed, we don't create use counters object, so layout.css.use-counters-unimplemented.enabled doesn't work, either. Differential Revision: https://phabricator.services.mozilla.com/D43860
* style: updating text-underline-offset to support ↵Charlie Marlow2019-08-151-1/+0
| | | | | | ::first-line/first-letter/placeholder. Differential Revision: https://phabricator.services.mozilla.com/D41227
* style: updating text-decoration-skip-ink to support ↵Charlie Marlow2019-08-151-1/+0
| | | | | | ::first-line/first-letter/placeholder. Differential Revision: https://phabricator.services.mozilla.com/D41228
* style: added text-decoration-thickness to the text-decoration shorthands.Charlie Marlow2019-08-151-1/+0
| | | | Differential Revision: https://phabricator.services.mozilla.com/D40335
* Stylo: replace product={gecko,servo} with engine={gecko,servo-2013,servo-2020}Simon Sapin2019-07-291-64/+93
| | | | Renaming the variable helped make sure I looked at every use.
* style: Appease tidy.Emilio Cobos Álvarez2019-07-231-15/+15
|
* Fix Servo build.Emilio Cobos Álvarez2019-07-231-14/+18
|
* style: renamed text-decoration-width to text-decoration-thickness.Charlie Marlow2019-07-231-1/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D38586
* style: Centralize property restrictions.Emilio Cobos Álvarez2019-07-231-0/+171
| | | | | | The assertion in properties.mako.rs ensures I got this right. Differential Revision: https://phabricator.services.mozilla.com/D37720
* style: Ignore pref-controlled properties in cached scrollbar style assertions.Cameron McCormack2019-07-231-0/+9
| | | | | | | | | Now if you add a new inherited, pref-controlled property, you must declare whether it can have an effect on scrollbar styles. If no, then the property will be skipped in the assertions that check whether our cached styles are equal to those we would compute. Differential Revision: https://phabricator.services.mozilla.com/D37507
* style: Fix python3 lint issues on servo.Calixte Denizet2019-07-081-2/+2
| | | | Differential Revision: https://phabricator.services.mozilla.com/D35247
* style: Adding parsing support for text-decoration-skip-inkCharlie Marlow2019-07-081-0/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D35831
* style: Add an internal aspect-ratio CSS property.Emilio Cobos Álvarez2019-07-081-0/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D29037
* Rustfmt and fix tidy on recent changes.Emilio Cobos Álvarez2019-06-251-1/+3
|
* style: Implement overflow-block and overflow-inline propertiesviolet2019-06-251-7/+12
| | | | Differential Revision: https://phabricator.services.mozilla.com/D34738
* style: Remove support for the layout.css.prefixes.webkit pref.Daniel Holbert2019-06-251-6/+0
| | | | | | | From this point on, the webkit-prefixed CSS features that were previously protected by this pref will now be unconditionally enabled. Differential Revision: https://phabricator.services.mozilla.com/D33807
* style: Implement offset-rotate.Boris Chiou2019-05-291-0/+1
| | | | | | | | | | | | This includes style system and layout update. I add 3 extra reftests because the original tests use ray() function as the offset-path, but we don't support it. It'd be better to add tests using a different type of offset-path. The spec issue about the serialization: https://github.com/w3c/fxtf-drafts/issues/340 Differential Revision: https://phabricator.services.mozilla.com/D32212
* style: Support AllowQuirks::Always option in helpers.mako.rsviolet2019-05-291-1/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D29936
* style: Implement the CSS line-break property, with values "auto | anywhere".Jonathan Kew2019-05-291-0/+1
| | | | | | Note that the "loose | normal | strict" values are not yet parsed/implemented. Differential Revision: https://phabricator.services.mozilla.com/D29817
* style: Add bindings for box shadows, and remove nsCSSShadowArray and friends.Emilio Cobos Álvarez2019-05-291-0/+2
| | | | Differential Revision: https://phabricator.services.mozilla.com/D30547
* style: Implement -webkit-line-clamp.Cameron McCormack2019-05-101-0/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D20115
* style: Allow animating the 'all' property from Web Animations.Brian Birtles2019-05-071-2/+0
| | | | Differential Revision: https://phabricator.services.mozilla.com/D28763
* style: Allow full-width and/or full-size-kana values of text-transform to be ↵Jonathan Kew2019-05-071-0/+1
| | | | | | combined with a case transformation. Differential Revision: https://phabricator.services.mozilla.com/D27402
* style: Switch to the new scroll-snap-type syntax for the old scroll snap ↵Hiroyuki Ikezoe2019-04-121-0/+2
| | | | | | | | implementation and drop the scroll-snap-type-{x,y} longhands. Now scroll-snap-type is a longhand property. Differential Revision: https://phabricator.services.mozilla.com/D21622
* style: Rename ScrollSnapType to ScrollSnapStrictness.Hiroyuki Ikezoe2019-04-121-1/+1
| | | | | | | | | The scroll snap strictness is defined in the new spec [1], and the structure is the exactly same as the old scroll snap type structure. [1] https://drafts.csswg.org/css-scroll-snap-1/#snap-strictness Differential Revision: https://phabricator.services.mozilla.com/D21621
* style: Add an inherited internal UA sheet property ↵Mats Palmgren2019-03-271-0/+1
| | | | | | | (-moz-list-reversed:true|false) to propagate <ol reversed> to its relevant descendants. Bug: 288704 Reviewed-by: emilio
* style: Make word-break: break-word behave like word-break: normal; ↵Emilio Cobos Álvarez2019-03-131-0/+1
| | | | | | overflow-wrap: anywhere. Differential Revision: https://phabricator.services.mozilla.com/D21398
* style: Implement scroll-snap-align parser and serializer.Hiroyuki Ikezoe2019-02-231-0/+1
| | | | | | https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align Differential Revision: https://phabricator.services.mozilla.com/D20205
* style: Make tidy happy.Emilio Cobos Álvarez2019-01-201-3/+3
|
* style: Add plumbing for handling physical/logical corner values.Mats Palmgren2019-01-201-2/+7
| | | | | Bug: 1520684 Reviewed-by: emilio
* style: Add 'overflow-anchor' CSS property.Ryan Hunt2019-01-131-0/+1
| | | | | | https://drafts.csswg.org/css-scroll-anchoring/#exclusion-api Differential Revision: https://phabricator.services.mozilla.com/D13265
* style: The 'all' property is not animatable.Emilio Cobos Álvarez2019-01-071-4/+4
| | | | | | | | | | | | | | | | Since it allows to animate display, which is not good. This is a regression from: https://hg.mozilla.org/mozilla-central/rev/6884ba750aa3 Actually I wonder if the logic shouldn't be the other way around, i.e., a shorthand is animatable if all the longhands are, not if just one. In any case this rolls back to the previous behavior, should we do that, it should be another bug. Differential Revision: https://phabricator.services.mozilla.com/D14632
* style: Move overflow to use cbindgen.Emilio Cobos Álvarez2018-12-161-0/+1
| | | | | | It's one of the most annoying / hacky mako bits we have. Differential Revision: https://phabricator.services.mozilla.com/D14084
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* style: Also move page-break-inside outside of mako.Emilio Cobos Álvarez2018-11-171-0/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D11876
* style: Move the page-break-{before,after} properties to not use mako.Emilio Cobos Álvarez2018-11-171-0/+1
| | | | | | And respect the computed value of `left` / `right` / etc. Differential Revision: https://phabricator.services.mozilla.com/D11872
* style: Move user-select outside of mako.Emilio Cobos Álvarez2018-11-171-0/+1
| | | | | | | | | This is the first step to unprefix user-select. This has no behavior change, it's just a nicer way to do the same thing which allows us to unship individual values more easily using parse(condition). Differential Revision: https://phabricator.services.mozilla.com/D11580
* style: Implement overflow-wrap: anywhere.Emilio Cobos Álvarez2018-11-101-0/+1
| | | | | | Per https://github.com/w3c/csswg-drafts/issues/2682 Differential Revision: https://phabricator.services.mozilla.com/D11328
* Use 2018-style paths in code generated by MakoSimon Sapin2018-11-101-2/+2
|
* style: Remove nscsspropertyid_is_{animatable,transitionable}.Emilio Cobos Álvarez2018-11-051-0/+2
| | | | | | | There are better ways, plus the existing code didn't handle aliases at all (not that it needed to, but it's better if it does). Differential Revision: https://phabricator.services.mozilla.com/D10838
* style: Use alias for StyleFillRule.Boris Chiou2018-11-051-0/+1
| | | | | | | This needs to update the "fill-rule" and "clip-rule" to use predefined_type to avoid some compilation errors. Differential Revision: https://phabricator.services.mozilla.com/D10142
* style: Implement flow-relative values for resize property.Xidorn Quan2018-08-181-0/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D2908
* style: Make several more specified values Copy.Xidorn Quan2018-08-181-0/+4
| | | | Differential Revision: https://phabricator.services.mozilla.com/D2932
* style: Add check for non-Copy specified value to ensure specified_is_copy ↵Xidorn Quan2018-08-181-0/+13
| | | | | | always returns the right result. Differential Revision: https://phabricator.services.mozilla.com/D2931
* style: Appease tidy.Emilio Cobos Álvarez2018-07-241-3/+2
|
* style: Introduce a concept of logical group.Xidorn Quan2018-07-241-1/+4
| | | | | | Bug: 1473180 Reviewed-by: emilio MozReview-Commit-ID: GXlf8JNML4N
* style: Animate logical properties.Emilio Cobos Álvarez2018-07-241-6/+0
| | | | | | | | | The setup is that AnimationValue only contains physical properties, and we physicalize when building keyframes and transitions. Bug: 1309752 Reviewed-by: birtles MozReview-Commit-ID: 9dI20N0LFrk
* style: Introduce PropertyDeclaration::to_physical.Emilio Cobos Álvarez2018-07-241-0/+15
| | | | | | Bug: 1309752 Reviewed-by: heycam MozReview-Commit-ID: FAL04K5G948