Lines Matching refs:background

22  * Process background attribute
29 const BACKGROUND_COLOR = 'background-color';
36 const BACKGROUND_IMAGE = 'background-image';
37 const BACKGROUND_SIZE = "background-size";
38 const BACKGROUND_REPEAT = "background-repeat";
39 const BACKGROUND_POSITION = "background-position";
45 const CANONICAL = "background";
74 // Only one background was specified
75 $background = $backgrounds[0];
78 * We need to create a background node
82 !isset($background[TagAttributes::TRANSFORM]) &&
83 !isset($background[self::PATTERN_ATTRIBUTE])
87 * we put the background on the parent node
88 * because there is only one background
90 $backgroundImage = $background[self::BACKGROUND_IMAGE] ?? null;
94 $backgroundColor = $background[self::BACKGROUND_COLOR] ?? null;
98 $opacityAttribute = $background[Opacity::OPACITY_ATTRIBUTE] ?? null;
102 $backgroundPosition = $background[self::BACKGROUND_POSITION] ?? null;
106 $backgroundFill = $background[self::BACKGROUND_FILL] ?? null;
111 $backgroundTagAttribute = TagAttributes::createFromCallStackArray($background);
122 * More than one background
126 foreach ($backgrounds as $background) {
127 $backgroundTagAttribute = TagAttributes::createFromCallStackArray($background);
145 * Image background is set by the user
154 * Background-fill for background image
159 // it makes the background responsive
170 // background size is then "auto" (ie repeat), the default
171 // background position is not needed (the tile start on the left top corner)
184 LogUtility::msg("The background `fill` attribute ($backgroundFill) is unknown. If you want to take over the filling via css, set the `fill` value to `css`.", self::CANONICAL);
193 LogUtility::error("We could not create a background image. Error: {$e->getMessage()}");
200 LogUtility::internalError("The fetcher for the background image ($mediaMarkup) returns an error", self::CANONICAL, $e);
205 LogUtility::error("The background image ($mediaMarkup) is not an image but a $mime", self::CANONICAL);
211 LogUtility::msg("Internal Error: The background image value ($backgroundImageValue) is not a string nor an array", LogUtility::LVL_MSG_ERROR, self::CANONICAL);
226 * CSS: background-image: too few values for the property linear-gradient.
238 * This call should be before the processing of the background color
275 * Return a background array with background properties
343 LogUtility::msg("The background color was not set for the background with the (" . $pattern . "). It was set to the default color.", LogUtility::LVL_MSG_INFO, self::CANONICAL);
352 LogUtility::msg("The pattern color was not set for the background with the (" . $pattern . "). It was set to the default color.", LogUtility::LVL_MSG_INFO, self::CANONICAL);