-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-typed-om] Add support for marker properties.
This patch adds support for marker, marker-start, marker-end, marker-mid We also had to add a new CSS data type <url>, but because it's not spec'd yet, we can't really test it. Bug: 820299 Change-Id: Ie3f851be3d65396705594d99582ac3e87e3fc57d
- Loading branch information
1 parent
383fd73
commit 11bd20e
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
css/css-typed-om/the-stylepropertymap/properties/marker.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>'marker-*' properties</title> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../../resources/testhelper.js"></script> | ||
<script src="resources/testsuite.js"></script> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
runUnsupportedPropertyTests('marker', [ | ||
'none', 'url(#m1)' | ||
]); | ||
|
||
for (const suffix of ['start', 'mid', 'end']) { | ||
runPropertyTests(`marker-${suffix}`, [ | ||
{ syntax: 'none' }, | ||
{ syntax: '<url>' }, | ||
]); | ||
} | ||
|
||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters