Closed Bug 1601026 Opened 4 years ago Closed 4 years ago

Some WPT tests for ::marker use non-allowed properties

Categories

(Core :: Layout: Generated Content, Lists, and Counters, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: Oriol, Assigned: emilio)

Details

Attachments

(1 file)

See https://wpt.fyi/results/css/css-pseudo?label=master&label=experimental&aligned&q=marker-content%20firefox%3Afail

There are 4 WPT tests for ::marker that are failing:

  • marker-content-007.html
  • marker-content-008.html
  • marker-content-009.html
  • marker-content-011.html

That's because they use properties like writing-mode or display inside ::marker, which is not currently allowed by css-pseudo.

I understand that you may want to keep these tests since you have the layout.css.marker.restricted pref to lift the restriction.

But having these tests in WPT seems wrong. Can't you move them outside of WPT and make them Mozilla-internal? Or at least add "tentative" in the name or something.

They use properties like writing-mode or display inside ::marker, which is not
currently allowed by css-pseudo.

Assignee: nobody → emilio

I think these styling restrictions on ::marker should be removed. There are no technical reasons for why ::marker shouldn't accept everything that ::before/::after accepts (with a few exceptions like float/position on outside markers perhaps). I really don't understand why the CSSWG intentionally cripples a feature like this.

(In reply to Mats Palmgren (:mats) from comment #2)

I think these styling restrictions on ::marker should be removed. There are no technical reasons for why ::marker shouldn't accept everything that ::before/::after accepts (with a few exceptions like float/position on outside markers perhaps). I really don't understand why the CSSWG intentionally cripples a feature like this.

Well, without the restrictions it was easy to trigger assert failures in Chromium e.g. with display: none, so it's simpler this way :)
But I agree that it doesn't make much sense for inherited properties, since you can set them in the list item anyways...

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d0f38d2fd983
Mark some marker tests as tentative. r=Oriol
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/20599 for changes under testing/web-platform/tests

Commented there, not my issue.

Flags: needinfo?(emilio)

Well, without the restrictions it was easy to trigger assert failures in Chromium e.g. with display: none, so it's simpler this way :)

That's clearly a Chromium problem and not something that the CSSWG should care about when writing its standards. :-p

Upstream PR was closed without merging
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: