Skip to main content

parse_bg_repeat

Function parse_bg_repeat 

Source
pub(crate) fn parse_bg_repeat(v: Option<&str>) -> (BgRepeatMode, BgRepeatMode)
Expand description

background-repeat を解析。(repeat_x, repeat_y) を返す。未指定は (Repeat, Repeat)(CSS既定)。repeat-x/repeat-y は片軸 no-repeat のショートハンド。 <x> <y> の2値構文(例: repeat space, round no-repeat)にも対応する。