web-platform-tests / interop

web-platform-tests Interop project
https://wpt.fyi/interop
316 stars 28 forks source link

Unprefixed `text-decoration` #724

Open BenjaminAster opened 1 month ago

BenjaminAster commented 1 month ago

Description

The text-decoration CSS property still needs a -webkit- prefix in WebKit when specifying multiple values in the shorthand.

There exists an open pull request for WebKit, and the implementation seems to already match the spec pretty well (?). (see bug)


This issue is one of seven issues regarding unprefixing CSS properties/values, originally all in #702 (as per https://github.com/web-platform-tests/interop/issues/702#issuecomment-2358173009). The aim is to group the properties together into multiple (but not seven) focus areas.

Specification

https://drafts.csswg.org/css-text-decor-4/#text-decoration-property

Additional Signals

No response

romainmenke commented 1 month ago

This specific property is especially annoying because it became a shorthand.

text-decoration: underline also resets text-decoration-color to the initial value, but only in browsers that have been updated. -webkit-text-decoration does behave as a shorthand.

Relevant WPT tests: https://wpt.fyi/results/css/css-text-decor?label=master&label=experimental&aligned&q=text-decoration

kojiishi commented 1 week ago

Since this topic is talking about the text-decoration shorthand, shouldn't the relevant WPT tests be: https://wpt.fyi/results/css/css-text-decor/parsing?label=experimental&label=master&aligned&q=text-decoration ?

romainmenke commented 1 week ago

Thank you @kojiishi Yes, seems correct