Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
Binary file removed tests/style/inheritance/self/ref/1.png
Diff not rendered.
56 changes: 0 additions & 56 deletions tests/style/inheritance/self/test.typ

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,56 @@
set-style(stroke: "wrong-value")
assert-style-eq("stroke", "base", root: "my-root", base: (stroke: "base"))
})

#test-case({
import draw: *

let next(body) = {
translate((0,-.2,0))
group(body)
}

next({
line((0,0), (1,0))
})
next({
set-style(stroke: blue)
line((0,0), (1,0))
})
next({
line((0,0), (1,0), stroke: blue)
})
next({
// Blue arrow
set-style(stroke: blue)
line((0,0), (1,0), mark: (end: ">"))
})
next({
// Blue arrow
line((0,0), (1,0), mark: (end: ">"), stroke: blue)
})
next({
// Blue + Green arrow head
line((0,0), (1,0), mark: (end: ">", stroke: green), stroke: blue)
})
next({
// Blue + Yellow arrow head
set-style(mark: (stroke: yellow))
line((0,0), (1,0), mark: (end: ">"), stroke: blue)
})
next({
// Blue + Green arrow head
set-style(mark: (stroke: yellow), stroke: red)
line((0,0), (1,0), mark: (end: ">", stroke: green), stroke: blue)
})
next({
// Blue + Yellow/Green arrow head
set-style(mark: (stroke: yellow, fill: auto), stroke: blue, fill: blue)
line((0,0), (1,0), mark: (end: ">"), fill: green, stroke: green)
})
next({
// Blue arrow
set-style(stroke: red)
line((0,0), (1,0), mark: (end: ">"), stroke: blue)
})
})
Loading