Open Bug 1725696 Opened 3 years ago Updated 3 years ago

WPT test css/css-multicol/parsing/column-rule-valid.html fails because Firefox is too verbose when serializing `column-rule` shorthand (unnecessarily including default values of unset subproperties)

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

STR:

  1. Run the test https://wpt.live/css/css-multicol/parsing/column-rule-valid.html

ACTUAL RESULTS:
The test fails with these errors:

assert_equals: serialization should be canonical expected "10px" but got "10px none currentcolor"
assert_equals: serialization should be canonical expected "dotted" but got "medium dotted currentcolor"
assert_equals: serialization should be canonical expected "red" but got "medium none red"

EXPECTED RESULTS:
Test should pass; we should serialize using the shortest value, as the test expects.

Here are some simpler/reduced STR:
(1) View this testcase:

data:text/html,<div id="foo" style="column-rule: red"><script>alert(foo.style.columnRule)</script>

ACTUAL RESULTS:
The alert reports that the serialized style is "medium none red"

EXPECTED RESULTS:
Should report "red".

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.