Commit Graph
3 Commits
Author SHA1 Message Date
Boris Chiou e0685c05c4 Bug 1578967 [wpt PR 18866] - [css-text-decor-4] Fix the expected serialization of text-decoration., a=testonly
Automatic update from web-platform-tests
[css-text-decor-4] Fix the expected serialization of text-decoration.

We add some test cases for `text-decoration-thickness` in `text-decoration`.

Conceptually the process of serializing a shorthand in getComputedStyle
should be something like:
 * Calling to_resolved_value() on all the values for the properties of the
   shorthand. This should turn the color as an rgb(a) thing, as colors are
   always serialized as resolved from getComputedStyle().
 * Going from the resolved value al the way to the specified value. This makes
   the color still an rgba color, not currentColor.
 * Serialize the same way we serialize specified shorthands.

So we always serizlize `text-decoration-color` because it is impossible to be
`currentColor`. For other keywords, if they are initial values, we omit them.

--
[css-text-decor-4] Fix text-decoration-serialization.tentative.html and variable-presentation-attribute.html.

text-decoration-serialization should be updated because we would like to
update the serialization of text-decoration.

variable-presentation-attribute.html tests CSS variable and SVG
presentation attributes. In SVG2, the text decoration is determined
respectively by the text-decoration-line and text-decoration-style, so we
test these two longhands instead, to avoid hitting the change of the
serialization of text-decoration.

--

wpt-commits: e401dc10f827102d7db16b46e9f4ec754da0fd39, 28cd992bac1b3d099f53be7126c3b19c8beb16aa
wpt-pr: 18866
2019-09-14 08:52:08 +00:00
longsonr f9487d9925 Bug 1353164 Part 1 - Remove dominant-baseline values that no longer exist r=heycam 2019-07-13 15:35:08 +01:00
James Graham ce3ea2f585 Bug 1419296 - Update web-platform-tests to fa27b785c62e67cc3a12201612db188c4fdd49ad, a=testonly
MozReview-Commit-ID: 4P631tX3vv4
2017-11-21 07:39:00 +00:00