aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/CSSStyleDeclaration.webidl
Commit message (Collapse)AuthorAgeFilesLines
* style: Support the all shorthand.Cameron McCormack2017-04-141-0/+2
| | | | Fixes #15055.
* Make font-variant shorthand.Hiroyuki Ikezoe2017-04-141-0/+2
|
* Don't serialize initial text-decoration-style #15790projektir2017-03-091-0/+2
|
* Add support for most of the border-image properties, pass to WR.Glenn Watson2017-02-231-0/+12
| | | | | | | | | | | | This adds support for: * border-image (images, not gradients yet) * border-image-source * border-image-slice * border-image-repeat (stretch + repeat only for now) Remaining work: * Connect border-image-outset (WR supports this). * border-image-width
* Auto merge of #15289 - montrivo:webidl-exposed, r=cbrewsterbors-servo2017-01-291-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose interfaces only where they should be. #12415 - Partial <!-- Please describe your changes on the following line: --> I verified the following interfaces: CSSStyleDeclaration.webidl ElementCSSInlineStyle.webidl ElementContentEditable.webidl EventHandler.webidl Screen.webidl StyleSheetList.webidl StyleSheet.webidl Client.webidl --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #12415 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15289) <!-- Reviewable:end -->
| * Expose interfaces only where they should be. #12415 - Partialmontrivo2017-01-291-1/+1
| |
* | Convert text-orientation to a Gecko-only propertyMatt Brubeck2017-01-271-2/+2
|/ | | | | | Remove incomplete and buggy support for text-orientation in Servo. Make the property values align with Gecko and the latest draft of CSS Writing Modes Level 3.
* Make background-position a shorthand instead of a longhandNazım Can Altınova2016-12-151-0/+4
|
* Support offset- logical propertiesManish Goregaokar2016-11-291-0/+8
|
* Unexpose CSSOM interfacesManish Goregaokar2016-11-151-1/+1
|
* Add support for inline-size, block-size, and max-*-size/min-*-sizeManish Goregaokar2016-11-111-0/+12
|
* Add logical padding, margin longhands and border shorthandsManish Goregaokar2016-11-111-0/+24
|
* Support logical propertiesManish Goregaokar2016-11-111-0/+25
|
* Explicitly expose everything everywhere.Ms2ger2016-07-121-0/+1
|
* style: Add support to the animation shorthand and fix parsing of animation-name.Emilio Cobos Álvarez2016-07-071-0/+1
|
* Support flexbox shorthand propertiesPu Xingyu2016-06-301-0/+3
| | | | | | | | Support the `flex` and `flex-flow` shorthand properties in servo. Currently they are marked as experimental, so they are added to '__dir__.ini'. Thanks SimonSapin and jdm for help :)
* style: parse the remaining animation longhands.Emilio Cobos Álvarez2016-06-281-0/+8
|
* style: Add animation-iteration-count parsing under experimental flagEmilio Cobos Álvarez2016-06-281-0/+2
|
* style: Add animation-timing-function parsing as experimental.Emilio Cobos Álvarez2016-06-281-0/+2
|
* style: Add animation-duration parsing under experimental flagEmilio Cobos Álvarez2016-06-281-0/+2
|
* style: Refactor to pass animations cleanly, land animation-name parsing as ↵Emilio Cobos Álvarez2016-06-281-0/+3
| | | | experimental
* Auto merge of #11428 - g-k:csstext, r=SimonSapinbors-servo2016-06-011-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | csstext - [x] These changes fix #4431. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` reports one error for the `css_properties_accessors!` macro not having a spec link ``` $ git log -1 --format=oneline 91fb9bf1d388c3ede304a5d649dd21fe975787b0 fixup! implement cssText $ ./mach build -d Compiling style v0.0.1 (file:///Users/greg/servo/components/style) Compiling gfx v0.0.1 (file:///Users/greg/servo/components/gfx) Compiling script v0.0.1 (file:///Users/greg/servo/components/script) Compiling layout_traits v0.0.1 (file:///Users/greg/servo/components/layout_traits) Compiling compositing v0.0.1 (file:///Users/greg/servo/components/compositing) Compiling glutin_app v0.0.1 (file:///Users/greg/servo/ports/glutin) Compiling constellation v0.0.1 (file:///Users/greg/servo/components/constellation) Compiling layout v0.0.1 (file:///Users/greg/servo/components/layout) Compiling servo v0.0.1 (file:///Users/greg/servo/components/servo) Build completed in 0:05:11.475584 $ ./mach test-tidy --faster Checking files for tidiness... ./components/script/dom/cssstyledeclaration.rs:386: method declared in webidl is missing a comment with a specification link Progress: 100% (12/12) ``` - [x] There are tests for these changes. More CSSOM tests pass, but others fail that probably shouldn't: * `./mach test-css tests/wpt/css-tests/cssom-1_dev/html/index-002.htm` and a bunch of the other tests in `/css-tests/cssom-1_dev/html/ crash when run individually * `./mach test-css tests/wpt/css-tests/cssom-1_dev/html/cssom-cssText-serialize.htm` fails to strip a trailing semicolon (`left: 10px` vs `left: 10px;`) * `./mach test-css tests/wpt/css-tests/cssom-1_dev/html/index-001.htm` shared shorthand values aren't coalesced (`margin: 20px` vs. `margin: 20px 20px 20px 20px`) * `./mach test-css tests/wpt/css-tests/cssom-1_dev/html/cssstyledeclaration-csstext.htm` also crashes and fails for `color: red;` vs. `color: RED;`, preserving declaration insertion order, whitespace in the value, and setting an unknown style property. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11428) <!-- Reviewable:end -->
| * implement cssTextGlenn Watson2016-05-311-2/+2
| |
* | Add remaining longhand flexbox style propertiesPu Xingyu2016-05-251-1/+15
|/ | | | | | | | | | Add the remaining longhand CSS properties of flexbox for servo, including `flex-wrap`, `flex-grow`, `flex-shrink`, `justify-content`, `align-items`, `align-self` and `align-content`. tests for the remaining longhand properties are also enabled. Test for default value of `align-self` is modified because the new default value for this property is "auto" is current flexbox CR.
* Add style property for flex-basisDaniel Robertson2016-04-241-0/+2
| | | | | Add the style property for flex-basis. The property should allow all values acceptable for `width`|`height` with the addition of `content`.
* Implement flexbox reorderingDaniel Robertson2016-04-111-0/+1
| | | | | Add style property for order and implement reordering by this property in flex flow. Based on previous work by @zentner-kyle.
* Add dashed CSS properties to CSSStyleDeclaration.Josh Matthews2015-08-281-0/+104
|
* Parse flex-direction CSS property.Kyle Zentner2015-08-211-0/+2
|
* Make CSSStyleDeclaration setters rethrow errors instead of unwrapping and ↵David Zbarsky2015-08-111-161/+161
| | | | crashing.
* Implement the unicode-bidi propertyMatt Brubeck2015-08-031-0/+1
|
* Add/format license headers for WebIDLsCorey Farwell2015-07-261-3/+3
|
* Implement enough of 3d transforms spec to run the CSS FPS demo.Glenn Watson2015-06-231-0/+4
|
* Implement 'background-clip' property in CSS3 BackgroundJinwoo Song2015-05-161-0/+1
| | | | | | | | | This property determines the background painting area, which determines the area within which the background is painted. Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-clip Fixes #6066.
* Implement 'background-origin' property in CSS3 BackgroundJinwoo Song2015-05-151-0/+1
| | | | | | | | | | | This property determines the background positioning area, that is the position of the origin of an image specified using the 'background-image' CSS property. 'background-origin' is ignored when background-attachment is fixed. Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-origin Fixes #6045.
* Add column-width, column-count, columns and column-gap properties in the ↵Simon Sapin2015-04-291-0/+5
| | | | style system.
* layout: Implement most of `border-collapse` per CSS 2.1 § 17.6.2.Patrick Walton2015-04-271-1/+1
| | | | | | | | | | | | | | | | Known issues: * Collapsed borders do not correctly affect the border-box of the table itself. * The content widths of all cells in a column and the content height of all cells in a row is the same in this patch, but not in Gecko and WebKit. * Corners are not painted well. The spec does not say what to do here. * Column spans are not handled well. The spec does not say what to do here either.
* Implement CSSStyleDeclaration.float (fixes #5101)Anthony Ramine2015-04-211-1/+1
| | | | It just needs to be prefixed by an underscore.
* layout: Implement CSS transitions per CSS-TRANSITIONS § 2.Patrick Walton2015-03-311-0/+6
| | | | | | | | Transition events are not yet supported, and the only animatable properties are `top`, `right`, `bottom`, and `left`. However, all other features of transitions are supported. There are no automated tests at present because I'm not sure how best to test it, but three manual tests are included.
* layout: Implement 2D CSS transforms per CSS-TRANSFORMS § 5, 6, 7, and 8.Patrick Walton2015-03-171-0/+3
|
* layout: Implement `border-spacing` per CSS 2.1 § 17.6.1 and the legacyPatrick Walton2015-03-121-0/+2
| | | | | | | | | | | | | | | | | `cellspacing` attribute per HTML5 § 14.3.9. Table layout code has been refactored to push the spacing down to rowgroups and rows; this will aid the implementation of `border-collapse` as well. This commit also fixes two nasty issues in table layout: * In fixed layout, extra space would not be divided among columns that had auto width but had nonzero minimum width. * In automatic layout, extra space would be distributed to constrained columns as well even if unconstrained columns with percentage equal to zero were present.
* layout: Implement ordered lists, CSS counters, and `quotes` per CSS 2.1Patrick Walton2015-03-091-0/+5
| | | | | | | | | | | | | | § 12.3-12.5. Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases.
* Revert "layout: Implement ordered lists, CSS counters, and `quotes` per CSS 2.1"Simon Sapin2015-03-031-5/+0
| | | | This reverts commit 30fd28d1077fbb3f47140f6ab1252c0d24f44d23.
* auto merge of #5133 : servo/servo/background-size, r=SimonSapinbors-servo2015-03-031-0/+3
|\ | | | | | | | | | | | | | | | | | | | | `background-size` per CSS-BACKGROUNDS § 3.9. Nearest neighbor interpolation is used for `crisp-edges`, like Firefox. A note has been added that we could do better if we wanted to. Multiple backgrounds are not yet supported. Rebase of #4368. Fixes #4368.
| * layout: Implement `image-rendering` per CSS-IMAGES-3 § 5.3 andPatrick Walton2015-03-031-0/+3
| | | | | | | | | | | | | | | | | | `background-size` per CSS-BACKGROUNDS § 3.9. Nearest neighbor interpolation is used for `crisp-edges`, like Firefox. A note has been added that we could do better if we wanted to. Multiple backgrounds are not yet supported.
* | auto merge of #5067 : servo/servo/counters, r=SimonSapinbors-servo2015-03-031-0/+5
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases. Moved from #4544, because Critic. Fixes #4544.
| * layout: Implement ordered lists, CSS counters, and `quotes` per CSS 2.1Patrick Walton2015-03-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | § 12.3-12.5. Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases.
* | layout: Implement `overflow-x` and `overflow-y` per CSS-OVERFLOW § 3.Patrick Walton2015-03-031-0/+2
|/ | | | Fragmentation is not yet supported.
* layout: Implement `text-shadow` per CSS-TEXT-DECORATION-3 § 4.Patrick Walton2015-03-021-0/+1
|
* layout: Implement `text-align: justify` and `text-justify` perPatrick Walton2015-01-291-0/+1
| | | | | | | | | | | CSS-TEXT-3 § 7.3. `text-justify: distribute` is not supported. The behavior of `text-justify: none` does not seem to match what Firefox and Chrome do, but it seems to match the spec. Closes #213.
* auto merge of #4592 : pcwalton/servo/text-overflow, r=mbrubeckbors-servo2015-01-281-0/+1
|\ | | | | | | | | | | Only the one-value syntax is supported for now. r? @mbrubeck