Skip to content

Unprefix -webkit-box-decoration-break - #17007

Closed
karlcow wants to merge 1 commit into
WebKit:mainfrom
karlcow:229078-decoration-break
Closed

karlcow wants to merge 1 commit into
WebKit:mainfrom
karlcow:229078-decoration-break

Conversation

@karlcow

@karlcow karlcow commented Aug 24, 2023 •

Copy link
Copy Markdown
Member

b5ebfd1

Unprefix -webkit-box-decoration-break
https://bugs.webkit.org/show_bug.cgi?id=229078
rdar://82176202

Reviewed by NOBODY (OOPS!).

This is unprefixing -webkit-box-decoration-break. But it also keeps
-webkit-box-decoration-break as an alias, as there is a lot of usage
online with the prefixed version.
https://chromestatus.com/metrics/css/timeline/popularity/414
Probably an additional work would be to remove the prefixed version
from WPT tests and extends the tests if necessary.
web-platform-tests/interop#486

A series of tests related to css-break needs to be solved.
#17007 (comment)

But in most cases, this change doesn't affect the current rendering
of the pages. A lot of web developers are already using the two
unprefixed/prefixed combination on their sites. There are already
expecting the current behavior of the prefixed version.
We can find some web pages with only the unprefixed version. In this
case, this patch will improve the websites layout.

The fragmentation on two columns doesn't affect the layout in any
significant ways.

You can see experimental renderings with the unprefixed version on
#17007 (comment)

* LayoutTests/fast/box-decoration-break/box-decoration-break-parsing-expected.txt:
* LayoutTests/fast/box-decoration-break/box-decoration-break-parsing.html:
* LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt:
* LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* LayoutTests/fast/css/getComputedStyle/resources/property-names.js:
* LayoutTests/imported/w3c/web-platform-tests/css/css-break/inheritance-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-break/parsing/box-decoration-break-computed-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-break/parsing/box-decoration-break-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: Removed.
* LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: Removed.
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/svg/css/getComputedStyle-basic-expected.txt:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle const):
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::conservativelyCollectChangedAnimatableProperties const):
* Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js:

b5ebfd1

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ❌ 🧪 wpe-wk2 ✅ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 ❌ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress ✅ 🧪 api-gtk
✅ 🧪 vision-wk2 ✅ 🧪 mac-intel-wk2
✅ 🛠 tv ✅ 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@karlcow karlcow self-assigned this Aug 24, 2023
@karlcow karlcow added the CSS Cascading Style Sheets implementation label Aug 24, 2023
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Aug 24, 2023
@karlcow karlcow removed the merging-blocked Applied to prevent a change from being merged label Nov 29, 2023
@karlcow
karlcow force-pushed the 229078-decoration-break branch from c8ef899 to e1e04f6 Compare November 29, 2023 08:01
@karlcow
karlcow force-pushed the 229078-decoration-break branch from e1e04f6 to 1052717 Compare November 29, 2023 08:09
@karlcow

karlcow commented Nov 29, 2023

Copy link
Copy Markdown
Member Author

Once I get the tests right I need to adjust the commit message.

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 29, 2023
@karlcow karlcow removed the merging-blocked Applied to prevent a change from being merged label Nov 29, 2023
@karlcow
karlcow force-pushed the 229078-decoration-break branch from 1052717 to 5d1b74f Compare November 29, 2023 11:48
@karlcow

karlcow commented Nov 29, 2023

Copy link
Copy Markdown
Member Author

There is this comment too on WPT
web-platform-tests/interop#486 (comment)

@karlcow
karlcow force-pushed the 229078-decoration-break branch from 5d1b74f to 1fbf9aa Compare November 29, 2023 11:56
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 29, 2023
@karlcow karlcow removed the merging-blocked Applied to prevent a change from being merged label Nov 29, 2023
@karlcow
karlcow force-pushed the 229078-decoration-break branch from 1fbf9aa to 884248b Compare November 29, 2023 14:24
@karlcow
karlcow marked this pull request as ready for review November 29, 2023 14:46
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 29, 2023
@karlcow karlcow removed the merging-blocked Applied to prevent a change from being merged label Nov 29, 2023
@karlcow
karlcow force-pushed the 229078-decoration-break branch from 884248b to dc064e6 Compare November 29, 2023 22:26
@karlcow

karlcow commented Dec 4, 2024

Copy link
Copy Markdown
Member Author

This has not landed because WebKit needs support for support for paginated/columnated fragmentation.

@karlcow karlcow removed the merging-blocked Applied to prevent a change from being merged label Dec 4, 2024
@karlcow
karlcow force-pushed the 229078-decoration-break branch from 3da0a9d to f4bb3da Compare December 4, 2024 07:38
@karlcow

karlcow commented Dec 4, 2024

Copy link
Copy Markdown
Member Author

Most of the code on GitHub is using either the unprefixed version, or the two versions prefixed/unprefixed.

@karlcow

karlcow commented Dec 4, 2024

Copy link
Copy Markdown
Member Author

Rebasing to the current version of the code.

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Dec 4, 2024
@karlcow karlcow removed the merging-blocked Applied to prevent a change from being merged label Dec 4, 2024
@karlcow
karlcow force-pushed the 229078-decoration-break branch from f4bb3da to 6ebfe10 Compare December 4, 2024 12:07
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Dec 4, 2024
@smfr

smfr commented Dec 4, 2024

Copy link
Copy Markdown
Contributor

This is unprefixing -webkit-box-decoration-break. But it also keeps
-webkit-box-decoration-break as an alias, as there is a lot of usage
online with the prefixed version.

I want to see some words here about what's still broken and why it's OK to unprefix.

@karlcow

karlcow commented Dec 5, 2024

Copy link
Copy Markdown
Member Author

Pushing first a PR to see what is failing, Then I will amend the commit message for things which are still breaking.

@karlcow karlcow removed the merging-blocked Applied to prevent a change from being merged label Dec 5, 2024
@karlcow
karlcow force-pushed the 229078-decoration-break branch from 6ebfe10 to 22f9d68 Compare December 5, 2024 05:32
@karlcow

karlcow commented Dec 5, 2024

Copy link
Copy Markdown
Member Author

This will not fix for Safari only

https://wpt.fyi/results/css/css-break/box-decoration-break-clone-001.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-002.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-004.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-006.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-008.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-009.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-010.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-012.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-014.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-015.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-016.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-017.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-018.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-019.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-021.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-022.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-023.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-024.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-025.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-026.html

These are failing in Safari and Firefox, and they will not be fixed either.

https://wpt.fyi/results/css/css-break/box-decoration-break-clone-020.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-027.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-028.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-029.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-030.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-031.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-033.html
https://wpt.fyi/results/css/css-break/box-decoration-break-clone-034.html

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Dec 5, 2024
@karlcow

karlcow commented Dec 5, 2024

Copy link
Copy Markdown
Member Author

OK this should all be green. There were infra failures today.
I will amend the commit. and Will make another run.

@karlcow

karlcow commented Dec 5, 2024

Copy link
Copy Markdown
Member Author

From left to right. Rendering of text with only unprefixed box-decoration-break

  • STP 208
  • MiniBrowser with unprefixed
  • Firefox
  • Chrome

Screenshot 2024-12-05 at 21 17 59

In the simple case we can see that it doesn't create any issues. Quite the opposite for people who would not have added the prefix in their site.

@karlcow

karlcow commented Dec 5, 2024

Copy link
Copy Markdown
Member Author

And this is a similar text with the text fragmented on two columns.

Screenshot 2024-12-05 at 21 24 02

Unprefixing doesn't create major issues for the most common cases.

https://bugs.webkit.org/show_bug.cgi?id=229078
rdar://82176202

Reviewed by NOBODY (OOPS!).

This is unprefixing -webkit-box-decoration-break. But it also keeps
-webkit-box-decoration-break as an alias, as there is a lot of usage
online with the prefixed version.
https://chromestatus.com/metrics/css/timeline/popularity/414
Probably an additional work would be to remove the prefixed version
from WPT tests and extends the tests if necessary.
web-platform-tests/interop#486

A series of tests related to css-break needs to be solved.
WebKit#17007 (comment)

But in most cases, this change doesn't affect the current rendering
of the pages. A lot of web developers are already using the two
unprefixed/prefixed combination on their sites. There are already
expecting the current behavior of the prefixed version.
We can find some web pages with only the unprefixed version. In this
case, this patch will improve the websites layout.

The fragmentation on two columns doesn't affect the layout in any
significant ways.

You can see experimental renderings with the unprefixed version on
WebKit#17007 (comment)

* LayoutTests/fast/box-decoration-break/box-decoration-break-parsing-expected.txt:
* LayoutTests/fast/box-decoration-break/box-decoration-break-parsing.html:
* LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt:
* LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* LayoutTests/fast/css/getComputedStyle/resources/property-names.js:
* LayoutTests/imported/w3c/web-platform-tests/css/css-break/inheritance-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-break/parsing/box-decoration-break-computed-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-break/parsing/box-decoration-break-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: Removed.
* LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: Removed.
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/svg/css/getComputedStyle-basic-expected.txt:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle const):
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::conservativelyCollectChangedAnimatableProperties const):
* Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js:
@karlcow karlcow removed the merging-blocked Applied to prevent a change from being merged label Dec 5, 2024
@karlcow
karlcow force-pushed the 229078-decoration-break branch from 22f9d68 to b5ebfd1 Compare December 5, 2024 12:36
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Dec 5, 2024
@karlcow

karlcow commented Dec 5, 2024

Copy link
Copy Markdown
Member Author

Adding the rendering with a block element. being split on two columns

Screenshot 2024-12-06 at 07 13 30

@karlcow

karlcow commented Nov 7, 2025

Copy link
Copy Markdown
Member Author

@karlcow karlcow closed this Apr 13, 2026
@karlcow

karlcow commented Apr 13, 2026

Copy link
Copy Markdown
Member Author

Closing the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CSS Cascading Style Sheets implementation merging-blocked Applied to prevent a change from being merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants