servo/components/style/values/computed
Emilio Cobos Álvarez 6dcf9b7630
style: Use decomposition to interpolate matched perspective transform operations.
Looks like this produces sensible results for interpolation with 0, though I'm
not really convinced about the results from, let's say, 1px to 2000px in the
attached test-case, I would've expected a linear interpolation from that to go
through normal length interpolation.

css-transforms-1 says:

  > Two transform functions with the same name and the same number of arguments
  > are interpolated numerically without a former conversion. The calculated
  > value will be of the same transform function type with the same number of
  > arguments.
  >
  > Special rules apply to <matrix()>.

Which is what we do... I was going to file a spec issue but turns out that it's
already addressed in css-transforms-2:

  https://drafts.csswg.org/css-transforms-2/#interpolation-of-transform-functions

Which says:

  > The transform functions <matrix()>, matrix3d() and perspective() get
  > converted into 4x4 matrices first and interpolated as defined in section
  > Interpolation of Matrices afterwards.

Differential Revision: https://phabricator.services.mozilla.com/D4942
2018-09-05 19:11:26 +02:00
..
align.rs style: Rename justify-items: auto to legacy. 2018-04-28 10:25:58 +02:00
angle.rs style: Fix clamping on animations for fort-style. 2018-04-28 10:26:06 +02:00
background.rs style: Refactor vector types. 2018-05-28 15:37:28 +02:00
basic_shape.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
border.rs style: Serialize clip-path and shape-outside using Servo. 2018-09-03 12:30:57 +02:00
box.rs style: Implement flow-relative values for resize property. 2018-08-18 17:47:51 +02:00
color.rs style: Extract {animated,computed}::Color common parts. 2018-06-12 12:15:15 -07:00
column.rs Replace PositiveIntegerOrAuto by ColumnCount 2018-02-22 10:16:46 +01:00
counters.rs style: Distinguish between specified and computed URLs. 2018-05-19 10:15:17 +02:00
effects.rs style: Change nscolor to StyleComplexColor in nsCSSShadowItem. 2018-07-01 00:03:11 +02:00
flex.rs style: Add support for 'flex-basis:content' in the style system. 2018-04-02 03:17:56 +02:00
font.rs style: Use a static atom instead of a dynamic one. 2018-05-28 15:39:06 +02:00
gecko.rs Use generics for scroll-snap-points-* 2017-06-06 19:27:43 +02:00
image.rs style: Change nscolor to StyleComplexColor in nsStyleGradientStop. 2018-06-18 19:15:28 +02:00
length.rs Update dependencies to use new_debug_unrechable 2018-06-06 08:54:51 -07:00
list.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
mod.rs style: Define offset-path and implement it in style system. 2018-09-03 12:30:21 +02:00
motion.rs style: Define offset-path and implement it in style system. 2018-09-03 12:30:21 +02:00
outline.rs style: Move outline-style outside of mako 2017-12-13 11:41:59 +08:00
percentage.rs style: Refactor vector types. 2018-05-28 15:37:28 +02:00
position.rs Replace IntegerOrAuto with ZIndex 2018-02-20 15:18:22 +01:00
rect.rs Introduce style::values::generics::rect ▭ 2017-05-23 10:59:57 +02:00
resolution.rs style: Make webkit device-pixel-ratio media queries a proper alias to resolution. 2018-08-18 17:54:54 +02:00
svg.rs style: Change nscolor to StyleComplexColor. 2018-07-16 19:43:50 +02:00
table.rs Move table -x-span outisde of mako 2017-10-27 01:09:57 -05:00
text.rs style: Make StyleStruct.name_lower snake case. 2018-06-23 20:35:49 +02:00
time.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
transform.rs style: Use decomposition to interpolate matched perspective transform operations. 2018-09-05 19:11:26 +02:00
ui.rs style: Rename CaretColor to ColorOrAuto for reusing. 2018-05-28 15:36:55 +02:00
url.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00