Closed Bug 1993311 Opened 2 months ago Closed 7 days ago

shape() commands hline and vline have overpermissive parsing

Categories

(Core :: Layout: Floats, defect)

defect
Points:
1

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
firefox147 --- fixed

People

(Reporter: sukil, Assigned: sukil)

References

(Blocks 1 open bug)

Details

(Whiteboard: css-shape-function, [wptsync upstream])

Attachments

(1 file)

Based off Bug 1917128, it improves hline and vline parsing to allow <position> values to be parsed. However, the parse_to_position method used can incorrectly accept 2 offsets for hline or vline. For example: hline to left 30% will work.

Furthermore, hline and vline currently does not accept x-start/x-end and y-start/y-end respectively, though it should based off spec.

Addendum: Relevant tests to run. Also our <position> parsing is also too permissive, so this specific invalid test is parsed.

Blocks: css-shapes-1
Severity: -- → S3
Points: --- → 1
Assignee: nobody → sukil
Status: NEW → ASSIGNED
Pushed by sukil@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8257df91aa31 https://hg.mozilla.org/integration/autoland/rev/a1346e39038a Update hline and vline command parsing to support <position> values. r=boris,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,longsonr
Status: ASSIGNED → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/56450 for changes under testing/web-platform/tests
Whiteboard: css-shape-function → css-shape-function, [wptsync upstream]
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: