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
6 changes: 6 additions & 0 deletions org/w3c/css/properties/CSS3Properties.properties
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,12 @@ caret-shape: org.w3c.css.properties.css3.CssCaretShap
aspect-ratio: org.w3c.css.properties.css3.CssAspectRatio
accent-color: org.w3c.css.properties.css3.CssAccentColor

contain-intrinsic-block-size: org.w3c.css.properties.css3.CssContainIntrinsicBlockSize
contain-intrinsic-height: org.w3c.css.properties.css3.CssContainIntrinsicHeight
contain-intrinsic-inline-size: org.w3c.css.properties.css3.CssContainIntrinsicInlineSize
contain-intrinsic-size: org.w3c.css.properties.css3.CssContainIntrinsicSize
contain-intrinsic-width: org.w3c.css.properties.css3.CssContainIntrinsicWidth

overflow-anchor: org.w3c.css.properties.css3.CssOverflowAnchor

word-spacing: org.w3c.css.properties.css3.CssWordSpacing
Expand Down
111 changes: 111 additions & 0 deletions org/w3c/css/properties/css/CssContainIntrinsicBlockSize.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
//
// Author: Yves Lafon <ylafon@w3.org>
//
// (c) COPYRIGHT W3C, 2026.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css;

import org.w3c.css.parser.CssStyle;
import org.w3c.css.properties.css3.Css3Style;
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.values.CssExpression;

/**
* @since CSS3
*/
public class CssContainIntrinsicBlockSize extends CssProperty {


/**
* Create a new CssContainIntrinsicBlockSize
*/
public CssContainIntrinsicBlockSize() {
}

/**
* Creates a new CssContainIntrinsicBlockSize
*
* @param expression The expression for this property
* @throws InvalidParamException
* Expressions are incorrect
*/
public CssContainIntrinsicBlockSize(ApplContext ac, CssExpression expression, boolean check)
throws InvalidParamException {
throw new InvalidParamException("value",
expression.getValue().toString(),
getPropertyName(), ac);
}

public CssContainIntrinsicBlockSize(ApplContext ac, CssExpression expression)
throws InvalidParamException {
this(ac, expression, false);
}

/**
* Returns the value of this property
*/
public Object get() {
return value;
}


/**
* Returns the name of this property
*/
public final String getPropertyName() {
return "contain-intrinsic-inline-size";
}

/**
* Returns true if this property is "softly" inherited
* e.g. his value is equals to inherit
*/
public boolean isSoftlyInherited() {
return inherit.equals(value);
}

/**
* Returns a string representation of the object.
*/
public String toString() {
return value.toString();
}

/**
* Add this property to the CssStyle.
*
* @param style The CssStyle
*/
public void addToStyle(ApplContext ac, CssStyle style) {
if (((Css3Style) style).cssContainIntrinsicBlockSize != null)
style.addRedefinitionWarning(ac, this);
((Css3Style) style).cssContainIntrinsicBlockSize = this;
}

/**
* Compares two properties for equality.
*
* @param property The other property.
*/
public boolean equals(CssProperty property) {
return (property instanceof CssContainIntrinsicBlockSize &&
value.equals(((CssContainIntrinsicBlockSize) property).value));
}


/**
* Get this property in the style.
*
* @param style The style where the property is
* @param resolve if true, resolve the style to find this property
*/
public CssProperty getPropertyInStyle(CssStyle style, boolean resolve) {
if (resolve) {
return ((Css3Style) style).getContainIntrinsicBlockSize();
} else {
return ((Css3Style) style).cssContainIntrinsicBlockSize;
}
}
}

111 changes: 111 additions & 0 deletions org/w3c/css/properties/css/CssContainIntrinsicHeight.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
//
// Author: Yves Lafon <ylafon@w3.org>
//
// (c) COPYRIGHT W3C, 2026.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css;

import org.w3c.css.parser.CssStyle;
import org.w3c.css.properties.css3.Css3Style;
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.values.CssExpression;

/**
* @since CSS3
*/
public class CssContainIntrinsicHeight extends CssProperty {


/**
* Create a new CssContainIntrinsicHeight
*/
public CssContainIntrinsicHeight() {
}

/**
* Creates a new CssContainIntrinsicHeight
*
* @param expression The expression for this property
* @throws InvalidParamException
* Expressions are incorrect
*/
public CssContainIntrinsicHeight(ApplContext ac, CssExpression expression, boolean check)
throws InvalidParamException {
throw new InvalidParamException("value",
expression.getValue().toString(),
getPropertyName(), ac);
}

public CssContainIntrinsicHeight(ApplContext ac, CssExpression expression)
throws InvalidParamException {
this(ac, expression, false);
}

/**
* Returns the value of this property
*/
public Object get() {
return value;
}


/**
* Returns the name of this property
*/
public final String getPropertyName() {
return "contain-intrinsic-height";
}

/**
* Returns true if this property is "softly" inherited
* e.g. his value is equals to inherit
*/
public boolean isSoftlyInherited() {
return inherit.equals(value);
}

/**
* Returns a string representation of the object.
*/
public String toString() {
return value.toString();
}

/**
* Add this property to the CssStyle.
*
* @param style The CssStyle
*/
public void addToStyle(ApplContext ac, CssStyle style) {
if (((Css3Style) style).cssContainIntrinsicHeight != null)
style.addRedefinitionWarning(ac, this);
((Css3Style) style).cssContainIntrinsicHeight = this;
}

/**
* Compares two properties for equality.
*
* @param property The other property.
*/
public boolean equals(CssProperty property) {
return (property instanceof CssContainIntrinsicHeight &&
value.equals(((CssContainIntrinsicHeight) property).value));
}


/**
* Get this property in the style.
*
* @param style The style where the property is
* @param resolve if true, resolve the style to find this property
*/
public CssProperty getPropertyInStyle(CssStyle style, boolean resolve) {
if (resolve) {
return ((Css3Style) style).getContainIntrinsicHeight();
} else {
return ((Css3Style) style).cssContainIntrinsicHeight;
}
}
}

111 changes: 111 additions & 0 deletions org/w3c/css/properties/css/CssContainIntrinsicInlineSize.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
//
// Author: Yves Lafon <ylafon@w3.org>
//
// (c) COPYRIGHT W3C, 2026.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css;

import org.w3c.css.parser.CssStyle;
import org.w3c.css.properties.css3.Css3Style;
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.values.CssExpression;

/**
* @since CSS3
*/
public class CssContainIntrinsicInlineSize extends CssProperty {


/**
* Create a new CssContainIntrinsicInlineSize
*/
public CssContainIntrinsicInlineSize() {
}

/**
* Creates a new CssContainIntrinsicInlineSize
*
* @param expression The expression for this property
* @throws InvalidParamException
* Expressions are incorrect
*/
public CssContainIntrinsicInlineSize(ApplContext ac, CssExpression expression, boolean check)
throws InvalidParamException {
throw new InvalidParamException("value",
expression.getValue().toString(),
getPropertyName(), ac);
}

public CssContainIntrinsicInlineSize(ApplContext ac, CssExpression expression)
throws InvalidParamException {
this(ac, expression, false);
}

/**
* Returns the value of this property
*/
public Object get() {
return value;
}


/**
* Returns the name of this property
*/
public final String getPropertyName() {
return "contain-intrinsic-inline-size";
}

/**
* Returns true if this property is "softly" inherited
* e.g. his value is equals to inherit
*/
public boolean isSoftlyInherited() {
return inherit.equals(value);
}

/**
* Returns a string representation of the object.
*/
public String toString() {
return value.toString();
}

/**
* Add this property to the CssStyle.
*
* @param style The CssStyle
*/
public void addToStyle(ApplContext ac, CssStyle style) {
if (((Css3Style) style).cssContainIntrinsicInlineSize != null)
style.addRedefinitionWarning(ac, this);
((Css3Style) style).cssContainIntrinsicInlineSize = this;
}

/**
* Compares two properties for equality.
*
* @param property The other property.
*/
public boolean equals(CssProperty property) {
return (property instanceof CssContainIntrinsicInlineSize &&
value.equals(((CssContainIntrinsicInlineSize) property).value));
}


/**
* Get this property in the style.
*
* @param style The style where the property is
* @param resolve if true, resolve the style to find this property
*/
public CssProperty getPropertyInStyle(CssStyle style, boolean resolve) {
if (resolve) {
return ((Css3Style) style).getContainIntrinsicInlineSize();
} else {
return ((Css3Style) style).cssContainIntrinsicInlineSize;
}
}
}

Loading
Loading