Automatic update from web-platform-tests
[cssom] getComputedStyle not getComputedValue (#17799)
Fix typo in test titles.
--
wpt-commits: 9daa6ffd6eb28afb0940b7ac304b08e8383fc527
wpt-pr: 17799
Automatic update from web-platform-tests
[css-transforms] Avoid using assert_own_property on style property. (#17778)
These `assert_own_property` tests cause these CSS tests to fail on Firefox
only, and I think these properties are not supposted to be own properties,
so use a similar way as https://github.com/web-platform-tests/wpt/pull/16892,
to test the existence of these properties.
--
wpt-commits: 47543ee66eb535b6910292f199f3b789bec263f0
wpt-pr: 17778
Automatic update from web-platform-tests
Fix decision of whether to drop y value for 2d translate
Spec requires dropping y value for 2d translate if it's zero (*). The
current implementation contains bug that:
1. It rounds the value before checking, which results in incorrect
dropping of '0.1px'
2. It calls DoubleValue() on calc() without type checking, while
DoubleValue() on calc() is meaningless when the calc() doesn't
resolve to a simple numeric value (e.g., 1px - 1%). This results in
incorrect dropping of some calc().
Both are fixed by this patch.
This is also a preparation for adding DCHECK in DoubleValue() to ensure
that it's called only when calc() can be resolved into a simple numeric
value.
Bug: 979895
Change-Id: Ie8b846729b91e55006485a25fab0b65533983eac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1692202
Reviewed-by: Anders Hartvoll Ruud <[email protected]>
Commit-Queue: Xiaocheng Hu <[email protected]>
Cr-Commit-Position: refs/heads/master@{#675708}
--
wpt-commits: d947446c473a627ee68835eab7dcb928d85488bd
wpt-pr: 17684
Automatic update from web-platform-tests
Load Ahem as a webfont everywhere (part 2) (#17173)
This change updates a large number of reftests to link to the
`/fonts/ahem.css` stylesheet. Each file contains a single additional
line before the first `<style>` element:
```
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
```
--
wp5At-commits: 9c780585758acf5e9ac6d17ad9bd03c83404c7e6
wpt-pr: 17173
Automatic update from web-platform-tests
[css-transforms] backface-visibility parsing (#15288)
Test that backface-visibility accepts the grammar
'visible | hidden', with computed values as specified.
https://drafts.csswg.org/css-transforms-2/#backface-visibility-property
Co-authored-by: Eric Willigers <[email protected]>
--
wp5At-commits: 717f9e90d725bb329dadf744631f5a5350507a7d
wpt-pr: 15288
Automatic update from web-platform-tests
Fix anti-aliasing artifacts in scale tests.
Update test pattern for transform3d scale tests to address test failures due to font anti-aliasing.
Bug: 753080
Change-Id: Ic0afcd60fd0fdb740049043d38e45c631f7a2f5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553305
Reviewed-by: Stephen Chenney <[email protected]>
Commit-Queue: Kevin Ellis <[email protected]>
Cr-Commit-Position: refs/heads/master@{#647879}
--
wpt-commits: 055bf244474e8b0f0302555f41d9723e34dfde19
wpt-pr: 16263
Automatic update from web-platform-tests
Remove inactive reviewers (#14798)
This removes reviewers who have had more than three review requests in
the past year but who haven't reviewed anything.
Adds a few extra reviewers based on discussions in the PR thread
looking for reviewers for directories that otherwise would've ended up
with none.
--
wpt-commits: a5f707c18b3d893a6e332994064911c2f11e800d
wpt-pr: 14798
Automatic update from web-platform-tests
Move some references out of support directories
See #5843
--
Get rid of reftest/, standardize on reference/
--
Rewrite a lot of the border-*-radius tests
These previously formed reftest cycles which means they either
didn't get run or didn't clearly test either thing.
Given what we have visual tests for, it seems more meaningful to
just restrict these tests to testing percentages.
Fixes https://github.com/web-platform-tests/wpt/issues/5492.
--
Give css/css-backgrounds/border-image-6.html a real ref
The current ref is just an image of roughly what it should look
like, which isn't at all useful as a reftest (which needs
pixel-for-pixel equivalence).
--
Get rid of broken reftest, replaced with simple JS test
Using an image as a reference is almost certain to never work.
--
Make various transform3d tests have sane reference graphs
These seem to have been written under the assumption that multiple
<link rel=match> links formed multiple required matches rather than
alternates.
--
Fix text-indent-wrap-001 to have a single reference
This seems to have assumed multiple refs were AND, not OR.
--
wpt-commits: 8d2a5d9ee6e10577da1342bedc1d64bba9799e94, 29f50c937e8be8ccf73dbb8b8e74f0668a1cd426, b855a6d58fa3d9cf36b128e645091e8dd6d50464, 74c9fbb2d655638bc4079636dfc420bde4d94c6c, 8f61bf97d0ab9e47081f4dd068c0f7e72dabb862, b26ec10a9e9d769a20e9959bb90d1ec904f458e8, 7748ad90a13a51a3f74436295869b2f253f98e8a
wpt-pr: 15523
Automatic update from web-platform-tests
Move some references out of support directories
See #5843
--
Get rid of reftest/, standardize on reference/
--
Rewrite a lot of the border-*-radius tests
These previously formed reftest cycles which means they either
didn't get run or didn't clearly test either thing.
Given what we have visual tests for, it seems more meaningful to
just restrict these tests to testing percentages.
Fixes https://github.com/web-platform-tests/wpt/issues/5492.
--
Give css/css-backgrounds/border-image-6.html a real ref
The current ref is just an image of roughly what it should look
like, which isn't at all useful as a reftest (which needs
pixel-for-pixel equivalence).
--
Get rid of broken reftest, replaced with simple JS test
Using an image as a reference is almost certain to never work.
--
Make various transform3d tests have sane reference graphs
These seem to have been written under the assumption that multiple
<link rel=match> links formed multiple required matches rather than
alternates.
--
Fix text-indent-wrap-001 to have a single reference
This seems to have assumed multiple refs were AND, not OR.
--
wpt-commits: 8d2a5d9ee6e10577da1342bedc1d64bba9799e94, 29f50c937e8be8ccf73dbb8b8e74f0668a1cd426, b855a6d58fa3d9cf36b128e645091e8dd6d50464, 74c9fbb2d655638bc4079636dfc420bde4d94c6c, 8f61bf97d0ab9e47081f4dd068c0f7e72dabb862, b26ec10a9e9d769a20e9959bb90d1ec904f458e8, 7748ad90a13a51a3f74436295869b2f253f98e8a
wpt-pr: 15523
This may or may not be part of the plan to get rid of nsCSSValue ;)
Option is not usable via FFI, and they should not be needed (we should be
following the shortest serialization principle instead). These patches also do
that, which matches the other transform properties. I think that slight change
is fine, if we can make it work, and consistent with other properties.
Alternative is adding more TransformOperation variants or such, which I rather
not do.
Differential Revision: https://phabricator.services.mozilla.com/D21862
Automatic update from web-platform-tests
Fix canonical form of rotate property.
Expected behavior is outlined in the spec here:
https://drafts.csswg.org/css-transforms-2/#individual-transform-serialization.
Summary:
* 2d serializes to just an angle.
* Axis must be specified for 3-D rotations. If the axis is parallel to the x, y or z axis, the appropriate axis name must be used.
Bug: 905274
Change-Id: I5d16f3301baf9720099e4b5b42a1b87077b97998
Reviewed-on: https://chromium-review.googlesource.com/c/1447844
Commit-Queue: Kevin Ellis <[email protected]>
Reviewed-by: Anders Hartvoll Ruud <[email protected]>
Cr-Commit-Position: refs/heads/master@{#630796}
--
wpt-commits: a01ac89be3f48fa64bd96d36ac1a65ac9074eb4f
wpt-pr: 15205
Automatic update from web-platform-tests
Fix edge cases for interpolation of rotation transforms.
* Allow blending of rotations around different axis.
* Handles interpolation of rotation transforms with misaligned axes, but where one of the rotation angles is zero. By spec, this should used the axis associated with the non-zero axis.
* Cleanup handling of rotation around a common axis.
See https://drafts.csswg.org/css-transforms-2/#interpolation-of-transform-functions.
Bug: 897358
Change-Id: Ifc01754927c254300670df5016bce929df8314d6
Reviewed-on: https://chromium-review.googlesource.com/c/1435711
Reviewed-by: Ian Vollick <[email protected]>
Reviewed-by: Stephen McGruer <[email protected]>
Commit-Queue: Kevin Ellis <[email protected]>
Cr-Commit-Position: refs/heads/master@{#628047}
--
wpt-commits: ec0c466f7149fc0d65cacc4dc78755710310930d
wpt-pr: 15136
Automatic update from web-platform-tests
[PE] Set GraphicsLayerUpdate bits on the enclosing stacking composited layer.
This ensures that we will paper over any confusions regarding non-stacking
composited layers such as as those created by backface-visibility: hidden.
Setting the bit on the enclosing stacking layer suffices because any
other composited layer must be a stacking child of it, and the
kGraphicsLayerUpdateSubtree is used.
Bug: 916077
Change-Id: I695f9b7a6700e1bed3bc55034916b200a1d7849e
Reviewed-on: https://chromium-review.googlesource.com/c/1394187
Reviewed-by: Xianzhu Wang <[email protected]>
Commit-Queue: Chris Harrelson <[email protected]>
Cr-Commit-Position: refs/heads/master@{#619787}
--
wpt-commits: 71e901cf4534417abfabe4d77a317817f5cc09db
wpt-pr: 14708
Automatic update from web-platform-tests
Augment set of WPT tests for interpolation of transform lists.
This patch improves test coverage for the interpolation of transform lists. Specifically, the new tests cover:
* mismatched list lengths with a partial prefix match
* mix of exact and primitive (e.g. scaleX & scaleY --> scale) matches
These new tests fail in Chrome without the patch (https://chromium-review.googlesource.com/c/chromium/src/+/1372025) to implement the algorithm outlined in transforms spec (https://drafts.csswg.org/css-transforms-1/#interpolation-of-transforms), but pass when tested in Firefox version 64.0.
Bug: 918643
Change-Id: I65bfe5b3c13c2fb33b3d2b926dc153135b140a63
Reviewed-on: https://chromium-review.googlesource.com/c/1393460
Reviewed-by: Ian Vollick <[email protected]>
Commit-Queue: Kevin Ellis <[email protected]>
Cr-Commit-Position: refs/heads/master@{#619635}
--
wpt-commits: 8141e09325b608c89aee0008d3bb9c69a47d5dc4
wpt-pr: 14695
Automatic update from web-platform-tests
Resolve computed 'transform-origin' for SVG elements
Make the local helper ReferenceBoxForTransform available via
ComputedStyleUtils and use it in TransformOrigin::CSSValueFromComp...
Replace usages of MinimumValueForLength with FloatValueForLength. This
matches what is done when resolving/applying transform in the general
case.
Also sink the common handling of the 'z' component out of the 'if'.
Bug: 740300
Change-Id: Id0e6cbcc85942ccc8cdb3f8ed86ecc6e7aaf492e
Reviewed-on: https://chromium-review.googlesource.com/c/1382434
Commit-Queue: Fredrik Söderquist <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Cr-Commit-Position: refs/heads/master@{#617548}
--
wpt-commits: d7187c159d00248ce98c7f8f56683c621769d4ad
wpt-pr: 14588
Automatic update from web-platform-tests
Resolve percentages in computed 'transform' for SVG elements
SVG (child; non-root) elements should resolve percentages in computed
'transform' values just like regular boxes.
Rename ComputeTransformReferenceBox to ComputeSVGTransformReferenceBox
(for clarity) and expose it for a wider audience. Make it apply the
effective zoom, since both clients require that.
Use ComputeSVGTransformReferenceBox in ComputedStyleUtils to compute the
reference box for the LayoutObject in question.
Bug: 915426
Change-Id: I5323056cc54ff07e0b3cf943f52a7210ea320c78
Reviewed-on: https://chromium-review.googlesource.com/c/1382433
Commit-Queue: Fredrik Söderquist <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Cr-Commit-Position: refs/heads/master@{#617515}
--
wpt-commits: fcc951244ac35c28eba01d73ad742e53fc5899e0
wpt-pr: 14587
Automatic update from web-platform-testsCSS: Serialize % before px in calc
https://drafts.csswg.org/css-values/#math-function-serialize-a-summation
Percentage should be serialized before dimensions with units
Also fix typo in WPTs svg/geometry/parsing/*-computed.svg
calc(50% + 60x) becomes calc(50% + 60px)
BUG=904805
Change-Id: I2ecb732564c405f9315a1ef06e5bd0777c407f19
Reviewed-on: https://chromium-review.googlesource.com/c/1341289
Reviewed-by: Rune Lillesveen <[email protected]>
Commit-Queue: Eric Willigers <[email protected]>
Cr-Commit-Position: refs/heads/master@{#609262}
--
wpt-commits: 6f90ad64b9f531ae835623e445a6010031a52aa7
wpt-pr: 14121
Automatic update from web-platform-testsImprove robustness of wpt animation interpolation tests.
This patch fixes the problem where subtle changes to numerical values in matrix interpolation cause mismatches in the expected results.
To address the issue:
* Styles are checked to see if they are of the form matrix(...) or matrix3d(...).
* If the style is a matrix, then arguments are rounded and the style is reconstructed.
Bug: 797472
Change-Id: I44d6e0ed13e24dc2ecfeeacbcd4809d6dcdb6465
Reviewed-on: https://chromium-review.googlesource.com/c/1337640
Reviewed-by: Xida Chen <[email protected]>
Commit-Queue: Kevin Ellis <[email protected]>
Cr-Commit-Position: refs/heads/master@{#608466}
--
wpt-commits: 794b7ee9292f09802cd41e41a04be420b1d7bec3
wpt-pr: 14080
Automatic update from web-platform-testsImprove robustness of wpt animation interpolation tests.
This patch fixes the problem where subtle changes to numerical values in matrix interpolation cause mismatches in the expected results.
To address the issue:
* Styles are checked to see if they are of the form matrix(...) or matrix3d(...).
* If the style is a matrix, then arguments are rounded and the style is reconstructed.
Bug: 797472
Change-Id: I44d6e0ed13e24dc2ecfeeacbcd4809d6dcdb6465
Reviewed-on: https://chromium-review.googlesource.com/c/1337640
Reviewed-by: Xida Chen <[email protected]>
Commit-Queue: Kevin Ellis <[email protected]>
Cr-Commit-Position: refs/heads/master@{#608466}
--
wpt-commits: 794b7ee9292f09802cd41e41a04be420b1d7bec3
wpt-pr: 14080
Basically, we rewrite the type of generics::transform::Translate and its
ToCss to match the spec. Besides, we always serialize Translate by servo,
so we could drop a lot of duplicated code.
Differential Revision: https://phabricator.services.mozilla.com/D11206
The current spec says: "If only the X value is given, the Y value
defaults to the same value.", so we should update the behavior.
Besides, we also update the serialization, so we serialization both
specified and computed value by servo. We enable the preference
for all the css-transforms, so some of them are passed now.
Differential Revision: https://phabricator.services.mozilla.com/D10638
Probably not the most reliable test to catch this (as it depends on
the font and such) but still fails here and I'd like WPT to have a test-case
for this. I'm looking into adding a WR test-case ATM, though fighting with
it way too much.
Differential Revision: https://phabricator.services.mozilla.com/D8438
When we're creating a scrollframe with let's say, display: flex or grid, the
containing block is the grid container itself, but the transformed frame is the
scroll frame.
This is the only caller that (incorrectly) passes the same frame to
PushAbsoluteContainingBlock.
Our painting code deals with it, mostly, because it starts from the placeholder
to paint fixed items, and it hits the scrollframe, but it gets confused
sometimes causing the issue described here.
I'll find a way to add a crashtest for this, and maybe a reftest, though this
works in non-WR.
We should probably add a few more assertions to the frame constructor...
Differential Revision: https://phabricator.services.mozilla.com/D8724
Probably not the most reliable test to catch this (as it depends on
the font and such) but still fails here and I'd like WPT to have a test-case
for this. I'm looking into adding a WR test-case ATM, though fighting with
it way too much.
Differential Revision: https://phabricator.services.mozilla.com/D8438
In the button case we have a ::-moz-button-content pseudo-element, but this is
also an issue for tables and such.
These are supposed to be implementation details, so avoid looking at them for
preserve-3d.
I don't know how I didn't think of this on the regressing bug.
Differential Revision: https://phabricator.services.mozilla.com/D6131
In the button case we have a ::-moz-button-content pseudo-element, but this is
also an issue for tables and such.
These are supposed to be implementation details, so avoid looking at them for
preserve-3d.
I don't know how I didn't think of this on the regressing bug.
Differential Revision: https://phabricator.services.mozilla.com/D6131
In the button case we have a ::-moz-button-content pseudo-element, but this is
also an issue for tables and such.
These are supposed to be implementation details, so avoid looking at them for
preserve-3d.
I don't know how I didn't think of this on the regressing bug.
Differential Revision: https://phabricator.services.mozilla.com/D6131