Skip to content

Instantly share code, notes, and snippets.

@pyfisch
Last active January 21, 2018 15:36
Show Gist options
  • Save pyfisch/29af74e0ebffc2d6287ef806143c3cd4 to your computer and use it in GitHub Desktop.
Save pyfisch/29af74e0ebffc2d6287ef806143c3cd4 to your computer and use it in GitHub Desktop.
// Display List from Epoch(1)
((0, 1), (600, 400), [
(
item: PushStackingContext((
stacking_context: (
scroll_policy: Scrollable,
transform: None,
transform_style: Flat,
perspective: None,
mix_blend_mode: Normal,
),
), [
]),
clip_and_scroll: (
scroll_node_id: Clip(0, (0, 1)),
clip_node_id: None,
),
info: (
rect: ((0, 0), (600, 400)),
local_clip: Rect(((0, 0), (600, 400))),
is_backface_visible: true,
tag: None,
),
),
(
item: Gradient((
gradient: (
start_point: (50, 350),
end_point: (92.42656, 307.57343),
extend_mode: Repeat,
),
tile_size: (500, 300),
tile_spacing: (0, 0),
)),
clip_and_scroll: (
scroll_node_id: Clip(0, (0, 1)),
clip_node_id: None,
),
info: (
rect: ((8, 8), (500, 300)),
local_clip: Rect(((8, 8), (500, 300))),
is_backface_visible: true,
tag: Some((140704833720912, 1)),
),
),
(
item: PopStackingContext,
clip_and_scroll: (
scroll_node_id: Clip(0, (0, 1)),
clip_node_id: None,
),
info: (
rect: ((0, 0), (0, 0)),
local_clip: Rect(((0, 0), (0, 0))),
is_backface_visible: true,
tag: None,
),
),
])
<!doctype html>
<style>
div {
width: 500px;
height: 300px;
background-image: repeating-linear-gradient(45deg, red, green, blue 60px);
}
</style>
<div></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment